Closed Jballbe closed 1 year ago
I am getting a similar error. For me it is statsmodels
that fails to build. Is there a reason why there is a requirement that statsmodels<=0.13.0
?
Here is what I did:
$ conda --version
conda 23.5.0
$ conda create --name testenv
$ conda activate testenv
$ python --version
Python 3.11.3
$ conda install pip
$ python -m pip install allensdk
The error output is very long but the important part is maybe this?
Building wheels for collected packages: statsmodels
Building wheel for statsmodels (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for statsmodels (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [1562 lines of output]
<string>:19: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
<string>:53: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
<string>:56: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
<string>:53: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
/tmp/pip-build-env-u_gtgmr5/overlay/lib/python3.11/site-packages/setuptools/config/setupcfg.py:293: _DeprecatedConfig: Deprecated config in `setup.cfg`
!!
********************************************************************************
The license_file parameter is deprecated, use license_files instead.
By 2023-Oct-30, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
!!
Hi folks, sorry the delay. This looks to be an issue with compiling of a few dependencies using clang on MacOS. I was able to run pip install allensdk
on a fresh python3.8 conda environment on Linux without issue. We don't have a fix for this as of yet but we will attempt to deploy something in the next version update.
For now, I was able to pip install the SDK on a fresh, python3.8 conda using a M1 Mac running OS13.3.1 by doing the following:
conda install numpy
conda install h5py
pip install allensdk
@ahwillia to your point, I unpinned the version on statsmodels using a local clone of the SDK and ran into the same issue with clang.
I'm running into this on Linux, not MacOS. Sorry I failed to mention.
I just checked and I am able to reproduce my error (the build fails for statsmodels
not numpy
) on my macbook pro:
Okay, not sure why I'm not seeing it for Linux, likely different gcc versions. Did the procedure I mentioned above allow your to install the package?
Moving from Python 3.11.3 -> Python 3.8.16
seems to have fixed the issue on my both my Mac and Linux workstation.
Good to hear. For the record. The repo doesn't yet support 3.11. Just check and pynwb doesn't not currently list 3.11 as a supported python version as of yet.
Hello, I am also getting problems with the Allensdk installation. It seems that in my case is a problem with the cyton compiler. My system is:
M1 Max OS 1.24.3 conda 23.5.2 Python 3.8.16 Numpy 1.24.3 h5py 3.7.0
The error I am getting is the following:
`Collecting allensdk Using cached allensdk-2.15.1-py3-none-any.whl (4.0 MB) Collecting psycopg2-binary (from allensdk) Using cached psycopg2_binary-2.9.6-cp38-cp38-macosx_11_0_arm64.whl (2.0 MB) Collecting hdmf<=3.4.7 (from allensdk) Using cached hdmf-3.4.7-py3-none-any.whl (187 kB) Requirement already satisfied: h5py in ./anaconda3/envs/allensdk38/lib/python3.8/site-packages (from allensdk) (3.7.0) Collecting matplotlib<3.4.3,>=1.4.3 (from allensdk) Using cached matplotlib-3.4.2.tar.gz (37.3 MB) Preparing metadata (setup.py) ... done Requirement already satisfied: numpy in ./anaconda3/envs/allensdk38/lib/python3.8/site-packages (from allensdk) (1.24.3) Collecting pandas>=1.1.5 (from allensdk) Using cached pandas-2.0.3-cp38-cp38-macosx_11_0_arm64.whl (10.7 MB) Collecting jinja2>=3.0.0 (from allensdk) Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB) Collecting scipy<2.0.0,>=1.4.0 (from allensdk) Using cached scipy-1.10.1-cp38-cp38-macosx_12_0_arm64.whl (28.8 MB) Collecting six<2.0.0,>=1.9.0 (from allensdk) Using cached six-1.16.0-py2.py3-none-any.whl (11 kB) Collecting pynrrd<1.0.0,>=0.2.1 (from allensdk) Using cached pynrrd-0.4.3-py2.py3-none-any.whl (18 kB) Collecting future<1.0.0,>=0.14.3 (from allensdk) Using cached future-0.18.3.tar.gz (840 kB) Preparing metadata (setup.py) ... done Collecting requests<3.0.0 (from allensdk) Using cached requests-2.31.0-py3-none-any.whl (62 kB) Collecting requests-toolbelt<1.0.0 (from allensdk) Using cached requests_toolbelt-0.10.1-py2.py3-none-any.whl (54 kB) Collecting simplejson<4.0.0,>=3.10.0 (from allensdk) Using cached simplejson-3.19.1-cp38-cp38-macosx_11_0_arm64.whl (74 kB) Collecting scikit-image>=0.14.0 (from allensdk) Using cached scikit_image-0.21.0-cp38-cp38-macosx_12_0_arm64.whl (12.3 MB) Collecting scikit-build<1.0.0 (from allensdk) Using cached scikit_build-0.17.6-py3-none-any.whl (84 kB) Collecting statsmodels<=0.13.0 (from allensdk) Using cached statsmodels-0.13.0.tar.gz (17.8 MB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [141 lines of output]
Hi again, I am writing just to mention that I try to install Allensdk in another brand new mac M2 Pro and I got the same error.
Just check and pynwb doesn't not currently list 3.11 as a supported python version as of yet.
The latest version of pynwb (2.3.3), released three weeks ago, officially supports Python 3.11
@morriscb, the students at NeuroMatch Academy also encountered the statsmodels build failure when attempting to pip install AllenSDK on Colab. I see that you removed the max version limit in https://github.com/AllenInstitute/AllenSDK/pull/2699, and that should fix the current problem.
I wonder if some of the other max version limit can be removed as well? Unless they're really necessary, it seems like they could easily lead to more issues down the road.
Hey @slinderman. Yes, we've updated and unpinned the stats models as it was finally starting to show in development when unittesting. We should have the updated version on pypi soon.
It's likely that we could unpin many of the dependencies, however on the flip side of what you point out, at some point they were necessary and put in for a reason. Unpinning all the dependencies would be a larger project requiring a lot of testing and rewrites to assure ourselves that the code is running as expected. Unfortunately our team doesn't have the time budgeted for currently, potentially down the road.
It looks like most of the upper bounds were added in one fell swoop with this commit https://github.com/AllenInstitute/AllenSDK/commit/2ce26e75e050885206eeff07383f7402e08f3219. I don't know the full story, but I'd be surprised if they're all really necessary.
It's not urgent and it's no problem if time isn't available now. The other upper bounds aren't causing problems right now, and I agree it would certainly require more testing. I'm just suggesting that it might not be as big a can of worms as it seems on the surface.
@ulisespereira did you manage to find a solution? On a MacBook Pro M2 OS 13.2.1, running:
conda create -n allen python=3.8.16 ipython
conda activate allen
conda install numpy
conda install h5py
pip install allensdk
I got the same error message as @ulisespereira
Hi @jules-samaran, The statsmodel version is now fixed on the master branch on github. The version on pip hasn't been updated as of yet. If you clone the this repo and use pip to install the local version, you will likely have more success.
Describe the bug Hi, I am trying to install allensdk in a new Conda environment, however, when I run
pip install allensdk
, I get an Error message saying it could not install numpy (which is already installed in the environment)To Reproduce I created a new Conda environment through AnacondaNavigator, and installed Python 3.8.16 I ran the following
Actual Behavior Here's the Error message I get when I try to install allensdk
From what I see at the end of the message, there might be a problem with numpy and/or wheel, but I can't figure why.
Environment (please complete the following information):
If you have any idea what I am doing wrong, please enlighten me! Thank you for all the help you can give me!
Best feelings,
Julien