Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numpy version issue #26

Closed
yl-miao opened this issue Jun 25, 2024 · 3 comments · May be fixed by #27
Closed

Numpy version issue #26

yl-miao opened this issue Jun 25, 2024 · 3 comments · May be fixed by #27
Assignees

Comments

@yl-miao
Copy link

yl-miao commented Jun 25, 2024

Hi,

After testing, the demo_swarm can be run in a newly-created Colab Notebook after pip install gptswarm, but cannot be run in a newly-created Python 3.10 environment by miniconda after pip install gptswarm. Please refer to the pictures:

Pasted Graphic Pasted Graphic 1

I suspect the reason might be: In Colab, although the default version for Python is 3.10, the default version for numpy is 1.25.2. However, in a newly-created conda Python 3.10 environment, during pip install gptswarm, it would install numpy version 2.0.0.

I wondered if this issue can be fixed by adding a restriction for numpy version in the "pyproject.toml" file, or it may be caused by something in the demo code, or by something else, I'm not entirely sure.

Thank you very much!

@Obs01ete

The detailed output (After 'conda create -n tmpenv python=3.10' and 'pip install gptswarm' and the demo_swarm):
Pasted Graphic 2

@Obs01ete
Copy link
Contributor

Hi @yl-miao, thank you for your interest to GPTSwarm! Indeed, some couple of weeks ago, numpy==2.0 had been released and broke outstandingly many builds in the python world. We will consider adding a constraint of numpy<2 in the next version of GPTSwarm release. Meanwhile a hotfix is to manually install pip install numpy==1.25.2 and possibly downgrade versions of packages like seaborn as needed. Please let me know if it solves the issue for you.

@Obs01ete Obs01ete self-assigned this Jun 25, 2024
@Obs01ete Obs01ete linked a pull request Jun 25, 2024 that will close this issue
@Obs01ete
Copy link
Contributor

@yl-miao you can always install the recent or your own customized version from the cloned repo with poetry install. Please find the instruction in https://github.com/metauto-ai/GPTSwarm/blob/main/DEVELOPMENT.md.
You can also try my latest fix at #27.

@yl-miao
Copy link
Author

yl-miao commented Jun 26, 2024

Hi, the #27 fixes this. Thank you very much : ) @Obs01ete

@mczhuge mczhuge closed this as completed Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants