This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author glomde
Recipients glomde
Date 2008-01-31.22:40:52
SpamBayes Score 0.066279046
Marked as misclassified No
Message-id <1201819314.87.0.163541496288.issue1985@psf.upfronthosting.co.za>
In-reply-to
Content
Hi,

I tried to do freeze.py for my script that uses ElementTree.
But got the this error:

  File "/usr/lib/python2.5/xml/__init__.py", line 45, in <module>
    _xmlplus.__path__.extend(__path__)
  AttributeError: 'str' object has no attribute 'extend'

The reason seems that _xmlplus.__path__ is a string
after freeze.py.

I fixed it by changing the import to:

            try:
                _xmlplus.__path__.extend(__path__)
                sys.modules[__name__] = _xmlplus
            except AttributeError:
                pass

This might not be the correct solution but it works for me. I do not
really now
how the __path__ variable works in a freezed environment.

Best regards
History
Date User Action Args
2008-01-31 22:41:55glomdesetspambayes_score: 0.066279 -> 0.066279046
recipients: + glomde
2008-01-31 22:41:54glomdesetspambayes_score: 0.066279 -> 0.066279
messageid: <1201819314.87.0.163541496288.issue1985@psf.upfronthosting.co.za>
2008-01-31 22:40:53glomdelinkissue1985 messages
2008-01-31 22:40:52glomdecreate