Models dependency
Closed this issue · 6 comments
Hello, I have installed spark-ts 0.4.0 in an anaconda environment and when I try to perform the import of any model I get this error
from sparkts.models import ARIMA
ImportError Traceback (most recent call last)
in ()
----> 1 from sparkts.models import ARIMA/home/user/anaconda3/envs/anacondaEnv/lib/python3.4/site-packages/sparkts-0.4.0-py3.4.egg/sparkts/models/ARIMA.py in ()
1 from . import _py2java_double_array
----> 2 from _model import PyModel
3
4 from pyspark.mllib.common import _py2java, _java2py
5 from pyspark.mllib.linalg import VectorsImportError: No module named '_model'
I have solved it just adding a dot
from ._model import PyModel
This is a python 3 issue, as I used more the library I understood I have to use it with python 2.
Hello,I am in trouble with installing sparkts in my python, could you please tell me how you do it?
And I can't find sparkts-0.4.0-jar-with-dependencies.jar at https://github.com/sryza/spark-timeseries, there must be something wrong, could you help me?Thank you so much.
You have to build the jar executing mvn package
where the pom file is.
Follow the instructions of the readme.md
Thanks, I get it, and how can I install it in an anaconda environment ?
Installing it with the python setup.py install
with the environment activated
Thanks so much, I made it.