Installation issues on Mac OS X 10.11.2

classic Classic list List threaded Threaded
31 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: Installation issues on Mac OS X 10.11.2

xvallee
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

On 19 Jan 2016, at 09:14, Luigi Ballabio [via QuantLib] <[hidden email]> wrote:

What is the error? Does it still fail if you run the test suite today?

Luigi


On Sun, Jan 17, 2016 at 6:01 PM xvallee <<a href="x-msg://5/user/SendEmail.jtp?type=node&amp;node=17269&amp;i=0" target="_top" rel="nofollow" link="external" class="">[hidden email]> wrote:
by the way, "make check" in Quantlib fails for test suite.



--
View this message in context: http://quantlib.10058.n7.nabble.com/Installation-issues-on-Mac-OS-X-10-11-2-tp17214p17263.html
Sent from the quantlib-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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
<a href="x-msg://5/user/SendEmail.jtp?type=node&amp;node=17269&amp;i=1" target="_top" rel="nofollow" link="external" class="">[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users

------------------------------------------------------------------------------
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
<a href="x-msg://5/user/SendEmail.jtp?type=node&amp;node=17269&amp;i=2" target="_top" rel="nofollow" link="external" class="">[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users



If you reply to this email, your message will be added to the discussion below:
http://quantlib.10058.n7.nabble.com/Installation-issues-on-Mac-OS-X-10-11-2-tp17214p17269.html
To unsubscribe from Installation issues on Mac OS X 10.11.2, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Installation issues on Mac OS X 10.11.2

Luigi Ballabio
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,

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

On 19 Jan 2016, at 09:14, Luigi Ballabio [via QuantLib] <[hidden email]> wrote:

What is the error? Does it still fail if you run the test suite today?

Luigi


On Sun, Jan 17, 2016 at 6:01 PM xvallee <<a href="x-msg://5/user/SendEmail.jtp?type=node&amp;node=17269&amp;i=0" target="_top" rel="nofollow" link="external" class="">[hidden email]> wrote:
by the way, "make check" in Quantlib fails for test suite.



--
View this message in context: http://quantlib.10058.n7.nabble.com/Installation-issues-on-Mac-OS-X-10-11-2-tp17214p17263.html
Sent from the quantlib-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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
<a href="x-msg://5/user/SendEmail.jtp?type=node&amp;node=17269&amp;i=1" target="_top" rel="nofollow" link="external" class="">[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users

------------------------------------------------------------------------------
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
<a href="x-msg://5/user/SendEmail.jtp?type=node&amp;node=17269&amp;i=2" target="_top" rel="nofollow" link="external" class="">[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users



If you reply to this email, your message will be added to the discussion below:
To unsubscribe from Installation issues on Mac OS X 10.11.2, click here.
NAML



View this message in context: Re: Installation issues on Mac OS X 10.11.2
Sent from the quantlib-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
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

------------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|

Re: Installation issues on Mac OS X 10.11.2

xvallee
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.

On 19 Jan 2016, at 10:51, Luigi Ballabio [via QuantLib] <[hidden email]> wrote:

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 <<a href="x-msg://4/user/SendEmail.jtp?type=node&amp;node=17272&amp;i=0" target="_top" rel="nofollow" link="external" class="">[hidden email]> wrote:
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

On 19 Jan 2016, at 09:14, Luigi Ballabio [via QuantLib] <[hidden email]> wrote:

What is the error? Does it still fail if you run the test suite today?

Luigi


On Sun, Jan 17, 2016 at 6:01 PM xvallee <<a href="<a href="x-msg://5/user/SendEmail.jtp?type=node&amp;amp;node=17269&amp;amp;i=0" class="">x-msg://5/user/SendEmail.jtp?type=node&amp;node=17269&amp;i=0" target="_top" rel="nofollow" link="external" class="">[hidden email]> wrote:
by the way, "make check" in Quantlib fails for test suite.



--
View this message in context: http://quantlib.10058.n7.nabble.com/Installation-issues-on-Mac-OS-X-10-11-2-tp17214p17263.html
Sent from the quantlib-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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
<a href="<a href="x-msg://5/user/SendEmail.jtp?type=node&amp;amp;node=17269&amp;amp;i=1" class="">x-msg://5/user/SendEmail.jtp?type=node&amp;node=17269&amp;i=1" target="_top" rel="nofollow" link="external" class="">[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users

------------------------------------------------------------------------------ 
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 
<a href="<a href="x-msg://5/user/SendEmail.jtp?type=node&amp;amp;node=17269&amp;amp;i=2" class="">x-msg://5/user/SendEmail.jtp?type=node&amp;node=17269&amp;i=2" target="_top" rel="nofollow" link="external" class="">[hidden email] 
https://lists.sourceforge.net/lists/listinfo/quantlib-users



If you reply to this email, your message will be added to the discussion below:
To unsubscribe from Installation issues on Mac OS X 10.11.2, click here.
NAML



View this message in context: Re: Installation issues on Mac OS X 10.11.2
Sent from the quantlib-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
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
<a href="x-msg://4/user/SendEmail.jtp?type=node&amp;node=17272&amp;i=1" target="_top" rel="nofollow" link="external" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users

------------------------------------------------------------------------------ 
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 
<a href="x-msg://4/user/SendEmail.jtp?type=node&amp;node=17272&amp;i=2" target="_top" rel="nofollow" link="external" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">[hidden email] 
https://lists.sourceforge.net/lists/listinfo/quantlib-users



If you reply to this email, your message will be added to the discussion below:
http://quantlib.10058.n7.nabble.com/Installation-issues-on-Mac-OS-X-10-11-2-tp17214p17272.html
To unsubscribe from Installation issues on Mac OS X 10.11.2, click here.
NAML

Reply | Threaded
Open this post in threaded view
|

Re: Installation issues on Mac OS X 10.11.2

newbie
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.
Reply | Threaded
Open this post in threaded view
|

Re: Installation issues on Mac OS X 10.11.2

Luigi Ballabio
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

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.




--
View this message in context: http://quantlib.10058.n7.nabble.com/Installation-issues-on-Mac-OS-X-10-11-2-tp17214p17516.html
Sent from the quantlib-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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

------------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|

Re: Installation issues on Mac OS X 10.11.2

Luigi Ballabio
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:
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

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.




--
View this message in context: http://quantlib.10058.n7.nabble.com/Installation-issues-on-Mac-OS-X-10-11-2-tp17214p17516.html
Sent from the quantlib-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
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

------------------------------------------------------------------------------
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
Reply | Threaded
Open this post in threaded view
|

Re: Installation issues on Mac OS X 10.11.2

newbie
In reply to this post by xvallee
Many thanks.
M M
Reply | Threaded
Open this post in threaded view
|

Re: Installation issues on Mac OS X 10.11.2

M M
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?


Reply | Threaded
Open this post in threaded view
|

Re: Installation issues on Mac OS X 10.11.2

Luigi Ballabio
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

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?






--
View this message in context: http://quantlib.10058.n7.nabble.com/Installation-issues-on-Mac-OS-X-10-11-2-tp17214p17637.html
Sent from the quantlib-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users

------------------------------------------------------------------------------

_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Installation issues on Mac OS X 10.11.2

Ikeuchi
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.
Reply | Threaded
Open this post in threaded view
|

Re: Installation issues on Mac OS X 10.11.2

Alexander Zvyagin
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
12