py-earth icon indicating copy to clipboard operation
py-earth copied to clipboard

Failed to load Earth after having successfully installed py-earth...

Open jiapei100 opened this issue 7 years ago • 3 comments

ERROR messages:

>>> from pyearth import Earth
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "....../py-earth/pyearth/__init__.py", line 6, in <module>
    from .earth import Earth
  File "....../py-earth/pyearth/earth.py", line 1, in <module>
    from ._forward import ForwardPasser
ModuleNotFoundError: No module named 'pyearth._forward'

Any suggestions? Pei

jiapei100 avatar Sep 19 '18 19:09 jiapei100

@jiapei100 This seems to happen when people try to run python from within the py-earth source directory after installing. Could that be the problem in your case?

jcrudy avatar Sep 20 '18 05:09 jcrudy

@jcrudy hi,I met the same problem

Using d:\program files\anaconda3\lib\site-packages Searching for scikit-learn==0.18.2 Best match: scikit-learn 0.18.2 Adding scikit-learn 0.18.2 to easy-install.pth file

Using d:\program files\anaconda3\lib\site-packages Searching for scipy==1.1.0 Best match: scipy 1.1.0 Adding scipy 1.1.0 to easy-install.pth file

Using d:\program files\anaconda3\lib\site-packages Finished processing dependencies for sklearn-contrib-py-earth==0.1.0

d:\research\py-earth>python Python 3.6.6 |Anaconda, Inc.| (default, Jun 28 2018, 11:27:44) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

from pyearth import Earth Traceback (most recent call last): File "", line 1, in File "d:\research\py-earth\pyearth_init_.py", line 6, in from .earth import Earth File "d:\research\py-earth\pyearth\earth.py", line 1, in from ._forward import ForwardPasser ModuleNotFoundError: No module named 'pyearth._forward'

mk123qwe avatar Nov 15 '18 10:11 mk123qwe

@mk123qwe Sorry for the delay. I believe you are dealing with the same problem as @jiapei100. If you run Python from a different directory it should solve your problem.

jcrudy avatar Dec 17 '18 05:12 jcrudy