You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when creating the venv using cebra_paper.yml an error gets thrown as seen in the error log; sklearn should be renamed to scikit-learn in the yml file. Upon changing that no errors get thrown when remaking the venv.
moreover, when this error is fixed and I try to import cebra using python, I get another error, "AttributeError: module 'numpy' has no attribute 'typeDict'". Fixed this by changing the numpy version to >=1.22.
Operating System
WSL2
CEBRA version
0.4.0
Device type
gpu
Steps To Reproduce
download cebra_paper.yml
in ubuntu 22.04 run: conda env create -f conda/cebra_paper.yml
Relevant log output
ERROR 1:
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
The 'sklearn' PyPI package is deprecated, use 'scikit-learn'
rather than 'sklearn'for pip commands.
Here is how to fix this error in the main use cases:
- use 'pip install scikit-learn' rather than 'pip install sklearn'
- replace 'sklearn' by 'scikit-learn'in your pip requirements files
(requirements.txt, setup.py, setup.cfg, Pipfile, etc ...)
- if the 'sklearn' package is used by one of your dependencies,
it would be great if you take some time to track which package uses
'sklearn' instead of 'scikit-learn' and report it to their issue tracker
- as a last resort, set the environment variable
SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True to avoid this error
More information is available at
https://github.com/scikit-learn/sklearn-pypi-package
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
failed
CondaEnvException: Pip failed
ERROR 2:
$ python
Python 3.8.0 (default, Nov 6 2019, 21:49:08)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
import cebra
Traceback (most recent call last):
File "", line 1, in
File "/home/xxx/anaconda3/envs/cebra_paper/lib/python3.8/site-packages/cebra/init.py", line 31, in
from cebra.integrations.sklearn.cebra import CEBRA
File "/home/xxx/anaconda3/envs/cebra_paper/lib/python3.8/site-packages/cebra/integrations/sklearn/init.py", line 35, in
from cebra.integrations.sklearn import cebra
File "/home/xxx/anaconda3/envs/cebra_paper/lib/python3.8/site-packages/cebra/integrations/sklearn/cebra.py", line 33, in
import sklearn.utils.validation as sklearn_utils_validation
File "/home/xxx/anaconda3/envs/cebra_paper/lib/python3.8/site-packages/sklearn/init.py", line 82, in
from .base import clone
File "/home/xxx/anaconda3/envs/cebra_paper/lib/python3.8/site-packages/sklearn/base.py", line 17, in
from .utils import _IS_32BIT
File "/home/xxx/anaconda3/envs/cebra_paper/lib/python3.8/site-packages/sklearn/utils/init.py", line 17, in
from scipy.sparse import issparse
File "/home/xxx/anaconda3/envs/cebra_paper/lib/python3.8/site-packages/scipy/sparse/init.py", line 229, in
from .base import *
File "/home/xxx/anaconda3/envs/cebra_paper/lib/python3.8/site-packages/scipy/sparse/base.py", line 8, in
from .sputils import (isdense, isscalarlike, isintlike,
File "/home/xxx/anaconda3/envs/cebra_paper/lib/python3.8/site-packages/scipy/sparse/sputils.py", line 17, in
supported_dtypes = [np.typeDict[x] for x in supported_dtypes]
File "/home/xxx/anaconda3/envs/cebra_paper/lib/python3.8/site-packages/scipy/sparse/sputils.py", line 17, in
supported_dtypes = [np.typeDict[x] for x in supported_dtypes]
File "/home/xxx/anaconda3/envs/cebra_paper/lib/python3.8/site-packages/numpy/init.py", line 320, in getattr
raise AttributeError("module {!r} has no attribute "
AttributeError: module 'numpy' has no attribute 'typeDict'
Btw, @researcherofreality , note that you only need this conda environment if you want to run the full set of experiments, including comparisons to other algorithms like pi VAE we did in the CEBRA paper. For anything else, the other conda file is the better option with more up-to-date packages!
Is there an existing issue for this?
Bug description
when creating the venv using cebra_paper.yml an error gets thrown as seen in the error log; sklearn should be renamed to scikit-learn in the yml file. Upon changing that no errors get thrown when remaking the venv.
moreover, when this error is fixed and I try to import cebra using python, I get another error, "AttributeError: module 'numpy' has no attribute 'typeDict'". Fixed this by changing the numpy version to >=1.22.
Operating System
WSL2
CEBRA version
0.4.0
Device type
gpu
Steps To Reproduce
Relevant log output
ERROR 1:
ERROR 2:
$ python
Python 3.8.0 (default, Nov 6 2019, 21:49:08)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
Anything else?
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: