Closed jseifeddine closed 6 days ago
This is a Python exception that has nothing to do with pymport
:
mmom$ node_modules/pymport/lib/binding/linux-x64/python
Python 3.12.2 (main, Apr 2 2024, 14:15:39) [GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> import pandas
>>> import pandas_ta
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/encrypted/mmom/src/tmp/node_modules/pymport/lib/binding/linux-x64/lib/python3.12/site-packages/pandas_ta/__init__.py", line 116, in <module>
from pandas_ta.core import *
File "/encrypted/mmom/src/tmp/node_modules/pymport/lib/binding/linux-x64/lib/python3.12/site-packages/pandas_ta/core.py", line 18, in <module>
from pandas_ta.momentum import *
File "/encrypted/mmom/src/tmp/node_modules/pymport/lib/binding/linux-x64/lib/python3.12/site-packages/pandas_ta/momentum/__init__.py", line 34, in <module>
from .squeeze_pro import squeeze_pro
File "/encrypted/mmom/src/tmp/node_modules/pymport/lib/binding/linux-x64/lib/python3.12/site-packages/pandas_ta/momentum/squeeze_pro.py", line 2, in <module>
from numpy import NaN as npNaN
ImportError: cannot import name 'NaN' from 'numpy' (/encrypted/mmom/src/tmp/node_modules/pymport/lib/binding/linux-x64/lib/python3.12/site-packages/numpy/__init__.py). Did you mean: 'nan'?
You're right, apologies.
its fixed now thanks