Quantlib-SWIG 1.12.x for Python error, missing Quantlib/quantlib_wrap.cpp in windows
I downloaded both Quantlib-SWIG 1.12.x and Quantlib 1.12.x from github. Quantlib is compiled without and problems. The examples ran normally. However, when run python setup.py build
, there is an error indicating missing quantlib_wrap.cpp
. Where to download the proper quantlib_wrap.cpp
for this version or this error is related to something else? Here is the messages I got from this build.
C:UsersPublic3rdPartyLibrariesQuantLib-SWIG-1.12.xPython>python setup.py build
running build
running build_py
file QuantLibQuantLib.py (for module QuantLib.QuantLib) not found
file QuantLibQuantLib.py (for module QuantLib.QuantLib) not found
running build_ext
building 'QuantLib._QuantLib' extension
C:UsersU435169AppDataLocalProgramsCommonMicrosoftVisual C++ for Python9.0VCBincl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -D__WIN32__ -DWIN32 -DNDEBUG -D_WINDOWS -DNOMINMAX -Id:packagesPython27include -Id:packagesPython27PC -IC:UsersPublic3rdPartyLibrariesQuantLib-master /TpQuantLib/quantlib_wrap.cpp /Fobuildtemp.win32-2.7ReleaseQuantLib/quantlib_wrap.obj /GR /FD /Zm250 /EHsc /bigobj /MD
quantlib_wrap.cpp
c1xx : fatal error C1083: Cannot open source file: 'QuantLib/quantlib_wrap.cpp': No such file or directory
error: command 'C:\Users\U435169\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe' failed with exit status 2
python c++ quantlib quantlib-swig
add a comment |
I downloaded both Quantlib-SWIG 1.12.x and Quantlib 1.12.x from github. Quantlib is compiled without and problems. The examples ran normally. However, when run python setup.py build
, there is an error indicating missing quantlib_wrap.cpp
. Where to download the proper quantlib_wrap.cpp
for this version or this error is related to something else? Here is the messages I got from this build.
C:UsersPublic3rdPartyLibrariesQuantLib-SWIG-1.12.xPython>python setup.py build
running build
running build_py
file QuantLibQuantLib.py (for module QuantLib.QuantLib) not found
file QuantLibQuantLib.py (for module QuantLib.QuantLib) not found
running build_ext
building 'QuantLib._QuantLib' extension
C:UsersU435169AppDataLocalProgramsCommonMicrosoftVisual C++ for Python9.0VCBincl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -D__WIN32__ -DWIN32 -DNDEBUG -D_WINDOWS -DNOMINMAX -Id:packagesPython27include -Id:packagesPython27PC -IC:UsersPublic3rdPartyLibrariesQuantLib-master /TpQuantLib/quantlib_wrap.cpp /Fobuildtemp.win32-2.7ReleaseQuantLib/quantlib_wrap.obj /GR /FD /Zm250 /EHsc /bigobj /MD
quantlib_wrap.cpp
c1xx : fatal error C1083: Cannot open source file: 'QuantLib/quantlib_wrap.cpp': No such file or directory
error: command 'C:\Users\U435169\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe' failed with exit status 2
python c++ quantlib quantlib-swig
add a comment |
I downloaded both Quantlib-SWIG 1.12.x and Quantlib 1.12.x from github. Quantlib is compiled without and problems. The examples ran normally. However, when run python setup.py build
, there is an error indicating missing quantlib_wrap.cpp
. Where to download the proper quantlib_wrap.cpp
for this version or this error is related to something else? Here is the messages I got from this build.
C:UsersPublic3rdPartyLibrariesQuantLib-SWIG-1.12.xPython>python setup.py build
running build
running build_py
file QuantLibQuantLib.py (for module QuantLib.QuantLib) not found
file QuantLibQuantLib.py (for module QuantLib.QuantLib) not found
running build_ext
building 'QuantLib._QuantLib' extension
C:UsersU435169AppDataLocalProgramsCommonMicrosoftVisual C++ for Python9.0VCBincl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -D__WIN32__ -DWIN32 -DNDEBUG -D_WINDOWS -DNOMINMAX -Id:packagesPython27include -Id:packagesPython27PC -IC:UsersPublic3rdPartyLibrariesQuantLib-master /TpQuantLib/quantlib_wrap.cpp /Fobuildtemp.win32-2.7ReleaseQuantLib/quantlib_wrap.obj /GR /FD /Zm250 /EHsc /bigobj /MD
quantlib_wrap.cpp
c1xx : fatal error C1083: Cannot open source file: 'QuantLib/quantlib_wrap.cpp': No such file or directory
error: command 'C:\Users\U435169\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe' failed with exit status 2
python c++ quantlib quantlib-swig
I downloaded both Quantlib-SWIG 1.12.x and Quantlib 1.12.x from github. Quantlib is compiled without and problems. The examples ran normally. However, when run python setup.py build
, there is an error indicating missing quantlib_wrap.cpp
. Where to download the proper quantlib_wrap.cpp
for this version or this error is related to something else? Here is the messages I got from this build.
C:UsersPublic3rdPartyLibrariesQuantLib-SWIG-1.12.xPython>python setup.py build
running build
running build_py
file QuantLibQuantLib.py (for module QuantLib.QuantLib) not found
file QuantLibQuantLib.py (for module QuantLib.QuantLib) not found
running build_ext
building 'QuantLib._QuantLib' extension
C:UsersU435169AppDataLocalProgramsCommonMicrosoftVisual C++ for Python9.0VCBincl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -D__WIN32__ -DWIN32 -DNDEBUG -D_WINDOWS -DNOMINMAX -Id:packagesPython27include -Id:packagesPython27PC -IC:UsersPublic3rdPartyLibrariesQuantLib-master /TpQuantLib/quantlib_wrap.cpp /Fobuildtemp.win32-2.7ReleaseQuantLib/quantlib_wrap.obj /GR /FD /Zm250 /EHsc /bigobj /MD
quantlib_wrap.cpp
c1xx : fatal error C1083: Cannot open source file: 'QuantLib/quantlib_wrap.cpp': No such file or directory
error: command 'C:\Users\U435169\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe' failed with exit status 2
python c++ quantlib quantlib-swig
python c++ quantlib quantlib-swig
edited Nov 20 '18 at 3:20


