Skip to content
This repository has been archived by the owner on Nov 6, 2023. It is now read-only.

dependency version conflicts #52

Open
tljstewart opened this issue Dec 2, 2021 · 5 comments
Open

dependency version conflicts #52

tljstewart opened this issue Dec 2, 2021 · 5 comments

Comments

@tljstewart
Copy link
Contributor

tljstewart commented Dec 2, 2021

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:

  • I was able to resolve the issue by commenting out matplotlib==3.2.1 in requirements.txt then doing a pip install matplotlib after installing ai-economist

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
Copy link
Contributor

sunil-s commented Dec 2, 2021

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
Copy link
Contributor Author

tljstewart commented Dec 2, 2021

@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
Copy link
Contributor

sunil-s commented Dec 2, 2021

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
Copy link
Contributor Author

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
Copy link
Contributor

sunil-s commented Dec 9, 2021

Thanks @tljstewart

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants