When first importing johansen (in python3), it gives me a "module not found error".
Prior, it also gave me errors relating to python 2 vs 3 in the johansen.py file, but I edited those to conform to python 3.
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-a1c691410a6a> in <module>()
----> 1 import johansen
~/.local/lib/python3.6/site-packages/johansen/__init__.py in <module>()
----> 1 from .johansen import Johansen
~/.local/lib/python3.6/site-packages/johansen/johansen.py in <module>()
2 from statsmodels.tsa.tsatools import lagmat
3
----> 4 import critical_values
5
6
ModuleNotFoundError: No module named 'critical_values'
However, in ~/.local/lib/python3.6/site-packages/johansen, the critical_values.py file is there!
This question / problem may be better suited for StackOverflow--however I thought I would try here.
Any insight is appreciated.
Edit: added sys.path.append('/home/theo/.local/lib/python3.6/site-packages/johansen') andimport johansen worked properly, however from johansen import coint_johansen did not work properly.
When first importing
johansen(in python3), it gives me a "module not found error".Prior, it also gave me errors relating to python 2 vs 3 in the
johansen.pyfile, but I edited those to conform to python 3.However, in
~/.local/lib/python3.6/site-packages/johansen, thecritical_values.pyfile is there!This question / problem may be better suited for StackOverflow--however I thought I would try here.
Any insight is appreciated.
Edit: added
sys.path.append('/home/theo/.local/lib/python3.6/site-packages/johansen')andimport johansenworked properly, howeverfrom johansen import coint_johansendid not work properly.