[egenix-users] No module named threadlock?

M.-A. Lemburg mal at egenix.com
Mon Aug 29 13:34:08 CEST 2011


Cliff Quinn wrote:
> I've installed the mxODBC package using buildout on a new Plone 4.1
> instance installed on Ubuntu 11
> 
>  
> 
> Buildout seems to run fine, but when I run the client1 instance in
> foreground I get the following error message and the instance exits. Any
> help would be appreciated. I don't see any references like this on the
> list or the web. Am I missing installing a product ?

Indeed. The mxODBC Zope DA 2.0 does not officially support Plone 4.1
yet (we will add that to version 2.1), but you should be able to get
it to work by making these Zope related changes in your setup when using
Zope 2.13:

In Zope 2.13 two packages that used to ship with the Zope
have been removed as default dependency:

http://pypi.python.org/pypi/ThreadLock/
http://pypi.python.org/pypi/Products.ZSQLMethods/

You will need to add those two your buildout.cfg eggs list:

[buildout]
...
eggs =
    ...
    Products.ZSQLMethods
    ThreadLock
    ...

and add versions to the [versions] section:

[versions]
...
Products.ZSQLMethods = 2.13.0
ThreadLock = 2.13.4
...

> make_top_level_package: Importing embedded mx package
> Products.mxODBCZopeDA.mx
> 
> make_top_level_package: No pre-existing mx top-level package found.
> 
> make_top_level_package: Installing embedded mx package as top-level
> package.
> 
> 2011-08-28 14:58:19 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 32, in <module>
> 
> ImportError: No module named ThreadLock
> 
> Traceback (most recent call last):
> 
>   File
> "/usr/local/Plone/buildout-cache/eggs/Zope2-2.13.8-py2.6.egg/Zope2/Start
> up/run.py", line 72, in <module>
> 
>     run()
> 
>   File
> "/usr/local/Plone/buildout-cache/eggs/Zope2-2.13.8-py2.6.egg/Zope2/Start
> up/run.py", line 21, in run
> 
>     starter.prepare()
> 
>   File
> "/usr/local/Plone/buildout-cache/eggs/Zope2-2.13.8-py2.6.egg/Zope2/Start
> up/__init__.py", line 86, in prepare
> 
>     self.startZope()
> 
>   File
> "/usr/local/Plone/buildout-cache/eggs/Zope2-2.13.8-py2.6.egg/Zope2/Start
> up/__init__.py", line 259, in startZope
> 
>     Zope2.startup()
> 
>   File
> "/usr/local/Plone/buildout-cache/eggs/Zope2-2.13.8-py2.6.egg/Zope2/__ini
> t__.py", line 47, in startup
> 
>     _startup()
> 
>   File
> "/usr/local/Plone/buildout-cache/eggs/Zope2-2.13.8-py2.6.egg/Zope2/App/s
> tartup.py", line 67, in startup
> 
>     OFS.Application.import_products()
> 
>   File
> "/usr/local/Plone/buildout-cache/eggs/Zope2-2.13.8-py2.6.egg/OFS/Applica
> tion.py", line 583, in import_products
> 
>     import_product(product_dir, product_name, raise_exc=debug_mode)
> 
>   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>
> 
>     def get_starter():
> 
>   File "Products/mxODBCZopeDA/ZopeDA.py", line 32, in <module>
> 
> ImportError: No module named ThreadLock
> 
>  
> 
> ____________________________________________________
> 
> Cliff Quinn, IT Manager
> IslandWood
> 4450 Blakely Avenue NE
> Bainbridge Island WA 98110 
> 206.855.4300
> <file:///C:\Documents%20and%20Settings\cliffq\Application%20Data\Microso
> ft\Signatures\www.IslandWood.org> www.IslandWood.org
> <http://www.IslandWood.orgThe> 
> 
> The mission of IslandWood is to provide exceptional learning experiences
> and to inspire lifelong environmental and community stewardship.
> 
>  
> 
> 
> 
> 
> 
> 
> _______________________________________________________________________
> eGenix.com User Mailing List                     http://www.egenix.com/
> https://www.egenix.com/mailman/listinfo/egenix-users

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Aug 29 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                36 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/



More information about the egenix-users mailing list