question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

On new debian 8 installs using google_compute_engine virtualenv installed boto is broken

See original GitHub issue

Not 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_engines vendoring(?) of boto?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

5reactions
domenkozarcommented, Jul 4, 2017

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.

3reactions
illfeldercommented, Jun 15, 2016

We now have a PyPI package for the Linux guest environment.

The package is available using: pip install google-compute-engine.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found