sdv-dev / SDGym

Benchmarking synthetic data generation methods.
Other
254 stars 58 forks source link

(Known issue, workaround provided) Problems with importing SDGym #246

Closed npatki closed 1 year ago

npatki commented 1 year ago

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 1 year ago

Good news!

We just released SDGym version 0.7.0 which resolves these versioning issues. Please update your SDGym installation to fix the problems.