expectedparrot / edsl

Design, conduct and analyze results of AI-powered surveys and experiments. Simulate social science and market research with large numbers of AI agents and LLMs.
https://docs.expectedparrot.com
MIT License
96 stars 14 forks source link

Error Installing edsl Package #593

Open zhangxinghub opened 1 month ago

zhangxinghub commented 1 month ago

I encountered an error while installing the edsl package using pip install edsl. The error seems to be related to the statsmodels package, which is required for pyproject.toml-based projects.

Details:

When attempting to install the edsl package, I received the following error message:

Failed to build statsmodels ERROR: Could not build wheels for statsmodels, which is required to install pyproject.toml-based projects

To troubleshoot, I tried installing the statsmodels package separately using pip install statsmodels. The statsmodels package installed successfully without any errors.

System Information:

Operating System: I tried Windows 10 and Windows 11 Python Version: Python 3.12.3 Pip Version: pip 24.0

Any guidance on resolving this error would be greatly appreciated.

johnjosephhorton commented 1 month ago

@zer0dss @apostolosfilippas I think where only using this in some quite optional features - in addition to helping @zhangxinghub if we can, maybe we should make this optional? I'm not very well-versed in best practices for making packages optional

zhangxinghub commented 1 month ago

I discovered that the edsl package is compatible with Python 3.9 - 3.11. I was initially using Python 3.12.3. After switching to Python 3.11, the issue was resolved, and the edsl package installed successfully without any errors.

Thank you for your attention and assistance.

apostolosfilippas commented 1 month ago

Thanks @zhangxinghub! I will look into (i) removing the statsmodel dependency -- or make an optional if it is not necessary (ii) making EDSL compatible with Python 3.12.x Leaving the issue open until we come up with a good fix for this.

johnjosephhorton commented 1 month ago

Do we have a sense of what it would take to make edsl compatible with 3.12x?