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

Extend the README steps for building the standalone executable (pip install numpy<2.0) #1532

Open
js485 opened this issue Feb 7, 2025 · 0 comments

Comments

@js485
Copy link

js485 commented Feb 7, 2025

Provide environment information

Python 3.9.13
labelme 5.6.1

What OS are you using?

Microsoft Windows

Describe the Bug

Hi,

for building the standalone executable, it seems like numpy versions >= 2.0 yield errors.
pip-installing numpy<2.0 fixed the problem.
Maybe, you can add that to README.md.

# Build the standalone executable
pip install .
pip install 'matplotlib<3.3'
pip install numpy<2.0
pip install pyinstaller
pyinstaller labelme.spec
dist/labelme --version

Expected Behavior

Following the steps for building the standalone executable as described in the README should not yield errors.

To Reproduce

I created a fresh python 3.9.13 environment (as proposed in the README, though I used python -m venv instead of conda) and then followed the process for building the standalone executable as described in the README:

# Build the standalone executable
pip install .
pip install 'matplotlib<3.3'
pip install pyinstaller
pyinstaller labelme.spec

The last command runs into an error resulting from numpy.

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

No branches or pull requests

1 participant