vinitkumar / googlecl

GoogleCL rewrite in __progress__
Other
325 stars 48 forks source link

ImportError: No module named expat #235

Closed vinitkumar closed 10 years ago

vinitkumar commented 10 years ago

From fnems....@gmail.com on July 16, 2010 08:45:39

hi there

i'm just start to use googlecl and it seems that everytime i run a command there would be the same error, except for the "help" command.

the error seems like this:

E:\googlecl\build\scripts-2.7>google docs list Traceback (most recent call last): File "google", line 536, in main() File "google", line 530, in main run_once(options, args) File "google", line 371, in run_once token_valid = client.IsTokenValid() File "googlecl\docs\service.pyo", line 256, in is_token_valid File "googlecl\service.pyo", line 257, in is_token_valid File "gdata\service.pyo", line 1077, in Get File "gdatainit.pyo", line 465, in GDataFeedFromString File "atominit.pyo", line 93, in optional_warn_function File "atominit.pyo", line 127, in CreateClassFromXMLString File "xml\etree\ElementTree.pyo", line 962, in XML File "xml\etree\ElementTree.pyo", line 1118, in init ImportError: No module named expat; use SimpleXMLTreeBuilder instead

my OS is WinXP and i tried both googlecl0.9.8 for windows and googlecl0.9.8 source( compiled by python2.7 fow windows ).

so ... anyone can help?

THANKS A LOT

Original issue: http://code.google.com/p/googlecl/issues/detail?id=227

vinitkumar commented 10 years ago

From tom.h.mi...@gmail.com on July 16, 2010 05:02:57

I would have expected the windows-specific one to work, but maybe it still pulls libraries from your Python installation...

We only tested with python 2.5 and 2.6, so try installing either of those. And please let me know if that solves the problem for the windows-specific package as well. Thanks!

vinitkumar commented 10 years ago

From fnems....@gmail.com on July 16, 2010 07:07:44

well, yea, i found out that i've made a mistake,

to use the compiled googlecl, i should type in a command like this:

python google XXX XXX

and when i type: E:\googlecl\build\scripts-2.7>google docs list it was actually the googlecl for windows edition running, not the compiled one. (because the compiled "google" file is still a script, instead of a PE file)

the compiled googlecl works fine with python 2.6

thank you for answering, tom.h.mi :-)

vinitkumar commented 10 years ago

From tom.h.mi...@gmail.com on July 16, 2010 07:20:27

Ahhhh, ok. I'll update interactive mode to prevent that kind of thing from happening.

Status: Accepted

vinitkumar commented 10 years ago

From tom.h.mi...@gmail.com on July 20, 2010 08:20:04

This issue was closed by revision r352 .

Status: Fixed