I'm a new Python and PyCharm user, so apologies if this has been answered before. I did check the knowledge base. Here is the traceback.
C:\Users\lawrence.berry\Anaconda3\python.exe "C:/Users/lawrence.berry/OneDrive - TSGateway/Python/Options_Screener/Import_and_Wrangle.py"
Traceback (most recent call last):
File "C:/Users/lawrence.berry/OneDrive - TSGateway/Python/Options_Screener/Import_and_Wrangle.py", line 2, in <module>
import quantsbin.derivativepricing as qb
File "C:\Users\lawrence.berry\Anaconda3\lib\site-packages\quantsbin\derivativepricing\__init__.py", line 6, in <module>
from .instruments import EqOption, FutOption, FXOption, ComOption
File "C:\Users\lawrence.berry\Anaconda3\lib\site-packages\quantsbin\derivativepricing\instruments.py", line 9, in <module>
from .engineconfig import PricingEngine
File "C:\Users\lawrence.berry\Anaconda3\lib\site-packages\quantsbin\derivativepricing\engineconfig.py", line 6, in <module>
from .namesnmapper import MODEL_MAPPER, IV_MODELS, ANALYTICAL_GREEKS, OBJECT_MODEL
File "C:\Users\lawrence.berry\Anaconda3\lib\site-packages\quantsbin\derivativepricing\namesnmapper.py", line 111, in <module>
from . import pricingmodels as pm
File "C:\Users\lawrence.berry\Anaconda3\lib\site-packages\quantsbin\derivativepricing\pricingmodels.py", line 12, in <module>
from scipy import optimize
File "C:\Users\lawrence.berry\Anaconda3\lib\site-packages\scipy\optimize\__init__.py", line 398, in <module>
from ._nnls import nnls
ImportError: DLL load failed: The specified module could not be found
My Python script has been running without this problem for a couple of weeks now, but suddenly today it stopped working. The only thing I added to my script immediately before it stopped working was to add a new library. After "pip install tabulate", I added the following to the script
from tabulate import tabulate
Any help would be very much appreciated.