gsutil and python cmd error

4,152 views
Skip to first unread message

holly

unread,
Aug 10, 2012, 8:48:31 PM8/10/12
to gs-dis...@googlegroups.com
I installed both python and gsutil to c drive of my windows 7 pc. I changed-added system variables as instructed. when I go to step 5 (Start a command prompt window and run python gsutil to get a list of gsutil commands.) I get the error "python: can't open file 'gsutil': [errno 2] no such file or directory" when I type in "python gsutil". Please help, I am on a deadline to upload some large video files. I would be interested in knowing about any other options for uploading files over 4gb to cloud , other than browser interface. 

Navneet Joneja

unread,
Aug 10, 2012, 8:53:47 PM8/10/12
to gs-dis...@googlegroups.com

Holly,

Have you tried cyberduck (www.cyberduck.ch)?

I suspect the reason gsutil is not working us the gsutil file is not in your path or current directory.

On Aug 10, 2012 5:48 PM, "holly" <kis...@gmail.com> wrote:
I installed both python and gsutil to c drive of my windows 7 pc. I changed-added system variables as instructed. when I go to step 5 (Start a command prompt window and run python gsutil to get a list of gsutil commands.) I get the error "python: can't open file 'gsutil': [errno 2] no such file or directory" when I type in "python gsutil". Please help, I am on a deadline to upload some large video files. I would be interested in knowing about any other options for uploading files over 4gb to cloud , other than browser interface. 

--
You received this message because you are subscribed to the Google Groups "Google Cloud Storage" group.
To view this discussion on the web visit https://groups.google.com/d/msg/gs-discussion/-/g4N244fOIpQJ.
To post to this group, send email to gs-dis...@googlegroups.com.
To unsubscribe from this group, send email to gs-discussio...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gs-discussion?hl=en.

Holly lindberg

unread,
Aug 10, 2012, 8:59:11 PM8/10/12
to gs-dis...@googlegroups.com
how would I go about making a path? I'll check out cyberduck too
--
Regards,
Holly Lindberg
510-908-0958
PurelyMultimedia.com

Google Cloud Storage Team

unread,
Aug 10, 2012, 9:01:01 PM8/10/12
to gs-dis...@googlegroups.com
Expanding on Navneet's comment slightly: assuming you're at the root directory of your C: drive, try running the command 'python gsutil\gsutil` to account for the fact that the gsutil command is in a folder named gsutil. If that works, we'll fix the documentation to make that more clear.

Thanks,

Marc
Google Cloud Storage Team
Marc Cohen
Google Cloud Storage Team

Holly lindberg

unread,
Aug 10, 2012, 9:17:59 PM8/10/12
to gs-dis...@googlegroups.com
ya my gsutil folder is in the c drive, (c:\gsutil) . I tried what you
said but with same error.

Navneet (Google)

unread,
Aug 10, 2012, 9:26:50 PM8/10/12
to gs-dis...@googlegroups.com
Hi Holly,

Could you please try this variation?

python c:\gsutil\gsutil

Thanks,
- Navneet

Holly lindberg

unread,
Aug 11, 2012, 12:47:34 AM8/11/12
to gs-dis...@googlegroups.com
python c:\gsutil\gsutil worked. thanks! now I have to figure out how
to use the rest of it. lol
> https://groups.google.com/d/msg/gs-discussion/-/Nlw0oFHj7DcJ.

Holly lindberg

unread,
Aug 11, 2012, 12:52:23 PM8/11/12
to gs-dis...@googlegroups.com
can you tell my the code to write to upload to an existing bucket?

Navneet Joneja

unread,
Aug 11, 2012, 2:24:48 PM8/11/12
to gs-dis...@googlegroups.com

python c:\gsutil\gsutil cp filename gs://bucketname

__
Please excuse the terse message sent from my Android.

Holly lindberg

unread,
Aug 11, 2012, 4:07:28 PM8/11/12
to gs-dis...@googlegroups.com
I am getting a new error when I put in python c:\gsutil\gsutil. It
worked yesterday...

error " 'python' is not recognized as an internal or external command,
operable program or batch file."

thanks,
holly

Bob Oliver Bigellow XLII

unread,
Aug 11, 2012, 4:22:13 PM8/11/12
to gs-dis...@googlegroups.com
There are two things at play here. The path to python and the path to gsutil. If neither is configured in the PATH environment variable on your machine, you will need to either specify the path manually or you will need to make one of the paths the current path first.

For instance, assuming python is installed at C:\python27 you could either do:

C:
CD C:\python27
python c:\gsutil\gsutil [gsutil commands go here]

OR

C:\python27\python c:\gsutil\gsutil [gsutil commands go here]

Hope this helps.

Holly lindberg

unread,
Aug 11, 2012, 5:22:52 PM8/11/12
to gs-dis...@googlegroups.com
I am a bit confused. when you say "PATH environment variable." Am I
making the path value "C:\python27\python c:\gsutil\gsutil" ?

I also considered this may go in the command window. so I inputted
C:
> CD C:\python27
> python c:\gsutil\gsutil
then the next line
python c:\gsutil\gsutil cp mvi_8152.mov gs://transendence_theatre

