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 envie.utils #9

Open
jayvdb opened this issue Oct 24, 2019 · 1 comment
Open

ImportError: No module named envie.utils #9

jayvdb opened this issue Oct 24, 2019 · 1 comment

Comments

@jayvdb
Copy link

jayvdb commented Oct 24, 2019

I installed it via an RPM https://build.opensuse.org/package/show/home:jayvdb:py-new/python-envie

~/tmp> . /usr/bin/envie
~/tmp> envie
Traceback (most recent call last):
  File "/usr/bin/envie-tools", line 11, in <module>
    from envie.utils import readlink, realpath
ImportError: No module named envie.utils
^CTraceback (most recent call last):
  File "/usr/bin/envie-tools", line 11, in <module>
    from envie.utils import readlink, realpath
ImportError: No module named envie.utils
^CTraceback (most recent call last):
  File "/usr/bin/envie-tools", line 11, in <module>
    from envie.utils import readlink, realpath
ImportError: No module named envie.utils
^CTraceback (most recent call last):
  File "/usr/bin/envie-tools", line 11, in <module>
    from envie.utils import readlink, realpath
ImportError: No module named envie.utils
^CNo environments found.
~/tmp> head /usr/bin/envie-tools
#!/usr/bin/python3 -s
from __future__ import print_function
import os
import sys

# ensure `envie` is accessible, without being installed via pip:
scriptsdir = os.path.dirname(os.path.abspath(__file__))
projectroot = os.path.normpath(os.path.join(scriptsdir, os.pardir))
sys.path.insert(0, projectroot)

~/tmp> python3 -c 'import envie.utils'
@randomir
Copy link
Owner

Thank you for reporting this, and for creating an RPM! I’ll look into this shortly.

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