-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem importing local module (ImportError: No module named reinas) #3
Comments
Oh, i forgot, the reinas module is in the same directory (/home/pperez/code/nreinas) |
Hi @janitux how are you ? Thanks for your reply. I will check this bug, but with pythonpath everything goes well 100% ? :) |
Yes, it works like a charm :) (env)pperez@hydrogen:~/code/nreinas$ PYTHONPATH='.' python reinas_benchmark.py
Running benchmark nreinas(0) ...
python /home/pperez/code/nreinas/env/src/benchy/benchy/run_benchmarks.py ./benchmark.pickle ./results.pickle
stdout: 1
1
Running benchmark nreinas(1) ...
python /home/pperez/code/nreinas/env/src/benchy/benchy/run_benchmarks.py ./benchmark.pickle ./results.pickle
stdout: 1
1
Running benchmark nreinas(2) ...
python /home/pperez/code/nreinas/env/src/benchy/benchy/run_benchmarks.py ./benchmark.pickle ./results.pickle
stdout: 0
0
Running benchmark nreinas(3) ...
python /home/pperez/code/nreinas/env/src/benchy/benchy/run_benchmarks.py ./benchmark.pickle ./results.pickle
stdout: 0
0
Running benchmark nreinas(4) ...
python /home/pperez/code/nreinas/env/src/benchy/benchy/run_benchmarks.py ./benchmark.pickle ./results.pickle
stdout: 2
2 |
@janitux and the graphs are workin great ? Please any improvements let me know! |
Yes, they are working great :) |
Hi, i am using benchy and trying to do multiple benchmarks to a function (The n queens problem), i have a module named 'reinas' and this code for benchmarking:
if i run this i just get an error:
I don't know if this a problem with virtualenv or what, but if i run the benchmarks with
PYTHONPATH='.' python reinas_benchmark.py' it works like a charm.
The text was updated successfully, but these errors were encountered: