-
When importing riskfolio this error type keeps appearing. TypeError Traceback (most recent call last) File ~\anaconda3\Lib\site-packages\riskfolio_init_.py:9 File ~\anaconda3\Lib\site-packages\riskfolio\src_init_.py:9 File ~\anaconda3\Lib\site-packages\riskfolio\src\Portfolio.py:17 File ~\anaconda3\Lib\site-packages\riskfolio\src\RiskFunctions.py:13 File ~\anaconda3\Lib\site-packages\riskfolio\src\ParamsEstimation.py:21 File ~\anaconda3\Lib\site-packages\riskfolio\src\AuxFunctions.py:23 File ~\anaconda3\Lib\site-packages\astropy\stats_init_.py:15 File ~\anaconda3\Lib\site-packages\astropy\stats\circstats.py:15 File ~\anaconda3\Lib\site-packages\astropy\units_init_.py:13 File ~\anaconda3\Lib\site-packages\astropy\units\astrophys.py:10 File ~\anaconda3\Lib\site-packages\astropy\constants_init_.py:27 File ~\anaconda3\Lib\site-packages\astropy\constants\cgs.py:7 File ~\anaconda3\Lib\site-packages\astropy\constants\config.py:15 File ~\anaconda3\Lib\importlib_init_.py:126, in import_module(name, package) File ~\anaconda3\Lib\site-packages\astropy\constants\codata2018.py:9 File ~\anaconda3\Lib\site-packages\astropy\constants\constant.py:10 File ~\anaconda3\Lib\site-packages\astropy\units\quantity.py:38 File ~\anaconda3\Lib\site-packages\astropy\units\quantity_helper_init_.py:16 File ~\anaconda3\Lib\site-packages\astropy\units\quantity_helper\erfa.py:5 File ~\anaconda3\Lib\site-packages\erfa_init_.py:5 File ~\anaconda3\Lib\site-packages\erfa\version.py:25 TypeError: data type 'i4' not understood |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @WalauA, It's not a Riskfolio-Lib problem, it's an astropy problem. Reinstall astropy. |
Beta Was this translation helpful? Give feedback.
Hi @WalauA,
It's not a Riskfolio-Lib problem, it's an astropy problem. Reinstall astropy.