maartenmennes/ICA-AROMA

numpy 1.22 is not found

tiborauer opened this issue ยท 12 comments

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.

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 commented

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

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

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 commented

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

Yes.

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 commented

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/

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! :)

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...

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

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 commented

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.