Aqueous Carlos
293213
293213
asked Nov 20 '18 at 2:41
MagicFattoMagicFatto
12
12
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
quantlib_wrap.cpp
is generated by SWIG using the sources in the repository. If you have SWIG installed, you can generate it (see https://www.quantlib.org/install/windows-python.shtml); but if you don't have plans to modify the sources, I suggest that you either:
instead of cloning the repo from GitHub, download an official release (see https://www.quantlib.org/download.shtml); released sources include
quantlib_wrap.cpp
;
or better yet, as suggested in the install page linked above, try running
pip install QuantLib-Python
to see if a precompiled Python module is available from PyPI. If that succeeds, you'll be set without having to compile the thing yourself.
After downloaded quantlib 1.14 and quantlib1.14 swig, this issue is resolved. But I ran into another issue published in another post: stackoverflow.com/questions/53400935/…
– MagicFatto
Nov 20 '18 at 21:37
add a comment |
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%2f53385447%2fquantlib-swig-1-12-x-for-python-error-missing-quantlib-quantlib-wrap-cpp-in-win%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
quantlib_wrap.cpp
is generated by SWIG using the sources in the repository. If you have SWIG installed, you can generate it (see https://www.quantlib.org/install/windows-python.shtml); but if you don't have plans to modify the sources, I suggest that you either:
instead of cloning the repo from GitHub, download an official release (see https://www.quantlib.org/download.shtml); released sources include
quantlib_wrap.cpp
;
or better yet, as suggested in the install page linked above, try running
pip install QuantLib-Python
to see if a precompiled Python module is available from PyPI. If that succeeds, you'll be set without having to compile the thing yourself.
After downloaded quantlib 1.14 and quantlib1.14 swig, this issue is resolved. But I ran into another issue published in another post: stackoverflow.com/questions/53400935/…
– MagicFatto
Nov 20 '18 at 21:37
add a comment |
quantlib_wrap.cpp
is generated by SWIG using the sources in the repository. If you have SWIG installed, you can generate it (see https://www.quantlib.org/install/windows-python.shtml); but if you don't have plans to modify the sources, I suggest that you either:
instead of cloning the repo from GitHub, download an official release (see https://www.quantlib.org/download.shtml); released sources include
quantlib_wrap.cpp
;
or better yet, as suggested in the install page linked above, try running
pip install QuantLib-Python
to see if a precompiled Python module is available from PyPI. If that succeeds, you'll be set without having to compile the thing yourself.
After downloaded quantlib 1.14 and quantlib1.14 swig, this issue is resolved. But I ran into another issue published in another post: stackoverflow.com/questions/53400935/…
– MagicFatto
Nov 20 '18 at 21:37
add a comment |
quantlib_wrap.cpp
is generated by SWIG using the sources in the repository. If you have SWIG installed, you can generate it (see https://www.quantlib.org/install/windows-python.shtml); but if you don't have plans to modify the sources, I suggest that you either:
instead of cloning the repo from GitHub, download an official release (see https://www.quantlib.org/download.shtml); released sources include
quantlib_wrap.cpp
;
or better yet, as suggested in the install page linked above, try running
pip install QuantLib-Python
to see if a precompiled Python module is available from PyPI. If that succeeds, you'll be set without having to compile the thing yourself.
quantlib_wrap.cpp
is generated by SWIG using the sources in the repository. If you have SWIG installed, you can generate it (see https://www.quantlib.org/install/windows-python.shtml); but if you don't have plans to modify the sources, I suggest that you either:
instead of cloning the repo from GitHub, download an official release (see https://www.quantlib.org/download.shtml); released sources include
quantlib_wrap.cpp
;
or better yet, as suggested in the install page linked above, try running
pip install QuantLib-Python
to see if a precompiled Python module is available from PyPI. If that succeeds, you'll be set without having to compile the thing yourself.
answered Nov 20 '18 at 9:01
Luigi BallabioLuigi Ballabio
2,8181323
2,8181323
After downloaded quantlib 1.14 and quantlib1.14 swig, this issue is resolved. But I ran into another issue published in another post: stackoverflow.com/questions/53400935/…
– MagicFatto
Nov 20 '18 at 21:37
add a comment |
After downloaded quantlib 1.14 and quantlib1.14 swig, this issue is resolved. But I ran into another issue published in another post: stackoverflow.com/questions/53400935/…
– MagicFatto
Nov 20 '18 at 21:37
After downloaded quantlib 1.14 and quantlib1.14 swig, this issue is resolved. But I ran into another issue published in another post: stackoverflow.com/questions/53400935/…
– MagicFatto
Nov 20 '18 at 21:37
After downloaded quantlib 1.14 and quantlib1.14 swig, this issue is resolved. But I ran into another issue published in another post: stackoverflow.com/questions/53400935/…
– MagicFatto
Nov 20 '18 at 21:37
add a comment |
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%2f53385447%2fquantlib-swig-1-12-x-for-python-error-missing-quantlib-quantlib-wrap-cpp-in-win%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