facebookresearch / balance

The balance python package offers a simple workflow and methods for dealing with biased data samples when looking to infer from them to some target population of interest.
https://import-balance.org
GNU General Public License v2.0
687 stars 42 forks source link

[BUG] #45

Closed adelchi91 closed 1 year ago

adelchi91 commented 1 year ago

Running the following code line

from balance import Sample

results in the following error message:

ModuleNotFoundError: No module named 'cvglmnet'

Installation of the required module is not possible on WSL 2 despite running it with pip (see below)

ERROR: Could not find a version that satisfies the requirement cvglmnet (from versions: none) ERROR: No matching distribution found for cvglmnet

The module does not seem to exist anywhere.

talgalili commented 1 year ago

Hey @adelchi91

1. Could you please run:

# Sessions info
import session_info
session_info.show(html=False, dependencies=True)

And share here the output?

2. Did you run:

python -m pip install git+https://github.com/bbalasub1/glmnet_python.git@1.0

Was that the code you tried that gave the output from above? (could you please paste the full log?)

adelchi91 commented 1 year ago

Hi,

thanks for your quick reply. The problem seems indeed related the glmnet python package.

I did not run

python -m pip install git+https://github.com/bbalasub1/glmnet_python.git@1.0

but I seem to have fixed it by running

pip install glmnet_py instead of pip install glmnet

talgalili commented 1 year ago

Thanks @adelchi91 for taking a look and updating here. I hope you'll enjoy the package, please let us know if you have any further questions/issues.