Closed RuizSerra closed 5 months ago
Update:
After updating pip to 23.3.2
, I am still unable to install from pypi:
(abce)
jaime at Jaime-MBP in ~/Documents/PhD
$ pip install abcEconomics
Collecting abcEconomics
Using cached abcEconomics-0.9.7b2.tar.gz (509 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [3 lines of output]
error in abcEconomics setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Expected end or semicolon (after version specifier)
numpy >= 1.10.2p
~~~~~~~~~^
[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.
But I am able to install from source (after removing the 'p' from the numpy version in setup.py
:
(abce)
jaime at Jaime-MBP in ~/Documents/PhD
$ pip install ./abce
Processing ./abce
Preparing metadata (setup.py) ... done
# (...)
Successfully installed Jinja2-3.1.3 Mako-1.3.1 MarkupSafe-2.1.4 PyYAML-6.0.1 abcEconomics-0.9.7b0 alembic-1.13.1 banal-1.0.6 bokeh-0.12.16 chardet-5.2.0 charset-normalizer-3.3.2 dataset-0.8.0 future-0.18.3 normality-2.5.0 numpy-1.26.3 pandas-2.2.0 pytz-2023.3.post1 sqlalchemy-2.0.25 text-unidecode-1.3 tzdata-2023.4
(abce)
jaime at Jaime-MBP in ~/Documents/PhD
$ python
Python 3.9.17 (main, Jul 5 2023, 15:35:09)
[Clang 14.0.6 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import abcEconomics as abce
>>> exit()
It means the version of the repo you cloned is not up to date. A fix had already been merged ~4 months ago https://github.com/AB-CE/abce/commit/2f51be1f6cd913b324b8045945f87de891a91761.
It looks like there are several places where the 'p' suffix still exists: https://github.com/search?q=repo%3AAB-CE%2Fabce%201.10.2p&type=code. A pull request to fix this would be appreciated!
Thanks @rht ! PR submitted :)
Closed via #220.
I have been able to install
abce
and run the examples withpypy3
, but not withpip3
(and therefore cannot use the Jupyter example).I have also tried installing from source:
I'd really appreciate any pointers! Thank you :)