Gmansolf / googlecl

Automatically exported from code.google.com/p/googlecl
0 stars 0 forks source link

Cannot Upload files to picasa from windows directories but can from cygwin ~ #165

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?.
Runing cygwin on windows 7

If i try this
s0uls@s0uls-PC /cygdrive/c/users/s0uls/desktop/my dropbox/wallpapers
$ google picasa post --title "wallpaper" /*.jpg
I will get
Loading file /*.jpg to album wallpaper
Traceback (most recent call last):
  File "/usr/bin/google", line 463, in <module>
    main()
  File "/usr/bin/google", line 457, in main
    run_once(options, args)
  File "/usr/bin/google", line 356, in run_once
    task.run(client, options, args)
  File "/usr/lib/python2.6/site-packages/googlecl/picasa/service.py", line 344,
in _run_post
    client.InsertPhotoList(album, args, tags=options.tags)
  File "/usr/lib/python2.6/site-packages/googlecl/picasa/service.py", line 220,
in insert_photo_list
    err.args[0].reason,
AttributeError: 'int' object has no attribute 'reason'

BUT 
If i copy the folder to cygwin ~/ then it will upload with out issues
s0uls@s0uls-PC ~
$ google picasa post --title "wallpaper" ~/wallpapers/*.jpg
Loading file /home/s0uls/wallpapers/EpicMickeyCleanCover1920p.jpg to album wallp
aper
Loading file /home/s0uls/wallpapers/Epic_Mickey.jpg to album wallpaper
Loading file /home/s0uls/wallpapers/epic_mickey_wallpaper.jpg to album wallpaper

What is the expected output? What do you see instead?
Upload folder contect to picasa, errors above 

What version of the product are you using? On what operating system? What
version of gdata-python-client (aka python-gdata)?
google cl 0.9.7 gdata 2.0.10

Please provide any additional information below.

Original issue reported on code.google.com by souls...@gmail.com on 24 Jun 2010 at 5:22

GoogleCodeExporter commented 8 years ago
Cygwin interprets that asterisk as a "globbing" character; the standard WIndows 
shell does not. You should be able to upload single files to Picasa 
successfully, though.

http://en.wikipedia.org/wiki/Glob_(programming)

I'll mark this Invalid for now, but if you find that you can't upload even full 
pathnames to Picasa on the standard Windows shell, post back on this Issue.

Original comment by tom.h.mi...@gmail.com on 24 Jun 2010 at 11:45

GoogleCodeExporter commented 8 years ago
Sorry Let me clarify.

Im not using windows comand shell.

This is all on cygwin but if i browse (by CD folder until i get to the photos)

As you sugested I tried uploading only 1 file from windows folders and it works

s0uls@s0uls-PC /cygdrive/c/users/s0uls/pictures/a75
$ google picasa post --title a75 a75.jpg
Loading file a75.jpg to album a75

But since i need to upload full folders (100+ files each folder)doing it file 
by file is not an option.

Any suggestions?

Original comment by souls...@gmail.com on 24 Jun 2010 at 4:14