John,

Both the zenbuild.log and events.log entries indicate that python is having problems importing various zenoss and zope packages. What is your PYTHONPATH set to?

-jason

On Feb 1, 2007, at 3:05 PM, Dennis B. Hopp wrote:


----- "Jason Stevens" <[EMAIL PROTECTED]> wrote:
Dennis,

Looks like something is screwy with your install.   Here's a few
things to try:

1. You may want to update to latest svn revision.  Whether you do
that or not, try running zenmigrate again: zenmigrate run --commit

I upgraded to 4002 and same thing happened.

[EMAIL PROTECTED] bin]$ zenmigrate run --commit
Traceback (most recent call last):
File "/opt/zenoss/Products/ZenModel/migrate/zenmigrate.py", line 2, in ?
    from Products.ZenModel.migrate import Migrate
File "/opt/zenoss/Products/ZenModel/migrate/__init__.py", line 20, in ?
    import eventdbname
File "/opt/zenoss/Products/ZenModel/migrate/eventdbname.py", line 12, in ?
    import Migrate
File "/opt/zenoss/Products/ZenModel/migrate/Migrate.py", line 18, in ?
    from Products.ZenUtils.ZCmdBase import ZCmdBase
  File "/opt/zenoss/Products/ZenUtils/ZCmdBase.py", line 23, in ?
    import zope.traversing.adapters
File "opt/zenoss/lib/python/zope/traversing/adapters.py", line 28, in ? File "opt/zenoss/lib/python/zope/traversing/namespace.py", line 22, in ?
ImportError: cannot import name IModifiableUserPreferredLanguages


I did notice this in the zenbuild.log though:

ImportError: cannot import name IModifiableUserPreferredLanguages
WARNING:ZODB:Could not import class 'ZenossInfo' from module 'Products.ZenModel.ZenossInfo' 2007-02-01 14:03:13 WARNING ZODB Could not import class 'ZenossInfo' from module 'Products.ZenModel.ZenossInfo' WARNING:ZODB:Could not import class 'ReportServer' from module 'Products.ZenReports.ReportServer' 2007-02-01 14:03:13 WARNING ZODB Could not import class 'ReportServer' from module 'Products.ZenReports.ReportServer' WARNING:ZODB:Could not import class 'DataRoot' from module 'Products.ZenModel.DataRoot' 2007-02-01 14:03:13 WARNING ZODB Could not import class 'DataRoot' from module 'Products.ZenModel.DataRoot' WARNING:ZODB:Could not import class 'RenderServer' from module 'Products.ZenRRD.RenderServer' 2007-02-01 14:03:13 WARNING ZODB Could not import class 'RenderServer' from module 'Products.ZenRRD.RenderServer'
Migrating data
Traceback (most recent call last):


2. Check that $ZENHOME/bin/python points to python 2.4

[EMAIL PROTECTED] bin]$ ls -l /opt/zenoss/bin/python
lrwxrwxrwx 1 zenoss Domain Users 18 Feb 1 13:55 /opt/zenoss/bin/ python -> /usr/bin/python2.4

3. Grep $ZENHOME/etc/zope.conf and $ZENHOME/etc/zeo.conf for
hardcoded paths to python.  Double check that those are pointing to
version 2.4 and not an earlier version.

[EMAIL PROTECTED] bin]$ grep -i python /opt/zenoss/etc/zope.conf

All lines returned were commented out lines

[EMAIL PROTECTED] bin]$ grep -i python /opt/zenoss/etc/zeo.conf
  python /usr/bin/python2.4
  zdrun /opt/zenoss/lib/python/zdaemon/zdrun.py


4. Another option is to backup your data, do a clean install and then

restore your data.  Steps for doing this were in another thread
earlier today.


Ugh...

_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to