Import Error
stefanwezel opened this issue · 3 comments
stefanwezel commented
After installing the pip
package and trying import dadaptation
, I run into:
File "/home/*****/anaconda3/lib/python3.9/site-packages/dadaptation/__init__.py", line 3, in <module>
from .dadapt_sgd import DadaptSGD
ImportError: cannot import name 'DadaptSGD' from 'dadaptation.dadapt_sgd' (/home/*****/anaconda3/lib/python3.9/site-packages/dadaptation/dadapt_sgd.py)
Might the cause be the relative paths in dadaption/dadaption/__init__.py
? 🤔
ksadov commented
Had the same problem. Downgrading the package to version 1.3 fixed it in the immediate term, but it would be nice to have it fixed.
adefazio commented
This should be fixed now, please let me know if it's not working for you. I pushed v1.5 with the fix.