[Plone-IT] modulo Python non visto dal prodotto che lo richiede

moaiamorfo moaiamorfo a gmail.com
Gio 7 Ago 2008 09:06:23 UTC


> PYTHONPATH="$SOFTWARE_HOME:$PYTHONPATH"

grazie Yuri, ho modificato in:

#! /bin/sh

PYTHON="/usr/bin/python2.4"
ZOPE_HOME="/usr/lib/zope2.9"
INSTANCE_HOME="/home/user1/istanze/IS-CMS"
CONFIG_FILE="/home/user1/istanze/IS-CMS/etc/zope.conf"
SOFTWARE_HOME="/usr/lib/zope2.9/lib/python"
#PYTHONPATH="$SOFTWARE_HOME:$PYTHONPATH"
PYTHONPATH="$SOFTWARE_HOME:$PYTHONPATH:/usr/lib/python2.4/site-packages"
export PYTHONPATH INSTANCE_HOME SOFTWARE_HOME

ZDCTL="$SOFTWARE_HOME/Zope2/Startup/zopectl.py"

exec "$PYTHON" "$ZDCTL" -C "$CONFIG_FILE" "$@"

ma continuo ad avere questo errore da Zope:

2008-08-07 11:00:04 INFO ZServer HTTP server started at Thu Aug  7
11:00:04 2008

        Hostname: 0.0.0.0

        Port: 9673

2008-08-07 11:00:06 WARNING Init Class
Products.CMFFormController.ControllerBase.ControllerBase has a
security declaration for nonexistent method 'getPostRequired'

2008-08-07 11:00:06 INFO PlacelessTranslationService Applying patch

*** Patching ZPublisher.Publish with the get_request patch! ***

2008-08-07 11:00:07 INFO Plomino Installing Product

/home/user1/istanze/IS-CMS/Products/DataGridField/__init__.py:1:
DeprecationWarning: The module, 'Products.CMFCore.CMFCorePermissions'
is a deprecated compatiblity alias for 'Products.CMFCore.permissions';
 please use the new module instead.

  from Products.CMFCore import CMFCorePermissions

2008-08-07 11:00:07 WARNING Zope OFS.Application: Duplicate Product
name:After loading Product 'Five' from
'/home/user1/istanze/IS-CMS/Products',

I skipped the one in '/usr/lib/zope2.9/lib/python/Products'.



2008-08-07 11:00:07 WARNING Init Class
Products.PloneGazette.Section.Section has a security declaration for
nonexistent method 'dummyMethod_editPermission'

2008-08-07 11:00:07 WARNING Init Class
Products.PloneGazette.Section.Section has a security declaration for
nonexistent method 'dummyMethod_editPermission'

2008-08-07 11:00:07 INFO Plone

Monkeypatching class ATTopic with class TopicPatches

2008-08-07 11:00:07 INFO Plone

 - replacing security

2008-08-07 11:00:07 INFO Plone

 - replacing getObjects

/usr/lib/zope2.9/lib/python/Products/ZMySQLDA/DABase.py:92:
DeprecationWarning: The ImageFile module will be removed in Zope 2.11.
Use App.ImageFile instead.

  from ImageFile import ImageFile

2008-08-07 11:00:07 ERROR Zope Could not import Products.ZPyODBCDA

Traceback (most recent call last):

  File "/usr/lib/zope2.9/lib/python/OFS/Application.py", line 708, in
import_product

    product=__import__(pname, global_dict, global_dict, silly)

  File "/home/user1/istanze/IS-CMS/Products/ZPyODBCDA/__init__.py",
line 24, in ?

    from pyodbc_browser import pyodbcConnectionBrowser,
addpyodbcConnectionBrowser,addpyodbcConnectionForm

  File "/home/user1/istanze/IS-CMS/Products/ZPyODBCDA/pyodbc_browser.py",
line 23, in ?

    from pyodbc_DA import pyodbcConnection, database_type,
addpyodbcConnectionForm

  File "/home/user1/istanze/IS-CMS/Products/ZPyODBCDA/pyodbc_DA.py",
line 27, in ?

    from pyodbc_db import DB

  File "/home/user1/istanze/IS-CMS/Products/ZPyODBCDA/pyodbc_db.py",
line 27, in ?

    raise "The pyodbc module is not installed"

The pyodbc module is not installed

Traceback (most recent call last):

  File "/usr/lib/zope2.9/lib/python/Zope2/Startup/run.py", line 56, in ?

    run()

  File "/usr/lib/zope2.9/lib/python/Zope2/Startup/run.py", line 21, in run

    starter.prepare()

  File "/usr/lib/zope2.9/lib/python/Zope2/Startup/__init__.py", line
98, in prepare

    self.startZope()

  File "/usr/lib/zope2.9/lib/python/Zope2/Startup/__init__.py", line
257, in startZope

    Zope2.startup()

  File "/usr/lib/zope2.9/lib/python/Zope2/__init__.py", line 47, in startup

    _startup()

  File "/usr/lib/zope2.9/lib/python/Zope2/App/startup.py", line 46, in startup

    OFS.Application.import_products()

  File "/usr/lib/zope2.9/lib/python/OFS/Application.py", line 685, in
import_products

    import_product(product_dir, product_name, raise_exc=debug_mode)

  File "/usr/lib/zope2.9/lib/python/OFS/Application.py", line 723, in
import_product

    raise sys.exc_info()

KeyError

qualche altra idea?
grazie.

-- 
Antonio Fittipaldi
http://www.python-it.org # il punto di riferimento italiano per gli
appassionati di Python


Maggiori informazioni sulla lista Plone-IT