wavetorch icon indicating copy to clipboard operation
wavetorch copied to clipboard

Wavetorch cannot be imported

Open linwanting opened this issue 5 years ago • 6 comments

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

linwanting avatar May 26 '20 11:05 linwanting

The same problem for me after pip install wavetorch

acse-wz19 avatar Oct 09 '20 15:10 acse-wz19

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

ianwilliamson avatar Oct 09 '20 21:10 ianwilliamson

Yes, I also try to download it directly from GitHub, but it always happens import error.

获取 Outlook for iOShttps://aka.ms/o0ukef


发件人: Ian Williamson [email protected] 发送时间: Saturday, October 10, 2020 5:41:42 AM 收件人: fancompute/wavetorch [email protected] 抄送: Zhang, Weilin [email protected]; Comment [email protected] 主题: Re: [fancompute/wavetorch] Wavetorch cannot be imported (#9)

This email from [email protected] originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders listhttps://spam.ic.ac.uk/SpamConsole/Senders.aspx to disable email stamping for this address.

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

― You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/fancompute/wavetorch/issues/9#issuecomment-706411774, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANLP5WZQMX7GRPK2QS33OBLSJ57RNANCNFSM4NKGRDPQ.

acse-wz19 avatar Oct 09 '20 23:10 acse-wz19

The platform I used is Google Colab.

获取 Outlook for iOShttps://aka.ms/o0ukef


发件人: Zhang, Weilin [email protected] 发送时间: Saturday, October 10, 2020 7:37:03 AM 收件人: fancompute/wavetorch [email protected]; fancompute/wavetorch [email protected] 抄送: Comment [email protected] 主题: Re: [fancompute/wavetorch] Wavetorch cannot be imported (#9)

Yes, I also try to download it directly from GitHub, but it always happens import error.

获取 Outlook for iOShttps://aka.ms/o0ukef


发件人: Ian Williamson [email protected] 发送时间: Saturday, October 10, 2020 5:41:42 AM 收件人: fancompute/wavetorch [email protected] 抄送: Zhang, Weilin [email protected]; Comment [email protected] 主题: Re: [fancompute/wavetorch] Wavetorch cannot be imported (#9)

This email from [email protected] originates from outside Imperial. Do not click on links and attachments unless you recognise the sender. If you trust the sender, add them to your safe senders listhttps://spam.ic.ac.uk/SpamConsole/Senders.aspx to disable email stamping for this address.

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

― You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/fancompute/wavetorch/issues/9#issuecomment-706411774, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANLP5WZQMX7GRPK2QS33OBLSJ57RNANCNFSM4NKGRDPQ.

acse-wz19 avatar Oct 10 '20 09:10 acse-wz19

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

Kshitiz-Bansal avatar Jul 18 '21 06:07 Kshitiz-Bansal

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

lonnietc avatar Jul 31 '23 14:07 lonnietc