vanderschaarlab / synthcity

A library for generating and evaluating synthetic tabular data for privacy, fairness and data augmentation.
https://www.vanderschaar-lab.com/
Apache License 2.0
452 stars 61 forks source link

Plugin decaf load failed #236

Closed foesine closed 1 year ago

foesine commented 1 year ago

Hey :)

When importing the plugins the decaf plugin always fails loading. I'd like to use this plugin, any chance someone can help me figuring out why it fails?

I am working in Google Colab with a python version of 3.10.12 and synthcity version of 0.2.9. I checked the dependencies and I don't think they are the problem.

I am trying:

from synthcity.plugins import Plugins Plugins(categories=["generic", "privacy"]).list()

All other plugins are listed, the problem solely exists with decaf.

The error code:

[424][CRITICAL] module disabled: /usr/local/lib/python3.10/dist-packages/synthcity/plugins/generic/plugin_goggle.py

[424][CRITICAL] load failed: /usr/local/lib/python3.10/dist-packages/torchaudio/lib/libtorchaudio.so: undefined symbol: _ZNK3c107SymBool10guard_boolEPKcl

[424][CRITICAL] load failed: module 'synthcity.plugins.privacy.plugin_decaf' has no attribute 'plugin'

[424][CRITICAL] module plugin_decaf load failed

Thankful for any recommendations!

robsdavis commented 1 year ago

Hi @foesine,

It seems like google colab now comes with torchdata==0.6.1, which requires torch==2.0.1. This seems to be the cause of the issue (as well as an incompatible torchaudio version). So you could fix this with pip installing torchaudio==0.13.1 and torchdata==0.5.1.

Hope that helps!

foesine commented 1 year ago

Thank you @robsdavis! Works now :)