Small bug in Cloud Storage Python Sample

361 views
Skip to first unread message

Gerhard Just Olsen

unread,
Sep 19, 2016, 9:25:12 AM9/19/16
to Google App Engine
Hi. Hope this is the right place to report this.

In the App Engine and Google Cloud Storage Sample for Python.
The documentation wants us to install the library in demo/lib

pip install GoogleAppEngineCloudStorageClient -t demo/lib

That gives an error saying:

ImportError: No module named cloudstorage

But the file structure shows the library installed in demo/

A fix is:
pip install GoogleAppEngineCloudStorageClient -t demo/

Nick (Cloud Platform Support)

unread,
Sep 21, 2016, 7:14:47 PM9/21/16
to Google App Engine
Hey Gerhard,

Thanks for letting us know about this. Unfortunately I can't reproduce this on my end. Could you clarify / provide some of the following information?

1. What version of python and pip are you running?
2. What does your PYTHON_PATH environment variable look like?
3. What is the full stack trace of the error when it appears?

With that information, we'll be closer to determining why it happens on your system.

I should also mention that generally, issues should be reported in the Public Issue Tracker, but here's fine for now.

Cheers,

Nick
Cloud Platform Community Support

Bhushan Bhange

unread,
Dec 29, 2017, 3:14:43 PM12/29/17
to Google App Engine

bhushan_ramesh_bhange@bxr8516-2:~$ python -c "import cloudstorage"Traceback (most recent call last): File "<string>", line 1, in <module> File "/home/bhushan_ramesh_bhange/anaconda3/lib/python3.5/site-packages/cloudstorage/__init__.py", line 20, in <module> from .api_utils import RetryParams File "/home/bhushan_ramesh_bhange/anaconda3/lib/python3.5/site-packages/cloudstorage/api_utils.py", line 173 except self.retriable_exceptions, e: ^SyntaxError: invalid syntaxbhushan_ramesh_bhange@bxr8516-2:~$

I am trying to use gs://  through python and  I imported pip install GoogleAppEngineCloudStorageClient -t  {home dir } /lib 
I am getting above error when trying to use import cloudstorage as gcs
Reply all
Reply to author
Forward
0 new messages