mcdallas/wallstreet

error importing wallstreet package

lhenry7 opened this issue · 1 comments

Here is the error from simply importing. The 'pip install wallstreet' worked just fine.

PS C:\Users\larry\OneDrive\Documents\PythonProjects\options> python
Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 16:30:00) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.

from wallstreet import Stock, Call, Put
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\larry\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\wallstreet_init_.py", line 1, in
from wallstreet.wallstreet import Stock, Call, Put
File "C:\Users\larry\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\wallstreet\wallstreet.py", line 10, in
from wallstreet.blackandscholes import riskfree, BlackandScholes
File "C:\Users\larry\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\wallstreet\blackandscholes.py", line 4, in
from scipy.interpolate import interp1d
File "C:\Users\larry\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy_init_.py", line 136, in
from . import distributor_init
File "C:\Users\larry\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.7_qbz5n2kfra8p0\LocalCache\local-packages\Python37\site-packages\scipy_distributor_init.py", line 61, in
WinDLL(os.path.abspath(filename))
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\ctypes_init
.py", line 364, in init
self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found

I upgraded python from 3.7.1 to 3.9.6 on Win10 seems to have resolved my issue.