Login  Register

Re: QuantLib on Python in PyCharm on Mac

Posted by Luigi Ballabio on May 25, 2017; 9:25am
URL: http://quantlib.414.s1.nabble.com/QuantLib-on-Python-in-PyCharm-on-Mac-tp18304p18305.html

PyCharm is telling you that you imported the module but didn't use it anywhere.  It's just a warning, and it should disappear as soon as you use anything from ql.

Luigi


On Wed, May 24, 2017 at 3:27 AM Jeff C <[hidden email]> wrote:
Hi,

When I initially "import QuantLib as ql" I don't get an error and PyCharm
even gives me the short cut to type QuantLib. But after a second PyCharm
gives me this error:

Unused import statement.
This inspection detects names that should resolve but don't. Due to dynamic
dispatch and duck typing, this is possible in a limited but useful number of
cases. Top-level and class-level items are supported better than instance
items.

The download and installation guide mentions something about "disabling
shared" if you only want to use Python, but I want to also have access to
QuantLib in C++. Does anyone know what this means and how to fix it?

Thanks!



--
View this message in context: http://quantlib.10058.n7.nabble.com/QuantLib-on-Python-in-PyCharm-on-Mac-tp18304.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