AB-CE / abce

Agent-based computational Economics, the Python library that makes AB modelling easier
http://abce.readthedocs.io
181 stars 62 forks source link

Installation error in python 3.11 with "numpy >= 1.10.2p" #218

Closed andrewchch closed 6 months ago

andrewchch commented 6 months ago

Hi All,

When trying:

pip install -e 'git+https://github.com/AB-CE/abce.git#egg=abcEconomics'

install on python 3.11 (earlier "pip install abcEconomics" failed with same error", I get:

` × 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


`

When I remove the trailing "p" from "1.10.2p", and run:

pip install -e .

in the src directory, the installation works. Any ideas?

Cheers,
Andrew
rht commented 6 months ago

I agree the "p" needs to be removed.

The upcoming release of Mesa 2.2.0 has an API has become similar to abcEconomics in expressivity, see https://github.com/projectmesa/mesa/pull/1916 and https://github.com/projectmesa/mesa/pull/1917. I am planning to gradually port the examples to Mesa as well.

andrewchch commented 6 months ago

Thanks for the update, I'll close this issue.