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

Executing hpilo_ca from shell doesn't use virtualenv's version of python #174

Open
hansdg1 opened this issue Apr 2, 2018 · 0 comments
Open

Comments

@hansdg1
Copy link
Contributor

hansdg1 commented Apr 2, 2018

I currently have python-hpilo installed and loaded in a virtualenv.

The example file "hpilo_ca" currently has shebang "#!/usr/bin/python". If execute it from the shell like this: ./hpilo_ca -h it can't find the hpilo module.

$ ./hpilo_ca -h                          
Traceback (most recent call last):       
  File "./hpilo_ca", line 10, in <module>
    import hpilo                         
ImportError: No module named hpilo       

Changing the shebang to #!/usr/bin/env python fixes the problem.

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

Successfully merging a pull request may close this issue.

1 participant