salesforce / ai-economist

Foundation is a flexible, modular, and composable framework to model socio-economic behaviors and dynamics with both agents and governments. This framework can be used in conjunction with reinforcement learning to learn optimal economic policies, as done by the AI Economist (https://www.einstein.ai/the-ai-economist).
https://www.einstein.ai/the-ai-economist
BSD 3-Clause "New" or "Revised" License
40 stars 17 forks source link

dependency version conflicts #52

Open tljstewart opened 2 years ago

tljstewart commented 2 years ago

Unable to pip install ai-economist or pip install -e . in a fresh conda environment on windows, I have not tested on Mac or Linux as of today.

versions: python 3.9, pip 21.2.4

Issue: matplotlib dependency conflict:

verions: python 3.10, pip 21.2.4

issue: scipy dependency conflict

image

I'm running into similar requirements.txt issues with poppygen, a python package I've created that generates demographically accurate human agents. I'll update here if I find a more robust solution.

sunil-s commented 2 years ago

Thanks for bringing this up @tljstewart . I tried on my mac machine and did get it to install on python 3.9 without the matplotlib issue either (my pip version is 21.3.1). With 3.10, I am seeing similar scipy conflicts - we will need to investigate that. Is the windows operating system and Python 3.9+ a strict requirement for you?

tljstewart commented 2 years ago

@sunil-s thanks for checking that out, I switch to python 3.7 (as noted in the setup.py) I almost found success there, installed via pip install -e ., however now I get this error, unable to find the map file:

image

Note: this works without issue in google colab

sunil-s commented 2 years ago

I don't see that issue in my local machine. After you install the ai-economist, you may want to do a pip show ai_economist|grep Location to figure out where the package is installed. Within that location ai_economist/foundation/scenarios/simple_wood_and_stone/map_txt should exist and contain all the maps. Can you please check on your end?

tljstewart commented 2 years ago

Hey @sunil-s I think I have a fix for the map issue, I'll make a separate issue and then push a PR for it. Windows ahh! lol (Unfortunately I dev on both mac and win equally)

sunil-s commented 2 years ago

Thanks @tljstewart