Re: No module named threadlock?

"M.-A. Lemburg" <[email protected]> Tue, 30 Aug 2011 10:01:34 +0200
Newsgroups gmane.comp.python.egenix.user
Organization eGenix.com Software GmbH; http://www.egenix.com/
Message-ID <[email protected]>

Cliff Quinn wrote:
>> [versions]
> 
>> ...
> 
>> Products.ZSQLMethods = 2.13.0
> 
>> ThreadLock = 2.13.4
> 
>> ...
> 
>>
> 
>  
> 
> [Cliff Quinn] 
> 
> I wonder if you have those two versions mixed up. 

Yes, sorry. The vesions should read:

[versions]

...
Products.ZSQLMethods = 2.13.4
ThreadLock = 2.13.0
...

> There is no Threadlock
> 2.13.4 at PyPI, just 2.13.0, and there is a ZSQLMethods 2.13.4 from this
> last July. In any case I switched those two versions, and tried it with
> both versions at 2.13.0, and in both cases get the following new error
> on startup of the client instance. Python reports UCS4 to "python -c
> 'print("UCS%s"%len(u"x".encode("unicode-internal")))'" and I have the
> line               "http://downloads.egenix.com/python/index/ucs4/"
> 
> in the find-links= section of buildout.

The error indicates that you are running a UCS2 Python version.

Unless you have configured Plone to use an already installed
Python during installation, Plone will build a private copy which
uses the Python default setting of UCS2.

You can either reinstall Plone to use your system Python
version or install the UCS2 version of the Zope DA.

> Cliff
> 
>  
> 
> 2011-08-29 21:23:52 INFO root eGenix mxODBC Zope DA:
> 
> 2011-08-29 21:23:52 ERROR Application Could not import
> Products.mxODBCZopeDA
> 
> Traceback (most recent call last):
> 
>   File
> "/usr/local/Plone/buildout-cache/eggs/Zope2-2.13.8-py2.6.egg/OFS/Applica
> tion.py", line 606, in import_product
> 
>     product=__import__(pname, global_dict, global_dict, silly)
> 
>   File "Products/mxODBCZopeDA/__init__.py", line 33, in <module>
> 
>   File "Products/mxODBCZopeDA/ZopeDA.py", line 108, in <module>
> 
> ImportError:
> /usr/local/Plone/buildout-cache/eggs/egenix_mxodbc_zopeda-2.0.1-py2.6-li
> nux-x86_64.egg/Products/mxODBCZopeDA/mx/TextTools/mxTextTools/mxTextTool
> s.so: undefined symbol: PyUnicodeUCS4_FromEncodedObject

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Aug 30 2011)
>>> Python/Zope Consulting and Support ...        http://www.egenix.com/
>>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
>>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________
2011-10-04: PyCon DE 2011, Leipzig, Germany                35 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/


_______________________________________________________________________
eGenix.com User Mailing List                     http://www.egenix.com/
https://www.egenix.com/mailman/listinfo/egenix-users