[Community] compilation error FreeBSD PCL v 0.9/ became: ZCO/ Zope startup error

Kai Hänninen kai.hanninen at mbconcert.fi
Sat Dec 3 23:16:08 EET 2005


la, 2005-12-03 kello 22:57 +0100, Tilmann Steinmetz kirjoitti:

[...] 

> Step 4: Installing ZCO is the next major hurdle though....: I am getting
> the following messing after unpacking the archive ZCO-0.6.tar.gz
> into /usr/local/www/Zope/Products/ and
> running /usr/local/www/Zope/bin/runzope
> 
> bash-2.05b# ./runzope
> /usr/local/lib/python2.4/whrandom.py:38: DeprecationWarning: the
> whrandom module is deprecated; please use the random module
>   DeprecationWarning)
> ------
> 2005-12-03T21:41:56 INFO(0) ZServer HTTP server started at Sat Dec  3
> 21:41:56 2005
>         Hostname: umwelt.geologie.uni-halle.de
>         Port: 8080
> ------
> 2005-12-03T21:41:56 INFO(0) ZServer FTP server started at Sat Dec  3
> 21:41:56 2005
>         Hostname: umwelt.geologie.uni-halle.de
>         Port: 8021
> ------
> 2005-12-03T21:41:56 INFO(0) Zope Set effective user to "www"
> ------
> 2005-12-03T21:41:58 INFO(0) PlacelessTranslationService Applying patch
> *** Patching ZPublisher.Publish with the get_request patch! ***
> ------
> 2005-12-03T21:41:59 INFO(0) IngeniWeb
> NOTICE   global_symbols.py:22:Sat Dec  3 21:41:59 2005:
> 'Starting /usr/local/www/Zope/Products/GroupUserFolder at 4 debug level'
> 
> ------
> 2005-12-03T21:41:59 ERROR(200) Zope Could not import Products.ZCO-0.6
> Traceback (most recent call last):
>   File "/usr/local/www/Zope/lib/python/OFS/Application.py", line 673, in
> import_product
>     product=__import__(pname, global_dict, global_dict, silly)
> ImportError: No module named ZCO-0.6
> Traceback (most recent call last):
>   File "/usr/local/www/Zope/lib/python/Zope/Startup/run.py", line 50,
> in ?
>     run()
>   File "/usr/local/www/Zope/lib/python/Zope/Startup/run.py", line 19, in
> run
>     start_zope(opts.configroot)
>   File "/usr/local/www/Zope/lib/python/Zope/Startup/__init__.py", line
> 52, in start_zope
>     starter.startZope()
>   File "/usr/local/www/Zope/lib/python/Zope/Startup/__init__.py", line
> 231, in startZope
>     Zope.startup()
>   File "/usr/local/www/Zope/lib/python/Zope/__init__.py", line 47, in
> startup
>     _startup()
>   File "/usr/local/www/Zope/lib/python/Zope/App/startup.py", line 45, in
> startup
>     OFS.Application.import_products()
>   File "/usr/local/www/Zope/lib/python/OFS/Application.py", line 650, in
> import_products
>     import_product(product_dir, product_name, raise_exc=debug_mode)
>   File "/usr/local/www/Zope/lib/python/OFS/Application.py", line 673, in
> import_product
>     product=__import__(pname, global_dict, global_dict, silly)
> ImportError: No module named ZCO-0.6

Try renaming /usr/local/www/Zope/Products/ZCO-0.6
to /usr/local/www/Zope/Products/ZCO. In general, you should avoid using
the version numbers in the directory names as they become part of the
python namespace and statements such as

  from Products.ZCO import *

will break as a result.

cheers,
Kai


-- 
Kai Hänninen                  mobile:+358-44-541 9567
Software engineer             www.mbconcert.fi
MB Concert Ky                 kai.hanninen at mbconcert.fi





More information about the Community mailing list