Hi,
When I run “make check”, it finishes like that: ============================================================================ Testsuite summary for QuantLib 1.7 ============================================================================ # TOTAL: 0 # PASS: 0 # SKIP: 0 # XFAIL: 0 # FAIL: 0 # XPASS: 0 # ERROR: 0 ============================================================================ Making check in Swap /Applications/Xcode.app/Contents/Developer/usr/bin/make check-TESTS make[5]: Nothing to be done for `all'. ============================================================================ Testsuite summary for QuantLib 1.7 ============================================================================ # TOTAL: 0 # PASS: 0 # SKIP: 0 # XFAIL: 0 # FAIL: 0 # XPASS: 0 # ERROR: 0 ============================================================================ make[2]: Nothing to be done for `check-am'. Making check in test-suite /Applications/Xcode.app/Contents/Developer/usr/bin/make check-TESTS FAIL: quantlib-test-suite make[4]: Nothing to be done for `all'. ============================================================================ Testsuite summary for QuantLib 1.7 ============================================================================ # TOTAL: 1 # PASS: 0 # SKIP: 0 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 ============================================================================ See test-suite/test-suite.log Please report to [hidden email] ============================================================================ make[3]: *** [test-suite.log] Error 1 make[2]: *** [check-TESTS] Error 2 make[1]: *** [check-am] Error 2 make: *** [check-recursive] Error 1 Xavier
|
Ok, thanks. May you post the file test-suite/quantlib-test-suite.log that the test should have created? Luigi On Tue, Jan 19, 2016 at 11:36 AM xvallee <[hidden email]> wrote: Hi, ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140 _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hi,
test-suite.log: ============================================= QuantLib 1.7: test-suite/test-suite.log ============================================= # TOTAL: 1 # PASS: 0 # SKIP: 0 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 .. contents:: :depth: 2 FAIL: quantlib-test-suite ========================= Test setup error: memory access violation at address: 0x00000000: no mapping at fault address quantlib-test-suite.log: Test setup error: memory access violation at address: 0x00000000: no mapping at fault address —— I have managed to run some python examples using Quantlib so it doesn’t seem to create any subsequent problems.
|
In reply to this post by xvallee
hi Xavier, Luigi
I'm a newbie to Quantlib and OSX. I tried to follow your recommended steps to install the latest quantlib and quantlib-swig on my OSX10.11.4 but I'm stuck step 5. Could you shed some light on how to execute step 5 in this case? ie. more detailed instructions to execute this step Thank you. "5) Remove "-lboost_thread" from Examples/FRA/Makefile.in " As a OSX10.11.4 user, I've struggled to get quantlib-swig-1.8 for python. just hope the above recommendation would work for me as well. |
Hello, the problem that step 5 addressed is already fixed in the latest version, so the step is no longer needed.About QuantLib-SWIG: I'm writing a set of instructions for the QuantLib site. I'll let you know when it's done. Luigi On Sun, Jun 12, 2016 at 5:46 PM newbie <[hidden email]> wrote: hi Xavier, Luigi ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hello, may you try the instructions at <http://quantlib.org/install/macosx.shtml> (QuantLib) and <http://quantlib.org/install/macosx-python.shtml> (QuantLib-SWIG)? Let me know if they work, and if not, where they should be changed. Thanks, Luigi On Sun, Jun 12, 2016 at 6:51 PM Luigi Ballabio <[hidden email]> wrote:
------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381 _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
In reply to this post by xvallee
Many thanks.
|
In reply to this post by xvallee
I did as per the instructions for installation of the QuantLib-Python
Quant lib itself seems to be fine. SWIG compilation itself seems to be fine but i still get this error: make -C Python seems to be fine am able to install using sudo. BUT..... make -C Python check /Applications/Xcode.app/Contents/Developer/usr/bin/make check-am /Applications/Xcode.app/Contents/Developer/usr/bin/make check-local /opt/local/bin/python setup.py test running test running build running build_py running build_ext Traceback (most recent call last): File "setup.py", line 249, in <module> 'build_ext': my_build_ext File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup dist.run_commands() File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "setup.py", line 58, in run module = __import__('QuantLibTestSuite', globals(), locals(), ['']) File "test/QuantLibTestSuite.py", line 22, in <module> from date import DateTest File "test/date.py", line 18, in <module> import QuantLib File "build/lib.macosx-10.11-x86_64-2.7/QuantLib/__init__.py", line 24, in <module> from QuantLib import * File "build/lib.macosx-10.11-x86_64-2.7/QuantLib/QuantLib.py", line 21, in <module> _QuantLib = swig_import_helper() File "build/lib.macosx-10.11-x86_64-2.7/QuantLib/QuantLib.py", line 20, in swig_import_helper return importlib.import_module('_QuantLib') File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module __import__(name) ImportError: No module named _QuantLib make[2]: *** [check-local] Error 1 make[1]: *** [check-am] Error 2 i checked my PATH, LD_LIBRARY_PATH whatever environment or prefix or any configuration from every possible help i could find without success. is there any issue with swig installation? |
Hello, may you check that the location of libQuantLib.so is in your LD_LIBRARY_PATH? Luigi On Mon, Aug 8, 2016 at 8:04 AM M M <[hidden email]> wrote: I did as per the instructions for installation of the QuantLib-Python ------------------------------------------------------------------------------ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
In reply to this post by M M
Hi, just as a note, I compiled for QuantLib 1.9 and Python 2.7.12 (El Capitan 10.11.6). I installed QuantLib using macports (sudo port install QuantLib), then I spent a lot of time trying to understand the SWIG compilation error. Do as follows (steps for the layman):
1) Ignore the ./configure and make steps 2) Go straight for the Python folder 3) run: python setup.py build 4) after complaining about the i386 crap and x86_64, run the following (compile again): g++ -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/opt/local/include -I/opt/local/include -c QuantLib/quantlib_wrap.cpp -o build/temp.macosx-10.6-intel-2.7/QuantLib/quantlib_wrap.o -Wno-unused 5) Link again: g++ -bundle -undefined dynamic_lookup -arch x86_64 -g build/temp.macosx-10.6-intel-2.7/QuantLib/quantlib_wrap.o -L/opt/local/lib -L/opt/local/lib -lQuantLib -o build/lib.macosx-10.6-intel-2.7/QuantLib/_QuantLib.so 6) DON'T USE python setup.py install 7) Run python setup.py test, check if it works 8) copy the QuantLib folder in build/lib.macosx-10.6-intel-2.7/ to python site-packages (Frameworks/Python.framework/Versions/2.7/lib/Python2.7/site-packages Test it in the interpreter. Things that others can pursuit: Honestly, I don't know the reason for the two arch flags in the build process (-arch i386 -arch x86_64), but I know that this is the problem for linking the libs. I checked everything in the setup.py and the environment variables, I don't know where it is set. Also, I don't know why the sudo python setup.py install fails to move properly the files. |
Hi,
I have a working QuantLib environment with: - OS X version 10.11.6 - Quantlib-1.9 and QuantLib-SWIG-1.9 (only the Python part of SWIG) compiled from sources by - g++ 6.3.0 - Python 2.7.13 installed by homebrew If I remember correctly, the recommendations from Internet it were - NOT to use Xcode and native C++ compiler of OSX (which means I have installed the latest g++ 6.3.0) - NOT to use python from OSX (and again, I had to install python from homebrew) $ which python /usr/local/bin/python $ python Python 2.7.13 (default, Dec 17 2016, 23:03:43) [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.42.1)] on darwin Type "help", "copyright", "credits" or "license" for more information. User startup file was loaded >>> import QuantLib as ql >>> ql.__file__ '/usr/local/lib/python2.7/site-packages/QuantLib/__init__.pyc' >>> ql.__version__ '1.9' >>> ql.Date(2,1,2017) Date(2,1,2017) With best wishes, Alexander On 31/12/2016, Ikeuchi <[hidden email]> wrote: > Hi, just as a note, I compiled for QuantLib 1.9 and Python 2.7.12 (El > Capitan > 10.11.6). I installed QuantLib using macports (sudo port install QuantLib), > then I spent a lot of time trying to understand the SWIG compilation error. > Do as follows (steps for the layman): > > 1) Ignore the ./configure and make steps > 2) Go straight for the Python folder > 3) run: python setup.py build > 4) after complaining about the i386 crap and x86_64, run the following > (compile again): > > g++ -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -g -DNDEBUG -g > -fwrapv -O3 -Wall -Wstrict-prototypes > -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 > -I/opt/local/include -I/opt/local/include -c QuantLib/quantlib_wrap.cpp -o > build/temp.macosx-10.6-intel-2.7/QuantLib/quantlib_wrap.o -Wno-unused > > 5) Link again: > > g++ -bundle -undefined dynamic_lookup -arch x86_64 -g > build/temp.macosx-10.6-intel-2.7/QuantLib/quantlib_wrap.o -L/opt/local/lib > -L/opt/local/lib -lQuantLib -o > build/lib.macosx-10.6-intel-2.7/QuantLib/_QuantLib.so > > 6) DON'T USE python setup.py install > > 7) Run python setup.py test, check if it works > > 8) copy the QuantLib folder in build/lib.macosx-10.6-intel-2.7/ to python > site-packages > (Frameworks/Python.framework/Versions/2.7/lib/Python2.7/site-packages > > Test it in the interpreter. Things that others can pursuit: > > Honestly, I don't know the reason for the two arch flags in the build > process (-arch i386 -arch x86_64), but I know that this is the problem for > linking the libs. I checked everything in the setup.py and the environment > variables, I don't know where it is set. Also, I don't know why the sudo > python setup.py install fails to move properly the files. > > > > -- > View this message in context: > http://quantlib.10058.n7.nabble.com/Installation-issues-on-Mac-OS-X-10-11-2-tp17214p17952.html > Sent from the quantlib-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > QuantLib-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/quantlib-users > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |