Skip to content
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

ImportError: No module named python.lpo #3

Closed
huayong opened this issue May 4, 2015 · 4 comments
Closed

ImportError: No module named python.lpo #3

huayong opened this issue May 4, 2015 · 4 comments

Comments

@huayong
Copy link

huayong commented May 4, 2015

I followed the install pipeline and no error. But at last when I run the command-''bash eval_all.sh', the console printed "ImportError: No module named pylab". Then I changed the eval_all.sh script file, all python3 to python. Though there wasn't previous error, the console printed a new error, "ImportError: No module named python.lpo". Now I had no idea and hope you could help me. Thanks.

@philkr
Copy link
Owner

philkr commented May 6, 2015

pylab was the matploltib dependency that I forgot to remove. c719f09 should fix this. I also added a section in the readme on how to add the dataset directories so that they can be found in python.

@philkr philkr closed this as completed May 6, 2015
@rbgirshick
Copy link

After following the instructions in the readme, this is what I see when I do bash eval_all.sh:

No valid location for lpo.so found! Tried looking in:
/mnt/data/rbg/lpo-tmp/build
/mnt/data/rbg/lpo-tmp/build/release
/mnt/data/rbg/lpo-tmp/build/debug
/mnt/data/rbg/lpo-tmp/build/clang
Traceback (most recent call last):
  File "train_lpo.py", line 28, in <module>
    from lpo import *
  File "/mnt/data/rbg/lpo-tmp/src/lpo.py", line 45, in <module>
    from python.lpo import *
ImportError: No module named 'python'

(repeated many times)

find . -name "lpo.so" returns no results.

philkr added a commit that referenced this issue May 9, 2015
@philkr
Copy link
Owner

philkr commented May 9, 2015

Thank you Ross, I forgot to mention the USE_PYTHON flag.
Use -DUSE_PYTHON=ON when calling cmake.

@mtrth
Copy link

mtrth commented Aug 18, 2015

I followed the instructions in the readme and compiled with -DUSE_PYTHON=2 , when I do bash eval_all.sh I get error:

Traceback (most recent call last):
File "train_lpo.py", line 31, in
from lpo import *
File "/home/revathy/lpo-release/src/lpo.py", line 45, in
from python.lpo import *
ImportError: dynamic module does not define init function (PyInit_lpo)

hope you could help me. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants