gottagetit / phoshare

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

ValueError: too many values to unpack #46

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. comand line

MacBook-Pro-de-Rafael:~ Rafael$ 
/Applications/Phoshare.app/Contents/*MacOS/Phoshare* -e . -d -k -u --size 1920 
--iphoto "~/Pictures/iPhoto Library" --export "~/Dropbox/iPhoto Backup"

What is the expected output? What do you see instead?

Scanning iPhoto data for photos to export...
Traceback (most recent call last):
  File "/Applications/Phoshare.app/Contents/Resources/__boot__.py", line 31, in <module>
    _run('Phoshare.py')
  File "/Applications/Phoshare.app/Contents/Resources/__boot__.py", line 28, in _run
    execfile(path, globals(), globals())
  File "/Applications/Phoshare.app/Contents/Resources/Phoshare.py", line 35, in <module>
    main()
  File "/Applications/Phoshare.app/Contents/Resources/Phoshare.py", line 32, in main
    phoshare.phoshare_main.main()
  File "/Applications/Phoshare.app/Contents/Resources/lib/python2.7/phoshare/phoshare_main.py", line 1002, in main
    run_phoshare(sys.argv[1:])
  File "/Applications/Phoshare.app/Contents/Resources/lib/python2.7/phoshare/phoshare_main.py", line 991, in run_phoshare
    export_iphoto(album, data, options.exclude, options)
  File "/Applications/Phoshare.app/Contents/Resources/lib/python2.7/phoshare/phoshare_main.py", line 756, in export_iphoto
    options.events, excludes, options)
  File "/Applications/Phoshare.app/Contents/Resources/lib/python2.7/phoshare/phoshare_main.py", line 653, in process_albums
    (folder_hint, sub_name) = sub_name.split('/', 2)
ValueError: too many values to unpack
2012-10-02 11:12:57.550 Phoshare[1580:707] Phoshare Error
2012-10-02 11:12:57.551 Phoshare[1580:707] Phoshare Error

What version of the product are you using? On what operating system?
1.5.0 on Mountain Lion iPhoto 11 
~10.000 photos library ~70GB

Please provide any additional information below.

Original issue reported on code.google.com by RafaelPo...@gmail.com on 2 Oct 2012 at 2:18

GoogleCodeExporter commented 8 years ago
If you are OK with editing a text file, open 
  /Applications/Phoshare.app/Contents/Resources/lib/python2.7/phoshare/phoshare_main.py
and in line 652, change the '2' to a '1':
   (folder_hint, sub_name) = sub_name.split('/', 1)
I'll post a new package with this fix soon.

Original comment by tsporkert on 2 Oct 2012 at 5:00

GoogleCodeExporter commented 8 years ago
Fixed in Phoshare 1.5.1

Original comment by tsporkert on 3 Oct 2012 at 7:21