Skip to content
This repository has been archived by the owner on Sep 17, 2022. It is now read-only.

pkg_resources.DistributionNotFound: colorama #5

Open
SurferJeffAtGoogle opened this issue Apr 2, 2015 · 10 comments
Open

pkg_resources.DistributionNotFound: colorama #5

SurferJeffAtGoogle opened this issue Apr 2, 2015 · 10 comments

Comments

@SurferJeffAtGoogle
Copy link

Tried running the example code, and got this error:

C:\Users\shout-app-903\code\gcloud-python-expenses-demo-master>submit_expenses c
reate --employee-id=sally --description="Frotz project kickoff, San Jose" expens
es.csv
Traceback (most recent call last):
File "C:\Python27\Scripts\submit_expenses-script.py", line 5, in
from pkg_resources import load_entry_point
File "C:\Python27\lib\site-packages\pkg_resources.py", line 2880, in
working_set = WorkingSet._build_master()
File "C:\Python27\lib\site-packages\pkg_resources.py", line 432, in _build_mas
ter
ws.require(requires)
File "C:\Python27\lib\site-packages\pkg_resources.py", line 741, in require
needed = self.resolve(parse_requirements(requirements))
File "C:\Python27\lib\site-packages\pkg_resources.py", line 626, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: colorama

@tseaver
Copy link
Contributor

tseaver commented Apr 3, 2015

Although I'm pretty sure this project has lagged behind the latest release of https://github.com/GoogleCloudPlatform/gcloud-python , that error is puzzling: colorama is not needed or used by it or by any of its dependencies.

How did you install it?

@SurferJeffAtGoogle
Copy link
Author

Is there a demo project that hasn't lagged behind the latest release? Is
there another demo project I should be looking at?

On Fri, Apr 3, 2015 at 5:06 AM, Tres Seaver [email protected]
wrote:

Although I'm pretty sure this project has lagged behind the latest release
of https://github.com/GoogleCloudPlatform/gcloud-python , that error is
puzzling: colorama is not needed or used by it or by any of its
dependencies.

How did you install it?


Reply to this email directly or view it on GitHub
#5 (comment)
.

@tseaver
Copy link
Contributor

tseaver commented Apr 3, 2015

I just updated this one this morning: it works for me with the master.

I still don't see how the errors I fixed today could have provoked the error you reported, though.

@SurferJeffAtGoogle
Copy link
Author

What kind of google compute instance (OS version and hardware) did you test
it on?

On Fri, Apr 3, 2015 at 9:33 AM, Tres Seaver [email protected]
wrote:

I just updated this one this morning: it works for me with the master.

I still don't see how the errors I fixed today could have provoked the
error you reported, though.


Reply to this email directly or view it on GitHub
#5 (comment)
.

@dhermes
Copy link

dhermes commented Apr 3, 2015

Let's flip this around. What commands did you run to get this error.

colorama has absolutely nothing to do with this sample or the library

@tseaver
Copy link
Contributor

tseaver commented Apr 3, 2015

I cannot reproduce with a virtualenv built on my own machine.

@SurferJeffAtGoogle
Copy link
Author

This happened on my Windows 2012 machine.

On Fri, Apr 3, 2015 at 11:18 AM, Tres Seaver [email protected]
wrote:

I cannot reproduce with a virtualenv built on my own machine
https://gist.github.com/tseaver/69eed65fdb43c941184f.


Reply to this email directly or view it on GitHub
#5 (comment)
.

@dhermes
Copy link

dhermes commented Apr 3, 2015

Yeah the C: at the beginning of the path makes that much clear.

What commands did you run to get the error? How did you setup your environment?

@SurferJeffAtGoogle
Copy link
Author

I installed Python 2.7.9.

Then:
pip install gcloud

Then I downloaded and unpacked the .zip.

Then:
$ cd /path/to/gcloud-python-expenses-demo
$ /path/to/virtualenv/bin/pip install -e .

Then I set GCLOUD_TESTS_* environment variables.

Then, I ran the submit_expenses command.

On Fri, Apr 3, 2015 at 11:52 AM, Danny Hermes [email protected]
wrote:

Yeah the C: at the beginning of the path makes that much clear.

What commands did you run to get the error? How did you setup your
environment?


Reply to this email directly or view it on GitHub
#5 (comment)
.

@tseaver
Copy link
Contributor

tseaver commented Mar 16, 2017

I just saw a "needs colorama" bit in an entirely unrelated project. I wonder if it is now a dependcy of setuptools?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants