|
From: Ngonidzashe F. <ngo...@gm...> - 2020-11-25 08:12:43
|
Hi Luigi, Yes, I am using Python 3.8. I ultimately managed to run the valuation in PyCharm but the valuation is giving me an error when I run it in Spyder. Spyder updated to version 4.1.5 and I am not sure if this updated version has issues. It’s weird that Quantlib is working in PyCharm and not Spyder. I guess I now need to work with PyCharm. Thanks for your help Luigi! Kind regards, Ngoni On Wed, 25 Nov 2020 at 10:05, Luigi Ballabio <lui...@gm...> wrote: > Just to check, you're using Python 3.8 to try the valuation, right? > > Luigi > > > On Tue, Nov 24, 2020 at 10:53 PM Ngonidzashe Fungura < > ngo...@gm...> wrote: > >> Hi Luigi, >> >> I have tried installing as per your instructions and it indicates that it >> installed successfully as shown below; >> >> ngonifungura@Ngonis-MBP ~ % pip3 install QuantLib >> >> Collecting QuantLib >> >> Using cached QuantLib-1.20-cp38-cp38-macosx_10_9_x86_64.whl (14.7 MB) >> >> Installing collected packages: QuantLib >> >> Successfully installed QuantLib-1.20 >> >> ngonifungura@Ngonis-MBP ~ % pip3 install QuantLib-Python >> >> Collecting QuantLib-Python >> >> Using cached QuantLib_Python-1.18-py2.py3-none-any.whl (1.4 kB) >> >> Requirement already satisfied: QuantLib in >> /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages >> (from QuantLib-Python) (1.20) >> >> Installing collected packages: QuantLib-Python >> >> Successfully installed QuantLib-Python-1.18 >> >> However, I am still getting the error message that "No module named >> 'QuantLib'" when I try to run a valuation in Python >> >> Kind regards, >> >> Ngoni >> >> On Tue, 24 Nov 2020 at 21:40, Luigi Ballabio <lui...@gm...> >> wrote: >> >>> Hello Ngoni, >>> you're the first one I heard trying to compile on Big Sur, so I'm >>> afraid I can't offer much help. However, if you want to use QuantLib from >>> Python without modifying it, I'd try installing it with "pip install >>> QuantLib" instead of compiling it. >>> >>> Hope this helps, >>> Luigi >>> >>> >>> On Tue, Nov 24, 2020 at 6:17 PM Ngonidzashe Fungura < >>> ngo...@gm...> wrote: >>> >>>> Hi QuantLib Users, >>>> >>>> Apple recently upgraded its software to macOS Big Sur version 11.0.1 >>>> and when I try to install Boost in terminal using "brew install boost", I >>>> am getting a warning shown below; >>>> >>>> Warning: You are using macOS 11.0. >>>> >>>> We do not provide support for this released but not yet supported >>>> version. >>>> >>>> You will encounter build failures with some formulae. >>>> >>>> Please create pull requests instead of asking for help on Homebrew's >>>> GitHub, >>>> >>>> Twitter or any other official channels. You are responsible for >>>> resolving >>>> >>>> any issues you experience while you are running this >>>> >>>> released but not yet supported version. >>>> >>>> Ultimately when I complete the installation of QuantLib-Python, I am >>>> not able to run my valuations in Python as I am getting an error message >>>> that "No module named 'QuantLib'". Could this be caused by the warning >>>> message above? I have researched this error and it seems that the upgrade >>>> has not happened yet to cater for the macOS Big Sur version 11.0.1 >>>> upgrade. If this is the issue, how can this be resolved or maybe I have to >>>> wait until the upgrade happens? >>>> >>>> Kind regards, >>>> >>>> Ngoni >>>> _______________________________________________ >>>> QuantLib-users mailing list >>>> Qua...@li... >>>> https://lists.sourceforge.net/lists/listinfo/quantlib-users >>>> >>> -- Kind regards, Ngoni Fungura Mobile: +27(0)644126086 |