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

Successfully build but can't import package #12

Closed
clmnin opened this issue Oct 10, 2018 · 1 comment
Closed

Successfully build but can't import package #12

clmnin opened this issue Oct 10, 2018 · 1 comment

Comments

@clmnin
Copy link

clmnin commented Oct 10, 2018

I followed the instructions and was successful in building the project. And even successfully copied the shared library into the python site-packages.

But when I try

$ python
import g2o
Traceback (most recent call last):
    File "<stdin>", line 1, in <module>
ImportError: No module named 'g2o'

How can I show python the compiled cpython module?

@clmnin
Copy link
Author

clmnin commented Oct 13, 2018

This was solved here SO question

It was a misunderstanding from my side. I hadn't worked with locally build packages, so just a hiccup in adding the path.

You can add a path by either modifying the PYTHONPATH or adding sys.path.append("/path/to/the/package/g2opy")

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

1 participant