-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Weird errors with pyenv; File <string> key error #2038
Comments
Hello @danielecook! There is a similar issue for another package on stackoverflow and they suggest uninstalling and reinstalling. Is this a fresh virtual environment that you've installed gcloud-python in? |
That fixed it. Thanks! |
Great to hear, and thanks for letting us know! |
I got the same error message and needed to remove the following packages:
However reinstalling them produces the same error. Any idea what is going on? |
Have not experienced this. Can you provide some commands so we can try to reproduce? |
Basically if I add any of these packages like this:
Then when use Python command get the warning messages like above:
|
Got it. So it's the same error as reported. I think the issue may be with how you are uninstalling. Have you tried in a brand new virtual environment? |
Yes they work fine in a fresh virtualenv, or on my Linux server. |
So it's definitely an issue with the environment. Sorry your install got borked. I'm happy to help you |
Thanks, here are the contents of the offending pth files: google_cloud_bigquery-0.22.1-py2.7-nspkg.pth:
google_cloud_core-0.22.1-py2.7-nspkg.pth
googleapis_common_protos-1.5.0-py2.7-nspkg.pth
Does anything look out of order there? And here are the list of google API modules installed with pip:
|
I'm not clear on what the error is, but you should just forcefully remove the |
Those files are deleted when uninstall the modules and the above errors disappear, but reinstalling creates them again. |
Do you have some files in tthe |
Here are the contents of that directory:
|
Did anyone solve that issue? |
Microsoft Windows [Version 10.0.19043.1766] C:\Users\Admin>python --version C:\Users\Admin> Traceback (most recent call last): Remainder of file ignored Traceback (most recent call last): Remainder of file ignored Traceback (most recent call last): Remainder of file ignored this is the error when i am using pip command everytime pls help |
Every time I invoke python I see a long list of google python modules reporting errors.
Error processing line 2 of /usr/local/var/pyenv/versions/2.7.11/lib/python2.7/site-packages/gax_google_logging_v2-0.7.12-py2.7-nspkg.pth:
Traceback (most recent call last):
File "/usr/local/var/pyenv/versions/2.7.11/lib/python2.7/site.py", line 152, in addpackage
exec line
File "", line 1, in
KeyError: 'google'
Remainder of file ignored
Error processing line 2 of /usr/local/var/pyenv/versions/2.7.11/lib/python2.7/site-packages/gax_google_pubsub_v1-0.7.12-py2.7-nspkg.pth:
The text was updated successfully, but these errors were encountered: