Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wavetorch cannot be imported #9

Open
linwanting opened this issue May 26, 2020 · 6 comments
Open

Wavetorch cannot be imported #9

linwanting opened this issue May 26, 2020 · 6 comments

Comments

@linwanting
Copy link

import wavetorch

File "G:\Anaconda\lib\site-packages\wavetorch_init_.py", line 1, in
from . import rnn, cell, geom, source, probe, data, plot, utils, io

ImportError: cannot import name 'data' from 'wavetorch' (G:\Anaconda\lib\site-packages\wavetorch_init_.py

@acse-wz19
Copy link

The same problem for me after pip install wavetorch

@ianwilliamson
Copy link
Collaborator

Looks like that directory is missing from the pip package for some reason. You can just download the code from this repo instead.

@acse-wz19
Copy link

acse-wz19 commented Oct 9, 2020 via email

@acse-wz19
Copy link

acse-wz19 commented Oct 10, 2020 via email

@Kshitiz-Bansal
Copy link

Kshitiz-Bansal commented Jul 18, 2021

I have a similar issue:

Traceback (most recent call last):
  File "./study/vowel_train.py", line 5, in <module>
    import wavetorch
  File "/home/chezzyfries/.local/lib/python3.8/site-packages/wavetorch/__init__.py", line 1, in <module>
    from . import rnn, cell, geom, source, probe, data, plot, utils, io
ImportError: cannot import name 'data' from partially initialized module 'wavetorch' (most likely due to a circular import) (/home/chezzyfries/.local/lib/python3.8/site-packages/wavetorch/__init__.py)

I have tried using both pip install wavetorch and installing wavetorch from the code in repo.
Please let me know if there is a known solution to this.

UPDATE: It works on copying the /wavetorch/data folder from this repo to pythonX.X/site-packages/wavetorch

@lonnietc
Copy link

Hello,

I am getting the same errors when I am trying to use it with Python 3.11.4 on Windows 10 (x64).

Are there any updates to get this to work?
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants