Quantlib-SWIG 1.12.x for Python error, missing Quantlib/quantlib_wrap.cpp in windows












0















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









share|improve this question





























    0















    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









    share|improve this question



























      0












      0








      0








      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









      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 20 '18 at 3:20









      Aqueous Carlos

      293213




      293213










      asked Nov 20 '18 at 2:41









      MagicFattoMagicFatto

      12




      12
























          1 Answer
          1






          active

          oldest

          votes


















          0














          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.








          share|improve this answer
























          • 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













          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
          });


          }
          });














          draft saved

          draft discarded


















          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









          0














          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.








          share|improve this answer
























          • 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


















          0














          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.








          share|improve this answer
























          • 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
















          0












          0








          0







          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.








          share|improve this answer













          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.









          share|improve this answer












          share|improve this answer



          share|improve this answer










          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





















          • 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




















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          MongoDB - Not Authorized To Execute Command

          How to fix TextFormField cause rebuild widget in Flutter

          in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith