lefnire / tforce_btc_trader

TensorForce Bitcoin Trading Bot
http://ocdevel.com/podcasts/machine-learning/26
GNU Affero General Public License v3.0
814 stars 234 forks source link

kaggle.py: "ModuleNotFoundError: No module named 'data'" #8

Closed moezzie closed 6 years ago

moezzie commented 6 years ago

Hey,

I'm trying to set the project up and am running into a problem when populating the data.

When running python data/populate/kaggle.py as described as part of step 2 I'm seeing this error message.

$ python data/populate/kaggle.py

Traceback (most recent call last):
  File "data/populate/kaggle.py", line 7, in <module>
    from data.data import engine
ModuleNotFoundError: No module named 'data'

My first guess was that it had to have something to do with the working directory. So i tried some different ones, but still can't get it to work.

Any of you guys having the same issue?

Cheers

phibenz commented 6 years ago

Hello, I had the same problem, you can resolve it by prepending ]

import sys, os 
sys.path.append(os.getcwd())

Regards

lefnire commented 6 years ago

Should be fixed from https://github.com/lefnire/tforce_btc_trader/pull/9, can you try now?

forhonourlx commented 6 years ago

It still does not work. "ModuleNotFoundError: No module named 'data'"

TalhaAsmal commented 6 years ago

@lefnire @forhonourlx #14 should fix this issue on Windows

lefnire commented 6 years ago

@forhonourlx could you try now with #14 merged?

lefnire commented 6 years ago

just set it up on a new box & it worked, ya'll'll have to pull from master to get #14

alirezaseifi commented 6 years ago

I still have this issue

Traceback (most recent call last):
  File "data/populate/kaggle.py", line 10, in <module>
    from data.data import engine
ModuleNotFoundError: No module named 'data.data'
lefnire commented 6 years ago

@alirezaseifi what happens if you run PYTHONPATH=. python data/populate/kaggle.py

alirezaseifi commented 6 years ago

@lefnire Nice! it worked! you're awesome!

lordvikas commented 5 years ago

PYTHONPATH=. python data/populate/kaggle.py

What does this do?

alirezaseifi commented 5 years ago

@lordvikas PYTHONPATH arugment the default search path for module files. The format is the same as the shell’s PATH: one or more directory pathnames separated by os.pathsep