(Known issue, workaround provided) Problems with importing SDGym
npatki opened this issue · 1 comments
npatki commented
Known Issue: Some users have reported that they can successfully install the SDGym library but as soon as they try to import the sdgym
module, there is an error.
Example
Installation happens successfully
pip install sdgym
There is an error when importing
>>> import sdgym
ImportError: cannot import name 'Metadata' from 'sdv' (/usr/local/lib/python3.10/dist-packages/sdv/__init__.py)
This is happening due to library dependency issues and the team is actively working on this!
How to fix the issue? (Workaround)
In the meantime, you can fix this problem by downgrading your version of SDV following the code below.
pip install sdv==0.18.0
If you're using a notebook, be sure to restart the Kernel after this downgrade.
npatki commented
Good news!
We just released SDGym version 0.7.0 which resolves these versioning issues. Please update your SDGym installation to fix the problems.