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

import problem #2

Closed
bolzzzz opened this issue Jan 20, 2019 · 4 comments
Closed

import problem #2

bolzzzz opened this issue Jan 20, 2019 · 4 comments

Comments

@bolzzzz
Copy link

bolzzzz commented Jan 20, 2019

Hi. I installed geppy following the instructions in readme, however if I cd to another project folder I can't import geppy. The error is

ModuleNotFoundError: No module named 'geppy.core'

Currently after installing geppy it can only be imported from its folder?

@ShuhuaGao
Copy link
Owner

After installation, it can be imported anywhere. Could you assure that it is installed properly? For example, in your terminal type pip list and you should see geppy in the list. If it is true, then in your program can you run import geppy successfully?

@bolzzzz
Copy link
Author

bolzzzz commented Jan 21, 2019

  1. geppy installed:

image

  1. under the dir of geppy I can import successfully:

image

  1. cd to another dir, error happens:

image

Currently I copy geppy files to my project dir so that I can use geppy. But it will be more convenient if you can fix this. Thanks!

@ShuhuaGao
Copy link
Owner

Yes, you are right. The error can be reproduced on Ubuntu, but not on Windows. I did't find the reason yet. However, a temporary solution is:

  • first pip uninstall geppy on your system.
  • then, in the geppy directory install it via pip install -e . (the editing mode).

I have tested it on Ubuntu. It should work now.

@bolzzzz
Copy link
Author

bolzzzz commented Jan 21, 2019

Thank you very much!

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

2 participants