Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

numpy 1.22 is not found #59

Open
tiborauer opened this issue Oct 11, 2022 · 12 comments
Open

numpy 1.22 is not found #59

tiborauer opened this issue Oct 11, 2022 · 12 comments

Comments

@tiborauer
Copy link

Does ICA-AROMA still require Python 2.7? I tried to install it and received the error saying
ERROR: No matching distribution found for numpy==1.22.0 (from -r /home/runner/tools/ICA-AROMA/requirements.txt (line 3))

I have checked numpy and it seems 1.22 requires Python 3.8-3.10.

@tiborauer
Copy link
Author

However, pandas==0.23 requires python[version='2.7.,3.5.,3.6.*']. Therefore, I am not sure how these dependencies can be resolved.

@vogab
Copy link

vogab commented Apr 4, 2023

Same issue with numpy... I opened a new issue before seeing yours:
#63

Did you find a solution? It would be a great help!

@tiborauer
Copy link
Author

My solution is to revert the commit and use numpy=1.14. :)
I also use Python 3.6; however, it also crashes sometimes with "undefined symbol: ffi_closure_alloc, version LIBFFI_CLOSURE_7.0". I am considering trying numpy 1.19.5 (the last compatible with Python 3.6).

Cases like this make me wonder about the transparency of Python dependencies. :)

@vogab
Copy link

vogab commented Apr 5, 2023

Good to know, thanks for the info!
You used the version from Feb 12, 2020 then?

@tiborauer
Copy link
Author

Yes.

@maartenmennes
Copy link
Owner

Hello, no python 2.7 is no longer a requirement. I'm currently using it with python 3.7. I'll adjust the language in the description 👍

@vogab
Copy link

vogab commented Apr 5, 2023

Ok. I get the following errors though with python3 and 3.7

python3 -m pip install -r requirements.txt
Collecting future (from -r requirements.txt (line 1))
Cache entry deserialization failed, entry ignored
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/8f/2e/cf6accf7415237d6faeeebdc7832023c90e0282aa16fd3263db0eb4715ec/future-0.18.3.tar.gz (840kB)
100% |████████████████████████████████| 849kB 1.6MB/s
Collecting matplotlib==2.2 (from -r requirements.txt (line 2))
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/95/09/530909669df3503caf1558544054fdbe2922d1f88a0a27820ee652c4fc58/matplotlib-2.2.0-cp36-cp36m-manylinux1_x86_64.whl (12.5MB)
100% |████████████████████████████████| 12.5MB 118kB/s
Collecting numpy==1.22.0 (from -r requirements.txt (line 3))
Cache entry deserialization failed, entry ignored
Could not find a version that satisfies the requirement numpy==1.22.0 (from -r requirements.txt (line 3)) (from versions: 1.3.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2, 1.8.0, 1.8.1, 1.8.2, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.10.0.post2, 1.10.1, 1.10.2, 1.10.4, 1.11.0, 1.11.1, 1.11.2, 1.11.3, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 1.13.3, 1.14.0, 1.14.1, 1.14.2, 1.14.3, 1.14.4, 1.14.5, 1.14.6, 1.15.0, 1.15.1, 1.15.2, 1.15.3, 1.15.4, 1.16.0, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5, 1.16.6, 1.17.0, 1.17.1, 1.17.2, 1.17.3, 1.17.4, 1.17.5, 1.18.0, 1.18.1, 1.18.2, 1.18.3, 1.18.4, 1.18.5, 1.19.0, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.19.5)
No matching distribution found for numpy==1.22.0 (from -r requirements.txt (line 3))

