Velocity Reviews

Velocity Reviews (
-   Python (
-   -   freeze and expat (

Operation Latte Thunder 04-21-2005 12:34 PM

freeze and expat
I am playing around with jabberpy, and on a lark decided to try to freeze
one of the included samples,

The freeze/build worked fine, but when I attempted to run the resulting
binary, I got an error hinting that it couldn't find parsers.expat:

canal:/home/chris/build% ./test_client
Traceback (most recent call last):
File "/home/chris/build/../", line 15, in ?
import jabber
File "/usr/lib/python2.3/site-packages/", line 67, in ?
import xmlstream
File "/usr/lib/python2.3/site-packages/", line 36, in ?
import xml.parsers.expat
ImportError: No module named parsers.expat

I have tried this with python2.3.5 and 2.4.1, and played around with the -m
option on the freeze cmd line, but no joy. Google seems to delight in
frustating me...

In a much simpler case than the, the following also fails:

import xml.parsers.expat
print "Hello world"

Though it runs from the interpreter... ideas?

-- | Roma Invicta!

All times are GMT. The time now is 02:09 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.