question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Models dependency

See original GitHub issue

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) <ipython-input-6-eb475815fe98> in <module>() ----> 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 <module>() 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 Vectors

ImportError: No module named ‘_model’

I have solved it just adding a dot

from ._model import PyModel

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
MeHibirdcommented, May 15, 2017

Thanks so much, I made it.

0reactions
laldonzacommented, May 15, 2017

Installing it with the python setup.py install with the environment activated

Read more comments on GitHub >

github_iconTop Results From Across the Web

An introduction to dependency modelling - Riskenomics
A thorough dependency model takes into account systems and people, as well as infrastructure, in other words soft systems as well as hard....
Read more >
Model dependencies and project references - IBM
References and dependencies can be defined at different levels in your workspace. Projects, transformation configurations, and models can all define ...
Read more >
Dependency Models | CECAN
Dependency modelling is a large family of different approaches used to explore, ... Dependency models tend to share a number of generic characteristics, ......
Read more >
Model dependencies - MATLAB & Simulink - MathWorks
Model dependencies are files and data that potentially impact simulation results. Simulink ® does not automatically identify user-created dependencies.
Read more >
How do I create dependencies between models?
How do I create dependencies between models? When you use the ref function, dbt automatically infers the dependencies between models.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found