Skip to content

pls help install box2d-py #844

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

Closed
Sandy4321 opened this issue Apr 24, 2020 · 2 comments
Closed

pls help install box2d-py #844

Sandy4321 opened this issue Apr 24, 2020 · 2 comments

Comments

@Sandy4321
Copy link

also mentioned in
pybox2d/pybox2d#106
None of the solutions above solved my problem...
Windows 10 - 64
Python 3.7
error is

E:\WINPYTHON_FULL_apr22\WPy64-3770\scripts>pip install box2d-py
Collecting box2d-py
Using cached box2d-py-2.3.8.tar.gz (374 kB)
Building wheels for collected packages: box2d-py
Building wheel for box2d-py (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'E:\WINPYTHON_FULL_apr22\WPy64-3770\python-3.7.7.amd64\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\sndr\AppData\Local\Temp\pip-install-051a0jhh\box2d-py\setup.py'"'"'; file='"'"'C:\Users\sndr\AppData\Local\Temp\pip-install-051a0jhh\box2d-py\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\sndr\AppData\Local\Temp\pip-wheel-o6d1ycsj'
cwd: C:\Users\sndr\AppData\Local\Temp\pip-install-051a0jhh\box2d-py
Complete output (16 lines):
Using setuptools (version 46.0.0).
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\Box2D
copying library\Box2D\Box2D.py -> build\lib.win-amd64-3.7\Box2D
copying library\Box2D_init_.py -> build\lib.win-amd64-3.7\Box2D
creating build\lib.win-amd64-3.7\Box2D\b2
copying library\Box2D\b2_init_.py -> build\lib.win-amd64-3.7\Box2D\b2
running build_ext
building 'Box2D._Box2D' extension
swigging Box2D\Box2D.i to Box2D\Box2D_wrap.cpp
swig.exe -python -c++ -IBox2D -small -O -includeall -ignoremissing -w201 -globals b2Globals -outdir library\Box2D -keyword -w511 -D_SWIG_KWARGS -o Box2D\Box2D_wrap.cpp Box2D\Box2D.i
error: command 'swig.exe' failed: No such file or directory

ERROR: Failed building wheel for box2d-py
Running setup.py clean for box2d-py
Failed to build box2d-py
Installing collected packages: box2d-py
Running setup.py install for box2d-py ... error
ERROR: Command errored out with exit status 1:
command: 'E:\WINPYTHON_FULL_apr22\WPy64-3770\python-3.7.7.amd64\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\sndr\AppData\Local\Temp\pip-install-051a0jhh\box2d-py\setup.py'"'"'; file='"'"'C:\Users\sndr\AppData\Local\Temp\pip-install-051a0jhh\box2d-py\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\sndr\AppData\Local\Temp\pip-record-196k65d5\install-record.txt' --single-version-externally-managed --compile --install-headers 'E:\WINPYTHON_FULL_apr22\WPy64-3770\python-3.7.7.amd64\Include\box2d-py'
cwd: C:\Users\sndr\AppData\Local\Temp\pip-install-051a0jhh\box2d-py
Complete output (16 lines):
Using setuptools (version 46.0.0).
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\Box2D
copying library\Box2D\Box2D.py -> build\lib.win-amd64-3.7\Box2D
copying library\Box2D_init_.py -> build\lib.win-amd64-3.7\Box2D
creating build\lib.win-amd64-3.7\Box2D\b2
copying library\Box2D\b2_init_.py -> build\lib.win-amd64-3.7\Box2D\b2
running build_ext
building 'Box2D._Box2D' extension
swigging Box2D\Box2D.i to Box2D\Box2D_wrap.cpp
swig.exe -python -c++ -IBox2D -small -O -includeall -ignoremissing -w201 -globals b2Globals -outdir library\Box2D -keyword -w511 -D_SWIG_KWARGS -o Box2D\Box2D_wrap.cpp Box2D\Box2D.i
error: command 'swig.exe' failed: No such file or directory
----------------------------------------
ERROR: Command errored out with exit status 1: 'E:\WINPYTHON_FULL_apr22\WPy64-3770\python-3.7.7.amd64\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\sndr\AppData\Local\Temp\pip-install-051a0jhh\box2d-py\setup.py'"'"'; file='"'"'C:\Users\sndr\AppData\Local\Temp\pip-install-051a0jhh\box2d-py\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\sndr\AppData\Local\Temp\pip-record-196k65d5\install-record.txt' --single-version-externally-managed --compile --install-headers 'E:\WINPYTHON_FULL_apr22\WPy64-3770\python-3.7.7.amd64\Include\box2d-py' Check the logs for full command output.

E:\WINPYTHON_FULL_apr22\WPy64-3770\scripts>

@stonebig
Copy link
Contributor

stonebig commented Apr 24, 2020

https://github.com/swig , and stackoverflow for gory details

@stonebig
Copy link
Contributor

stonebig commented May 4, 2025

I presume it's solved ?

@stonebig stonebig closed this as completed May 4, 2025
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

2 participants