polakowo / vectorbt

Find your trading edge, using the fastest engine for backtesting, algorithmic trading, and research.
https://vectorbt.dev
Other
4.18k stars 605 forks source link

initialization of _internal failed without raising an exception #569

Open ljl3937 opened 1 year ago

ljl3937 commented 1 year ago

In docker container,there is an error initialization of _internal failed without raising an exception

SystemError                               Traceback (most recent call last)
<ipython-input-3-293c2c11f674> in <module>
----> 1 import vectorbt as vbt
      2 price = vbt.YFData.download('BTC-USD').get('Close')
      3 
      4 pf = vbt.Portfolio.from_holding(price, init_cash=100)
      5 pf.total_profit()

/opt/conda/lib/python3.8/site-packages/vectorbt/__init__.py in <module>
    606 
    607 # Most important modules
--> 608 from vectorbt.generic import nb, plotting
    609 from vectorbt._settings import settings
    610 

/opt/conda/lib/python3.8/site-packages/vectorbt/generic/__init__.py in <module>
      6 In contrast to the `vectorbt.base` sub-package, focuses on the data itself."""
      7 
----> 8 from vectorbt.generic.drawdowns import Drawdowns
      9 from vectorbt.generic.enums import *
     10 from vectorbt.generic.ranges import Ranges

/opt/conda/lib/python3.8/site-packages/vectorbt/generic/drawdowns.py in <module>
    169 import plotly.graph_objects as go
...
----> 3 from numba.np.ufunc import _internal
      4 from numba.np.ufunc.parallel import ParallelUFuncBuilder, ParallelGUFuncBuilder
      5 

SystemError: initialization of _internal failed without raising an exception
github-actions[bot] commented 6 months ago

This issue is stale because it has been open for 90 days with no activity.