ActivitySim / populationsim

An Open Platform for Population Synthesis
https://activitysim.github.io/populationsim
Other
53 stars 40 forks source link

Installation outdated and not functional #183

Open MSnPTV opened 10 months ago

MSnPTV commented 10 months ago

The installation process as it is described on https://activitysim.github.io/populationsim/getting_started.html#installation does not lead to a functioning working environment. Any python run ends with the error message

Traceback (most recent call last): File "D:\MSn\PopSim\example_calm\run_populationsim.py", line 39, in sys.exit(run(args)) File "D:\MSn\PopSimInstallTest\lib\site-packages\activitysim\cli\run.py", line 329, in run info = np.config.get_info(cfg_key) AttributeError: module 'numpy.config' has no attribute 'get_info'

The installation process installs Python modules that are not compatible with each other. Although nothing has changed in the code for some time, this happens because the installation program is instructed to use the latest version of each package. And of course that has changed in recent years. And now not all modules are compatible.

GregorSchroeder commented 10 months ago

Seeing similar issue as well. If anyone has information on how to resolve please update. Otherwise will continue to investigate.

brynpickering commented 5 months ago

conda install "numpy < 1.20" should do the trick. I have found that creating the initial conda environment with some more content than just python works well: conda create -n popsim python=3.9 numpy<1.20 pandas<1.5 activitysim; conda activate popsim; pip install populationsim