Python can't install Box2D swig.exe failed with error code 1
I try to install Box2D on python but I get the error log:
C:>pip3 install Box2D
Collecting Box2D
Using cached https://files.pythonhosted.org/packages/cc/7b/ddb96fea1fa5b24f8929714ef483f64c33e9649e7aae066e5f5023ea426a/Box2D-2.3.2.tar.gz
Building wheels for collected packages: Box2D
Running setup.py bdist_wheel for Box2D ... error
Complete output from command c:usershp-laptopappdatalocalprogramspythonpython36python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\HP-LAP~1\AppData\Local\Temp\pip-install-r48_7g5v\Box2D\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:UsersHP-LAP~1AppDataLocalTemppip-wheel-d2ghuwrx --python-tag cp36:
Using setuptools (version 40.5.0).
running bdist_wheel
running build
running build_py
creating build
creating buildlib.win-amd64-3.6
creating buildlib.win-amd64-3.6Box2D
copying libraryBox2DBox2D.py -> buildlib.win-amd64-3.6Box2D
copying libraryBox2D__init__.py -> buildlib.win-amd64-3.6Box2D
creating buildlib.win-amd64-3.6Box2Db2
copying libraryBox2Db2__init__.py -> buildlib.win-amd64-3.6Box2Db2
running build_ext
building 'Box2D._Box2D' extension
swigging Box2DBox2D.i to Box2DBox2D_wrap.cpp
C:UsersHP-LaptopAppDataLocalProgramsPythonPython36swig.exe -python -c++ -IBox2D -small -O -includeall -ignoremissing -w201 -globals b2Globals -outdir libraryBox2D -keyword -w511 -D_SWIG_KWARGS -o Box2DBox2D_wrap.cpp Box2DBox2D.i
C:UsersHP-LaptopAppDataLocalProgramsPythonPython36Libpyprimtypes.swg(7) : Error: Syntax error in input(1).
error: command 'C:\Users\HP-Laptop\AppData\Local\Programs\Python\Python36\swig.exe' failed with exit status 1
----------------------------------------
Failed building wheel for Box2D
Running setup.py clean for Box2D
Failed to build Box2D
Installing collected packages: Box2D
Running setup.py install for Box2D ... error
Complete output from command c:usershp-laptopappdatalocalprogramspythonpython36python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\HP-LAP~1\AppData\Local\Temp\pip-install-r48_7g5v\Box2D\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:UsersHP-LAP~1AppDataLocalTemppip-record-nv5dm4ruinstall-record.txt --single-version-externally-managed --compile:
Using setuptools (version 40.5.0).
running install
running build
running build_py
creating build
creating buildlib.win-amd64-3.6
creating buildlib.win-amd64-3.6Box2D
copying libraryBox2DBox2D.py -> buildlib.win-amd64-3.6Box2D
copying libraryBox2D__init__.py -> buildlib.win-amd64-3.6Box2D
creating buildlib.win-amd64-3.6Box2Db2
copying libraryBox2Db2__init__.py -> buildlib.win-amd64-3.6Box2Db2
running build_ext
building 'Box2D._Box2D' extension
swigging Box2DBox2D.i to Box2DBox2D_wrap.cpp
C:UsersHP-LaptopAppDataLocalProgramsPythonPython36swig.exe -python -c++ -IBox2D -small -O -includeall -ignoremissing -w201 -globals b2Globals -outdir libraryBox2D -keyword -w511 -D_SWIG_KWARGS -o Box2DBox2D_wrap.cpp Box2DBox2D.i
C:UsersHP-LaptopAppDataLocalProgramsPythonPython36Libpyprimtypes.swg(7) : Error: Syntax error in input(1).
error: command 'C:\Users\HP-Laptop\AppData\Local\Programs\Python\Python36\swig.exe' failed with exit status 1
----------------------------------------
Command "c:usershp-laptopappdatalocalprogramspythonpython36python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\HP-LAP~1\AppData\Local\Temp\pip-install-r48_7g5v\Box2D\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:UsersHP-LAP~1AppDataLocalTemppip-record-nv5dm4ruinstall-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:UsersHP-LAP~1AppDataLocalTemppip-install-r48_7g5vBox2D
I tried all solutions for windows from Installing pocketsphinx python module: command 'swig.exe' failed without result.
How can I install Box2D and what means error code 1 by swig ?
python python-3.x anaconda swig
add a comment |
I try to install Box2D on python but I get the error log:
C:>pip3 install Box2D
Collecting Box2D
Using cached https://files.pythonhosted.org/packages/cc/7b/ddb96fea1fa5b24f8929714ef483f64c33e9649e7aae066e5f5023ea426a/Box2D-2.3.2.tar.gz
Building wheels for collected packages: Box2D
Running setup.py bdist_wheel for Box2D ... error
Complete output from command c:usershp-laptopappdatalocalprogramspythonpython36python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\HP-LAP~1\AppData\Local\Temp\pip-install-r48_7g5v\Box2D\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:UsersHP-LAP~1AppDataLocalTemppip-wheel-d2ghuwrx --python-tag cp36:
Using setuptools (version 40.5.0).
running bdist_wheel
running build
running build_py
creating build
creating buildlib.win-amd64-3.6
creating buildlib.win-amd64-3.6Box2D
copying libraryBox2DBox2D.py -> buildlib.win-amd64-3.6Box2D
copying libraryBox2D__init__.py -> buildlib.win-amd64-3.6Box2D
creating buildlib.win-amd64-3.6Box2Db2
copying libraryBox2Db2__init__.py -> buildlib.win-amd64-3.6Box2Db2
running build_ext
building 'Box2D._Box2D' extension
swigging Box2DBox2D.i to Box2DBox2D_wrap.cpp
C:UsersHP-LaptopAppDataLocalProgramsPythonPython36swig.exe -python -c++ -IBox2D -small -O -includeall -ignoremissing -w201 -globals b2Globals -outdir libraryBox2D -keyword -w511 -D_SWIG_KWARGS -o Box2DBox2D_wrap.cpp Box2DBox2D.i
C:UsersHP-LaptopAppDataLocalProgramsPythonPython36Libpyprimtypes.swg(7) : Error: Syntax error in input(1).
error: command 'C:\Users\HP-Laptop\AppData\Local\Programs\Python\Python36\swig.exe' failed with exit status 1
----------------------------------------
Failed building wheel for Box2D
Running setup.py clean for Box2D
Failed to build Box2D
Installing collected packages: Box2D
Running setup.py install for Box2D ... error
Complete output from command c:usershp-laptopappdatalocalprogramspythonpython36python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\HP-LAP~1\AppData\Local\Temp\pip-install-r48_7g5v\Box2D\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:UsersHP-LAP~1AppDataLocalTemppip-record-nv5dm4ruinstall-record.txt --single-version-externally-managed --compile:
Using setuptools (version 40.5.0).
running install
running build
running build_py
creating build
creating buildlib.win-amd64-3.6
creating buildlib.win-amd64-3.6Box2D
copying libraryBox2DBox2D.py -> buildlib.win-amd64-3.6Box2D
copying libraryBox2D__init__.py -> buildlib.win-amd64-3.6Box2D
creating buildlib.win-amd64-3.6Box2Db2
copying libraryBox2Db2__init__.py -> buildlib.win-amd64-3.6Box2Db2
running build_ext
building 'Box2D._Box2D' extension
swigging Box2DBox2D.i to Box2DBox2D_wrap.cpp
C:UsersHP-LaptopAppDataLocalProgramsPythonPython36swig.exe -python -c++ -IBox2D -small -O -includeall -ignoremissing -w201 -globals b2Globals -outdir libraryBox2D -keyword -w511 -D_SWIG_KWARGS -o Box2DBox2D_wrap.cpp Box2DBox2D.i
C:UsersHP-LaptopAppDataLocalProgramsPythonPython36Libpyprimtypes.swg(7) : Error: Syntax error in input(1).
error: command 'C:\Users\HP-Laptop\AppData\Local\Programs\Python\Python36\swig.exe' failed with exit status 1
----------------------------------------
Command "c:usershp-laptopappdatalocalprogramspythonpython36python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\HP-LAP~1\AppData\Local\Temp\pip-install-r48_7g5v\Box2D\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:UsersHP-LAP~1AppDataLocalTemppip-record-nv5dm4ruinstall-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:UsersHP-LAP~1AppDataLocalTemppip-install-r48_7g5vBox2D
I tried all solutions for windows from Installing pocketsphinx python module: command 'swig.exe' failed without result.
How can I install Box2D and what means error code 1 by swig ?
python python-3.x anaconda swig
add a comment |
I try to install Box2D on python but I get the error log:
C:>pip3 install Box2D
Collecting Box2D
Using cached https://files.pythonhosted.org/packages/cc/7b/ddb96fea1fa5b24f8929714ef483f64c33e9649e7aae066e5f5023ea426a/Box2D-2.3.2.tar.gz
Building wheels for collected packages: Box2D
Running setup.py bdist_wheel for Box2D ... error
Complete output from command c:usershp-laptopappdatalocalprogramspythonpython36python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\HP-LAP~1\AppData\Local\Temp\pip-install-r48_7g5v\Box2D\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:UsersHP-LAP~1AppDataLocalTemppip-wheel-d2ghuwrx --python-tag cp36:
Using setuptools (version 40.5.0).
running bdist_wheel
running build
running build_py
creating build
creating buildlib.win-amd64-3.6
creating buildlib.win-amd64-3.6Box2D
copying libraryBox2DBox2D.py -> buildlib.win-amd64-3.6Box2D
copying libraryBox2D__init__.py -> buildlib.win-amd64-3.6Box2D
creating buildlib.win-amd64-3.6Box2Db2
copying libraryBox2Db2__init__.py -> buildlib.win-amd64-3.6Box2Db2
running build_ext
building 'Box2D._Box2D' extension
swigging Box2DBox2D.i to Box2DBox2D_wrap.cpp
C:UsersHP-LaptopAppDataLocalProgramsPythonPython36swig.exe -python -c++ -IBox2D -small -O -includeall -ignoremissing -w201 -globals b2Globals -outdir libraryBox2D -keyword -w511 -D_SWIG_KWARGS -o Box2DBox2D_wrap.cpp Box2DBox2D.i
C:UsersHP-LaptopAppDataLocalProgramsPythonPython36Libpyprimtypes.swg(7) : Error: Syntax error in input(1).
error: command 'C:\Users\HP-Laptop\AppData\Local\Programs\Python\Python36\swig.exe' failed with exit status 1
----------------------------------------
Failed building wheel for Box2D
Running setup.py clean for Box2D
Failed to build Box2D
Installing collected packages: Box2D
Running setup.py install for Box2D ... error
Complete output from command c:usershp-laptopappdatalocalprogramspythonpython36python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\HP-LAP~1\AppData\Local\Temp\pip-install-r48_7g5v\Box2D\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:UsersHP-LAP~1AppDataLocalTemppip-record-nv5dm4ruinstall-record.txt --single-version-externally-managed --compile:
Using setuptools (version 40.5.0).
running install
running build
running build_py
creating build
creating buildlib.win-amd64-3.6
creating buildlib.win-amd64-3.6Box2D
copying libraryBox2DBox2D.py -> buildlib.win-amd64-3.6Box2D
copying libraryBox2D__init__.py -> buildlib.win-amd64-3.6Box2D
creating buildlib.win-amd64-3.6Box2Db2
copying libraryBox2Db2__init__.py -> buildlib.win-amd64-3.6Box2Db2
running build_ext
building 'Box2D._Box2D' extension
swigging Box2DBox2D.i to Box2DBox2D_wrap.cpp
C:UsersHP-LaptopAppDataLocalProgramsPythonPython36swig.exe -python -c++ -IBox2D -small -O -includeall -ignoremissing -w201 -globals b2Globals -outdir libraryBox2D -keyword -w511 -D_SWIG_KWARGS -o Box2DBox2D_wrap.cpp Box2DBox2D.i
C:UsersHP-LaptopAppDataLocalProgramsPythonPython36Libpyprimtypes.swg(7) : Error: Syntax error in input(1).
error: command 'C:\Users\HP-Laptop\AppData\Local\Programs\Python\Python36\swig.exe' failed with exit status 1
----------------------------------------
Command "c:usershp-laptopappdatalocalprogramspythonpython36python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\HP-LAP~1\AppData\Local\Temp\pip-install-r48_7g5v\Box2D\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:UsersHP-LAP~1AppDataLocalTemppip-record-nv5dm4ruinstall-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:UsersHP-LAP~1AppDataLocalTemppip-install-r48_7g5vBox2D
I tried all solutions for windows from Installing pocketsphinx python module: command 'swig.exe' failed without result.
How can I install Box2D and what means error code 1 by swig ?
python python-3.x anaconda swig
I try to install Box2D on python but I get the error log:
C:>pip3 install Box2D
Collecting Box2D
Using cached https://files.pythonhosted.org/packages/cc/7b/ddb96fea1fa5b24f8929714ef483f64c33e9649e7aae066e5f5023ea426a/Box2D-2.3.2.tar.gz
Building wheels for collected packages: Box2D
Running setup.py bdist_wheel for Box2D ... error
Complete output from command c:usershp-laptopappdatalocalprogramspythonpython36python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\HP-LAP~1\AppData\Local\Temp\pip-install-r48_7g5v\Box2D\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:UsersHP-LAP~1AppDataLocalTemppip-wheel-d2ghuwrx --python-tag cp36:
Using setuptools (version 40.5.0).
running bdist_wheel
running build
running build_py
creating build
creating buildlib.win-amd64-3.6
creating buildlib.win-amd64-3.6Box2D
copying libraryBox2DBox2D.py -> buildlib.win-amd64-3.6Box2D
copying libraryBox2D__init__.py -> buildlib.win-amd64-3.6Box2D
creating buildlib.win-amd64-3.6Box2Db2
copying libraryBox2Db2__init__.py -> buildlib.win-amd64-3.6Box2Db2
running build_ext
building 'Box2D._Box2D' extension
swigging Box2DBox2D.i to Box2DBox2D_wrap.cpp
C:UsersHP-LaptopAppDataLocalProgramsPythonPython36swig.exe -python -c++ -IBox2D -small -O -includeall -ignoremissing -w201 -globals b2Globals -outdir libraryBox2D -keyword -w511 -D_SWIG_KWARGS -o Box2DBox2D_wrap.cpp Box2DBox2D.i
C:UsersHP-LaptopAppDataLocalProgramsPythonPython36Libpyprimtypes.swg(7) : Error: Syntax error in input(1).
error: command 'C:\Users\HP-Laptop\AppData\Local\Programs\Python\Python36\swig.exe' failed with exit status 1
----------------------------------------
Failed building wheel for Box2D
Running setup.py clean for Box2D
Failed to build Box2D
Installing collected packages: Box2D
Running setup.py install for Box2D ... error
Complete output from command c:usershp-laptopappdatalocalprogramspythonpython36python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\HP-LAP~1\AppData\Local\Temp\pip-install-r48_7g5v\Box2D\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:UsersHP-LAP~1AppDataLocalTemppip-record-nv5dm4ruinstall-record.txt --single-version-externally-managed --compile:
Using setuptools (version 40.5.0).
running install
running build
running build_py
creating build
creating buildlib.win-amd64-3.6
creating buildlib.win-amd64-3.6Box2D
copying libraryBox2DBox2D.py -> buildlib.win-amd64-3.6Box2D
copying libraryBox2D__init__.py -> buildlib.win-amd64-3.6Box2D
creating buildlib.win-amd64-3.6Box2Db2
copying libraryBox2Db2__init__.py -> buildlib.win-amd64-3.6Box2Db2
running build_ext
building 'Box2D._Box2D' extension
swigging Box2DBox2D.i to Box2DBox2D_wrap.cpp
C:UsersHP-LaptopAppDataLocalProgramsPythonPython36swig.exe -python -c++ -IBox2D -small -O -includeall -ignoremissing -w201 -globals b2Globals -outdir libraryBox2D -keyword -w511 -D_SWIG_KWARGS -o Box2DBox2D_wrap.cpp Box2DBox2D.i
C:UsersHP-LaptopAppDataLocalProgramsPythonPython36Libpyprimtypes.swg(7) : Error: Syntax error in input(1).
error: command 'C:\Users\HP-Laptop\AppData\Local\Programs\Python\Python36\swig.exe' failed with exit status 1
----------------------------------------
Command "c:usershp-laptopappdatalocalprogramspythonpython36python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\HP-LAP~1\AppData\Local\Temp\pip-install-r48_7g5v\Box2D\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:UsersHP-LAP~1AppDataLocalTemppip-record-nv5dm4ruinstall-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:UsersHP-LAP~1AppDataLocalTemppip-install-r48_7g5vBox2D
I tried all solutions for windows from Installing pocketsphinx python module: command 'swig.exe' failed without result.
How can I install Box2D and what means error code 1 by swig ?
python python-3.x anaconda swig
python python-3.x anaconda swig
asked 2 days ago
SeeuD1SeeuD1
1,43711943
1,43711943
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54252800%2fpython-cant-install-box2d-swig-exe-failed-with-error-code-1%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f54252800%2fpython-cant-install-box2d-swig-exe-failed-with-error-code-1%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown