rayleyva / googlecl

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

RuntimeError: cannot load dispatch table from pyexpat #492

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I run embedded linux on Zyxel KEENETIC with installed Python 2.7
I succesfully installed gdata and googlecl.

When I run $ google picasa create --title "Foo" I get this error
anyway album "Foo" creates despite that error.

Traceback (most recent call last):
  File "/media/DISK_A1/system/usr/bin/google", line 5, in <module>
    pkg_resources.run_script('googlecl==0.9.13', 'google')
  File "/media/DISK_A1/system/usr/lib/python2.7/site-packages/pkg_resources.py", line 499, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/media/DISK_A1/system/usr/lib/python2.7/site-packages/pkg_resources.py", line 1235, in run_script
    execfile(script_filename, namespace, namespace)
  File "/media/DISK_A1/system/usr/lib/python2.7/site-packages/googlecl-0.9.13-py2.7.egg/EGG-INFO/scripts/google", line 849, in <module>
    main()
  File "/media/DISK_A1/system/usr/lib/python2.7/site-packages/googlecl-0.9.13-py2.7.egg/EGG-INFO/scripts/google", line 835, in main
    run_once(options, args)
  File "/media/DISK_A1/system/usr/lib/python2.7/site-packages/googlecl-0.9.13-py2.7.egg/EGG-INFO/scripts/google", line 627, in run_once
    task.run(client, options, args)
  File "/media/DISK_A1/system/usr/lib/python2.7/site-packages/googlecl-0.9.13-py2.7.egg/googlecl/picasa/__init__.py", line 198, in _run_create
    access=options.access, date=options.date)
  File "/media/DISK_A1/system/usr/lib/python2.7/site-packages/googlecl-0.9.13-py2.7.egg/googlecl/picasa/service.py", line 152, in create_album
    timestamp=timestamp_ms)
  File "/media/DISK_A1/system/usr/lib/python2.7/site-packages/gdata/photos/service.py", line 356, in InsertAlbum
    converter=gdata.photos.AlbumEntryFromString)
  File "/media/DISK_A1/system/usr/lib/python2.7/site-packages/googlecl-0.9.13-py2.7.egg/googlecl/service.py", line 69, in retry_post
    return self.retry_operation(*args, **kwargs)
  File "/media/DISK_A1/system/usr/lib/python2.7/site-packages/googlecl-0.9.13-py2.7.egg/googlecl/base.py", line 387, in retry_operation
    raise unexpected
ImportError: No module named expat; use SimpleXMLTreeBuilder instead

When I try to get the "Foo" album I get that error

Traceback (most recent call last):
  File "/media/DISK_A1/system/usr/bin/google", line 5, in <module>
    pkg_resources.run_script('googlecl==0.9.13', 'google')
  File "/media/DISK_A1/system/usr/lib/python2.7/site-packages/pkg_resources.py", line 499, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/media/DISK_A1/system/usr/lib/python2.7/site-packages/pkg_resources.py", line 1235, in run_script
    execfile(script_filename, namespace, namespace)
  File "/media/DISK_A1/system/usr/lib/python2.7/site-packages/googlecl-0.9.13-py2.7.egg/EGG-INFO/scripts/google", line 849, in <module>
    main()
  File "/media/DISK_A1/system/usr/lib/python2.7/site-packages/googlecl-0.9.13-py2.7.egg/EGG-INFO/scripts/google", line 835, in main
    run_once(options, args)
  File "/media/DISK_A1/system/usr/lib/python2.7/site-packages/googlecl-0.9.13-py2.7.egg/EGG-INFO/scripts/google", line 627, in run_once
    task.run(client, options, args)
  File "/media/DISK_A1/system/usr/lib/python2.7/site-packages/googlecl-0.9.13-py2.7.egg/googlecl/picasa/__init__.py", line 271, in _run_get
    photo_title=options.photo)
  File "/media/DISK_A1/system/usr/lib/python2.7/site-packages/googlecl-0.9.13-py2.7.egg/googlecl/picasa/service.py", line 200, in download_album
    entries = self.GetAlbum(user=user, titles=titles)
  File "/media/DISK_A1/system/usr/lib/python2.7/site-packages/googlecl-0.9.13-py2.7.egg/googlecl/picasa/service.py", line 255, in get_album
    return self.GetEntries(uri, titles)
  File "/media/DISK_A1/system/usr/lib/python2.7/site-packages/googlecl-0.9.13-py2.7.egg/googlecl/base.py", line 220, in get_entries
    feed = self.GetFeed(uri)
  File "/media/DISK_A1/system/usr/lib/python2.7/site-packages/gdata/photos/service.py", line 178, in GetFeed
    return self.Get(uri, converter=gdata.photos.AnyFeedFromString)
  File "/media/DISK_A1/system/usr/lib/python2.7/site-packages/googlecl-0.9.13-py2.7.egg/googlecl/service.py", line 59, in retry_get
    return self.retry_operation(*args, **kwargs)
  File "/media/DISK_A1/system/usr/lib/python2.7/site-packages/googlecl-0.9.13-py2.7.egg/googlecl/base.py", line 387, in retry_operation
    raise unexpected
RuntimeError: cannot load dispatch table from pyexpat

I copied SimpleXMLTreeBuilder.py from googlecode to Python2.7/xml/parsers and 
xml/etree but that doesn't help

Could anyone help me to fix that issue.

Original issue reported on code.google.com by moldov31...@gmail.com on 4 Sep 2012 at 4:40