nothing happened, no errors no nothing. not sure what this means.
> https://groups.google.com/d/msg/gs-discussion/-/O7AKjPC5p7cJ.
Message has been deleted
Message has been deleted

Navneet (Google)

unread,
Aug 12, 2012, 11:36:50 AM8/12/12
to gs-dis...@googlegroups.com
Sorry, hit send to soon. You can verify using 

python c:\gsutil\gsutil ls gs://bucketname 

or by looking at the web UI

---

Please excuse the terse message sent from my Android.



Thanks,
navneet

Holly lindberg

unread,
Aug 12, 2012, 1:10:13 PM8/12/12
to gs-dis...@googlegroups.com
C:\python27\python c:\gsutil\gsutil cp filename gs://bucketname worked
but the file name I gave can't be located, "no such file or
directory". I put mvi_8152.mov where the file name goes. am I supposed
to put the files in a specific folder so program knows where to look?
> --
> You received this message because you are subscribed to the Google Groups
> "Google Cloud Storage" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/gs-discussion/-/8rNDJ22BciwJ.

Navneet Joneja

unread,
Aug 12, 2012, 1:54:09 PM8/12/12
to gs-dis...@googlegroups.com

Hi Holly,

you'll want to specify the full path to the file too.

__

Holly lindberg

unread,
Aug 12, 2012, 2:03:46 PM8/12/12
to gs-dis...@googlegroups.com

Like "c:/python27/python c:/gsutil/gsutil cp c:/freelance/mvi_8152.mov gs://transcendence_theatre"
Bc I tried that and it didn't work. came up with a error "InvalidUriError: "c:\freelance\mvi_8152.mov" contains ":" instead of "://". 

so I tried: 

c:\python27\python c:\gsutil\gsutil cp c://freelance/mvi_8152.mov gs://transcendence_theatre

InvalidUriError: Unrecognized scheme "c".

Next I tried:

c:\python27\python c:\gsutil\gsutil cp gs://freelance/mvi_8152.mov gs://transcendence_theatre

InvalidUriError: Attempt to get key for "gs://freelance/mvi_8152.mov" failed.

This can happen if the URI refers to a non-existent object or if you meant to

operate on a directory (e.g., leaving off -R option on gsutil cp, mv, or ls of a

bucket). 



--
You received this message because you are subscribed to the Google Groups "Google Cloud Storage" group.

Bob Oliver Bigellow XLII

unread,
Aug 12, 2012, 3:48:58 PM8/12/12
to gs-dis...@googlegroups.com
For the gsutil command, file paths need to be specified using the file:// convention. OR, you could just make the directory with the files the current directory. So, this should work for you:

C:
CD C:\freelance
c:\python27\python c:\gsutil\gsutil cp mvi_8152.mov gs://transcendence_theatre


That should work... this should also work and shows the file:// convention:


C:
CD C:\
c:\python27\python c:\gsutil\gsutil cp file://freelance/mvi_8152.mov gs://transcendence_theatre


Hope this helps.

Holly lindberg

unread,
Aug 12, 2012, 4:33:28 PM8/12/12
to gs-dis...@googlegroups.com
didn't work
C:
CD C:\freelance
c:\python27\python c:\gsutil\gsutil cp mvi_8152.mov gs://transcendence_theatre

this did work. thanks for all your help.
C:
CD C:\
c:\python27\python c:\gsutil\gsutil cp file://freelance/mvi_8152.mov
gs://transcendence_theatre

> To view this discussion on the web visit
> https://groups.google.com/d/msg/gs-discussion/-/LaehuL6HD48J.
>
> To post to this group, send email to gs-dis...@googlegroups.com.
> To unsubscribe from this group, send email to
> gs-discussio...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/gs-discussion?hl=en.



Jon Stern

unread,
Aug 12, 2012, 3:54:28 PM8/12/12
to gs-dis...@googlegroups.com
once I purchase 1 TB of google drive storage, how long before I can download to it?

To view this discussion on the web visit https://groups.google.com/d/msg/gs-discussion/-/LaehuL6HD48J.

To post to this group, send email to gs-dis...@googlegroups.com.
To unsubscribe from this group, send email to gs-discussio...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gs-discussion?hl=en.



--

Jon K. Stern, MD 
General & Cosmetic Dermatology
7500 Beechnut, Suite 350
Houston, TX 77074
(713) 988-8442 phone 
(713) 988-9222 fax
 
CONFIDENTIALITY NOTICE:
The information in this e-mail may be confidential and/or privileged. If you are not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any review, dissemination, or copying of this e-mail and its attachments, if any, or the information contained herein is prohibited. If you have received this e-mail in error, please immediately notify the sender by return e-mail and delete this e-mail from your computer system. 

Ville Aikas

unread,
Aug 13, 2012, 4:03:19 PM8/13/12
to gs-dis...@googlegroups.com
This group is for Google Cloud Storage:

For Drive related questions, you can use this forum:
http://productforums.google.com/forum/#!forum/drive

Ville...
Reply all
Reply to author
Forward
0 new messages