On new debian 8 installs using google_compute_engine virtualenv installed boto is broken
See original GitHub issueNot exactly sure what’s going on here but we are now seeing:
File "/home/lex/local/lib/python2.7/site-packages/boto/__init__.py", line 1216, in <module>
boto.plugin.load_plugins(config)
File "/home/lex/local/lib/python2.7/site-packages/boto/plugin.py", line 93, in load_plugins
_import_module(file)
File "/home/lex/local/lib/python2.7/site-packages/boto/plugin.py", line 75, in _import_module
return imp.load_module(name, file, filename, data)
File "/usr/lib/python2.7/dist-packages/google_compute_engine/boto/boto_config.py", line 29, in <module>
from google_compute_engine import config_manager
ImportError: No module named google_compute_engine
Note that this is a virtualenv installed copy of boto which ends up failing with an error in google_compute_engine
s vendoring(?) of boto?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:4
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Setting up a Python development environment | Google Cloud
Use the venv command to create a virtual copy of the entire Python installation. This tutorial creates a virtual copy in a folder...
Read more >how to install virtualenv on Ubuntu 20.04 GCP instance?
try type in terminal: sudo apt-get install python3.8-venv.
Read more >Resolve issues between Python and Linux with virtualenv
To resolve Python and Linux problems, install the virtualenv Python environment isolation tool. Virtualenv creates multiple Python environments ...
Read more >Broken Python virtualenv = broken gcloud (gcloud should add
I think this is a bug in the gcloud wrapper script: If you have a broken Python configuration such that running "python" fails,...
Read more >Installing packages using pip and virtual environments
It's used to install and update packages. You'll need to make sure you have the latest version of pip installed. Unix/macOS. Debian and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Been hitting this (on travis-ci 14.04). Seems like google-compute-engine has a cyclic dependency on boto.
Global system-wide side effects are bad (lead into such trouble), this should be fixed at design level.
We now have a PyPI package for the Linux guest environment.
The package is available using:
pip install google-compute-engine
.