trying Run "python gsutil ls"

189 views
Skip to first unread message

HERO

unread,
Dec 6, 2010, 1:35:10 AM12/6/10
to gsutil-discuss
When i try Run "python gsutil ls"
ask me: access Key and secret access key
I put the correctly keys. but the console show me an error:

" Failure: [Errno 22] invalid mode ('w') or filename: c:\\gsutil\\; e:
\\python27\\.boto "

I don't Know what is that. im reading this page for start to learn.
http://code.google.com/apis/storage/docs/gsutil.html#install

OS: Windows 7
Python 2.7


Sorry for my english.

Jerjou Cheng

unread,
Dec 7, 2010, 5:46:26 PM12/7/10
to gsutil-...@googlegroups.com
Hello-

It looks like there's something wrong with your HOME environment variable. I think.

Make sure you have two environment variables set up (under Control Panel | System Properties | Advanced | Environment Variables). The HOME environment variable should read:

c:\gsutil

and the PATH environment variable should include:

c:\gsutil\;c:\Python27

It sort of looks like you set your HOME variable incorrectly...

-Jerjou
--
Developer Programs Engineer
Google Storage

HERO

unread,
Dec 7, 2010, 6:06:30 PM12/7/10
to gsutil-discuss
Right !!! Thank you !!

HOME = c:\gsutil
PYTHONPATH = c:\gsutil\;e:\Python27

The official page is wrong. they wrote:
HOME = c:\gsutil\;c:\Python27
PYTHONPATH = c:\gsutil\boto


Thank you very much Mr. Jerjou Cheng,
greetings from mexico



On Dec 7, 4:46 pm, Jerjou Cheng <gs-t...@google.com> wrote:
> Hello-
>
> It looks like there's something wrong with your HOME environment variable. I
> think.
>
> Make sure you have two environment variables set up (under Control Panel |
> System Properties | Advanced | Environment Variables). The HOME environment
> variable should read:
>
> c:\gsutil
>
> and the PATH environment variable should include:
>
> c:\gsutil\;c:\Python27
>
> It sort of looks like you set your HOME variable incorrectly...
>
> -Jerjou
>

Jerjou Cheng

unread,
Dec 7, 2010, 6:25:43 PM12/7/10
to gsutil-...@googlegroups.com
Are you looking at an old version of the page? Right now on that page I'm seeing it say HOME is c:\gsutil, Path is c:\gsutil;c:\Python27, and PYTHONPATH is c:\gsutil\boto. Hm... perhaps the formatting is confusing?

Anyway, glad it's working for you :)

-Jerjou
Reply all
Reply to author
Forward
0 new messages