[egenix-users] undefined symbol: PyUnicodeUCS4_FromEncodedObject

eGenix Support: M.-A. Lemburg support at egenix.com
Wed Jun 23 10:46:42 CEST 2010


Dear Mr. Clark,

sorry for the late reply.

The error you are seeing is related to the fact that Python can
be built in two different Unicode versions: UCS2 and UCS4.

Your Plone installation uses a UCS2, but you have setup zc.buildout
to point to our UCS4 tree (or downloaded the UCS4 egg file).

Please setup zc.buildout to use our UCS2 tree, ie. use
the http://downloads.egenix.com/python/index/ucs2/ URL in
find-links:

find-links =
    http://dist.plone.org/release/3.3.1/
    http://dist.plone.org
    http://download.zope.org/ppix/
    http://download.zope.org/distribution/
    http://effbot.org/downloads
    http://downloads.egenix.com/python/index/ucs2/

If you get a linker error mentioning a PyUnicodeUCS2_* API, then
the situations is reversed: you have a UCS4 Python intalled
and zc.buildout is trying to use a UCS2 egg.

All this is due to the fact that zc.buildout/setuptools ignore
the fact that Python can be built in two different Unicode versions.
To work around this, we've setup two different PyPI-style indexes,
one for the UCS2 builds and another for the UCS4 builds.

Sorry for the trouble this has caused you. If you need an extension of
your eval license, please let me know.

Thanks,
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Jun 23 2010)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________
2010-07-19: EuroPython 2010, Birmingham, UK                25 days to go

::: Try our new mxODBC.Connect Python Database Interface for free ! ::::


   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
    D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
           Registered at Amtsgericht Duesseldorf: HRB 46611
               http://www.egenix.com/company/contact/

> Hi all,
> 
> I am trying to add egenix_mxodbc_zopeda-2.0.1-py2.4-linux-x86_64.egg to Plone 3.3.5 and
> when I start the instance I get this:
> 
> ---
> 
> 2010-05-24 08:17:22 ERROR Application Could not import Products.mxODBCZopeDA
> Traceback (most recent call last):
>  File "/home/aclark/Developer/seiu/parts/zope2/lib/python/OFS/Application.py", line 709, in import_product
>    product=__import__(pname, global_dict, global_dict, silly)
>  File "Products/mxODBCZopeDA/__init__.py", line 33, in ?
>    logger = logging.getLogger("Zope")
>  File "Products/mxODBCZopeDA/ZopeDA.py", line 108, in ?
> ImportError: /home/aclark/Developer/seiu/eggs/egenix_mxodbc_zopeda-2.0.1-py2.4-linux-x86_64.egg/Products/mxODBCZopeDA/mx/TextTools/mxTextTools/mxTextTools.so: undefined symbol: PyUnicodeUCS4_FromEncodedObject
> Traceback (most recent call last):
>  File "/home/aclark/Developer/seiu/parts/zope2/lib/python/Zope2/Startup/run.py", line 56, in ?
>    run()
>  File "/home/aclark/Developer/seiu/parts/zope2/lib/python/Zope2/Startup/run.py", line 21, in run
>    starter.prepare()
>  File "/home/aclark/Developer/seiu/parts/zope2/lib/python/Zope2/Startup/__init__.py", line 102, in prepare
>    self.startZope()
>  File "/home/aclark/Developer/seiu/parts/zope2/lib/python/Zope2/Startup/__init__.py", line 278, in startZope
>    Zope2.startup()
>  File "/home/aclark/Developer/seiu/parts/zope2/lib/python/Zope2/__init__.py", line 47, in startup
>    _startup()
>  File "/home/aclark/Developer/seiu/parts/zope2/lib/python/Zope2/App/startup.py", line 45, in startup
>    OFS.Application.import_products()
>  File "/home/aclark/Developer/seiu/parts/zope2/lib/python/OFS/Application.py", line 686, in import_products
>    import_product(product_dir, product_name, raise_exc=debug_mode)
>  File "/home/aclark/Developer/seiu/parts/zope2/lib/python/OFS/Application.py", line 709, in import_product
>    product=__import__(pname, global_dict, global_dict, silly)
>  File "/home/aclark/Developer/seiu/parts/zope2/lib/python/Zope2/Startup/__init__.py", line 33, in ?
>    logger = logging.getLogger("Zope")
>  File "Products/mxODBCZopeDA/ZopeDA.py", line 108, in ?
> ImportError: /home/aclark/Developer/seiu/eggs/egenix_mxodbc_zopeda-2.0.1-py2.4-linux-x86_64.egg/Products/mxODBCZopeDA/mx/TextTools/mxTextTools/mxTextTools.so: undefined symbol: PyUnicodeUCS4_FromEncodedObject
> 
> ---
> 
> Does this make any sense to anyone?
> 
> If I understand correctly, that is the correct binary to use for my distro (Ubuntu Lucid).
> 
> Thanks,
> 
> Alex
> 
> -- Alex Clark · http://aclark.net Author — Plone 3.3 Site Administration · http://aclark.net/admin 



More information about the egenix-users mailing list