opendp / smartnoise-sdk

Tools and service for differentially private processing of tabular and relational data
MIT License
254 stars 68 forks source link

chore(deps): Update opendp version constraint to >=0.11.0,<0.12.0 #609

Open WCY-dt opened 4 weeks ago

WCY-dt commented 4 weeks ago

fix #608

MinzhiYoyo commented 3 weeks ago

I choose another way to solve this problem. Change PYTHON_HOME/Lib/site-packages/opendp/_lib.py line 29 to lib_dir_file_names = [p for p in lib_dir.iterdir() if p.suffix in {".so", ".dylib", ".dll", ".pyd"}]. Because there may be a bug in this version of OpenDP. I can find .so, .dylib, .dll in PYTHON_HOME\Lib\site-packages\opendp\lib, just find a .pyd.

WCY-dt commented 3 weeks ago

I choose another way to solve this problem. Change PYTHON_HOME/Lib/site-packages/opendp/_lib.py line 29 to lib_dir_file_names = [p for p in lib_dir.iterdir() if p.suffix in {".so", ".dylib", ".dll", ".pyd"}]. Because there may be a bug in this version of OpenDP. I can find .so, .dylib, .dll in PYTHON_HOME\Lib\site-packages\opendp\lib, just find a .pyd.

True, it is fixed in OpenDP in https://github.com/opendp/opendp/commit/bfd21b3d18b883ab460efaa96e6e2765e197862a#diff-6c98c6ce51d86ccd80c9828da357ba071c052b0f58580d1526c20b2859dd610bR29