python3.7 -m pip install -r requirements.txt
Collecting future (from -r requirements.txt (line 1))
Using cached https://files.pythonhosted.org/packages/8f/2e/cf6accf7415237d6faeeebdc7832023c90e0282aa16fd3263db0eb4715ec/future-0.18.3.tar.gz
Collecting matplotlib==2.2 (from -r requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/51/15/a397b941318d7d7f9cf2acbb4a35ce53681ec9799068f5ea57d91a6eea7e/matplotlib-2.2.0.tar.gz (37.2MB)
100% |████████████████████████████████| 37.3MB 38kB/s
Complete output from command python setup.py egg_info:
============================================================================
Edit setup.cfg to change the build options

BUILDING MATPLOTLIB
            matplotlib: yes [2.2.0]
                python: yes [3.7.5 (default, Dec  9 2021, 17:04:37)  [GCC
                        8.4.0]]
              platform: yes [linux]

REQUIRED DEPENDENCIES AND EXTENSIONS
                 numpy: yes [not found. pip may install it below.]
      install_requires: yes [handled by setuptools]
                libagg: yes [pkg-config information for 'libagg' could not
                        be found. Using local copy.]
              freetype: no  [The C/C++ header for freetype2 (ft2build.h)
                        could not be found.  You may need to install the
                        development package.]
                   png: yes [version 1.6.34]
                 qhull: yes [pkg-config information for 'libqhull' could not
                        be found. Using local copy.]

OPTIONAL SUBPACKAGES
           sample_data: yes [installing]
              toolkits: yes [installing]
                 tests: no  [skipping due to configuration]
        toolkits_tests: no  [skipping due to configuration]

OPTIONAL BACKEND EXTENSIONS
                macosx: no  [Mac OS-X only]
                qt5agg: no  [PySide2 not found; PyQt5 not found]
                qt4agg: no  [PySide not found; PyQt4 not found]
               gtk3agg: no  [Requires pygobject to be installed.]
             gtk3cairo: no  [Requires cairocffi or pycairo to be installed.]
                gtkagg: no  [Requires pygtk]
                 tkagg: yes [installing; run-time loading from Python Tcl /
                        Tk]
                 wxagg: no  [requires wxPython]
                   gtk: no  [Requires pygtk]
                   agg: yes [installing]
                 cairo: no  [cairocffi or pycairo not found]
             windowing: no  [Microsoft Windows only]

OPTIONAL LATEX DEPENDENCIES
                dvipng: no
           ghostscript: yes [version 9.26]
                 latex: no
               pdftops: no

OPTIONAL PACKAGE DATA
                  dlls: no  [skipping due to configuration]

============================================================================
                        * The following required packages can not be built:
                        * freetype
                        * Try installing freetype with `apt-get install
                        * libfreetype6-dev` and pkg-config with `apt-get
                        * install pkg-config`

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-osutuaiw/matplotlib/

@tiborauer
Copy link
Author

As I wrote above, python 3.7 will not work because numpy 1.22 requires Python 3.8-3.10 and pandas==0.23 requires Python 2.7.,3.5.,3.6.*'. Actually, Python 3.7 is the only one that does not satisfy either.

Of course, it may work if you do not start with a new environment and switch between Python versions while installing packages one by one. Similarly, it may work if you already have them installed previously (or in the cache).
Welcome to the non-transparent and non-reproducible world of Python! :)

@maartenmennes
Copy link
Owner

maartenmennes commented Apr 5, 2023

Oh, I see what happened. I got played by the 'github dependabot'. It suggested I could safely update the requirements of numpy from 1.14 to 1.22, so I approved that commit without double checking. (see #58 )

Turns out I'm on 3.7 with numpy 1.21.6 myself. 🙈

I've reverted the requirement to numpy 1.14 so all should be good again...

@tiborauer
Copy link
Author

Thanks!
Do you not want to add numpy==1.21.6 and python==3.7?

@maartenmennes
Copy link
Owner

I could, but not sure whether I should as AROMA works fine even with those older requirements, i.e., there is no need for the latest dependencies for it to work as expected (at least as far as I know)

@vogab
Copy link

vogab commented Apr 5, 2023

Just letting you know that it worked for me with the version from Feb 12, 2020 and python 2.7. I did not try it with your recently updated requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants