[Zope] Openflow product is broken on ZMI

Smita Kamdar SK0054916 at TechMahindra.com
Fri Dec 3 05:02:14 EST 2010


Hi,

 

I just got OpenFlow1.1.0 downloaded. But didn't know the steps to
install. 

 

But as I extracted Openflow source tar ball in Zope's
lib/python/Products directory, it created .pyc files for instance.py,
activity.py, openflow.py, process.py, transition.py & workitem.py. & so
because of that I thought that openflow is installed. But after that I
was not able to see that in the Products dir of Zope Management
Interface screen. So after that I implemented the solution that u gave
me in your last mail i.e. to change a line (from
Products.PageTemplates.Expressions import getEngine,
_SecureModuleImporter) in expression.py file. After doing this &
restarting zope now I am able to see the openflow on ZMI.  Thanks a Lot
for Ur invaluable help. 

 

After all this, I imported my project's code from live server to the
development server (Please note that now I am in the process of setting
up development env set up). But after importing the entire project code
from live to dev server, on ZMI for OpenFlow it is giving error as
'Openflow Product is broken', while on live server it works perfectly.
Only after importing code on dev server ZMI it is showing this error.Pls
note that I am importing my project code in binary form (i.e. in .zexp
format).

  

On LINUX dev server, I started zope as (./zopectl fg) while doing all
the above stuff. It showed the below error -

 

------------------------------------------------------------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
--------------------------------------

[test at test bin]$. /zopectl fg

/opt/zope/bin/runzope -X debug-mode=on

2010-11-30 20:23:33 INFO ZServer HTTP server started at Tue Nov 30
20:23:33 2010

        Hostname: 0.0.0.0

        Port: 8080

2010-11-30 20:23:33 WARNING Init Class
Products.openflow-engine.instance.instanc method 'History'

2010-11-30 20:23:33 WARNING Init Class
Products.openflow-engine.instance.instanc method 'History'

2010-11-30 20:23:33 WARNING Init Class
Products.openflow-engine.activity.activit method 'editActivity'

2010-11-30 20:23:33 WARNING Init Class
Products.openflow-engine.transition.transent method 'editTransition'

2010-11-30 20:23:33 WARNING Init Class
Products.openflow-engine.transition.transent method 'editTransition'

2010-11-30 20:23:33 WARNING Init Class
Products.openflow-engine.process.process method 'Map'

2010-11-30 20:23:33 WARNING Init Class
Products.openflow-engine.process.process method 'Map'

/opt/zope/lib/python/OFS/Application.py:809: DeprecationWarning:
__init__.py of mehods' attribute. 'methods' support might be removed in
Zope 2.11 or a later feat of registerClass instead if the methods are
constructors. Or refactor the prod DeprecationWarning)

2010-11-30 20:23:34 INFO Application New disk product detected,
determining if w

2010-11-30 20:23:34 INFO Zope Ready to handle requests

 

2010-11-30 21:19:05 WARNING OFS.Uninstalled Could not import class
'openflow' from module 'Products.OpenFlow.openflow'

2010-11-30 21:19:05 WARNING OFS.Uninstalled Could not import class
'OpenFlowEditor' from module 'Products.OpenFlowEditor.OpenFlowEditor'

2010-11-30 21:19:05 WARNING OFS.Uninstalled Could not import class
'Connection'from module 'Products.ZPyGreSQLDA.DA'

2010-11-30 21:19:05 INFO PythonScripts Some of your Scripts have stale
code cached.  Since Zope cannot use this code, startup will be slightly
slower until thes

e Scripts are edited. You can automatically recompile all Scripts that
have this problem by visiting /manage_addProduct/PythonScripts/recompile
of your server i

n a browser.

2010-11-30 21:19:09 WARNING OFS.Uninstalled Could not import class
'workitem' from module 'Products.OpenFlow.workitem'

2010-11-30 21:19:09 WARNING OFS.Uninstalled Could not import class
'instance' from module 'Products.OpenFlow.instance'

2010-11-30 21:19:09 WARNING OFS.Uninstalled Could not import class
'process' from module 'Products.OpenFlow.process'

2010-11-30 21:19:09 WARNING OFS.Uninstalled Could not import class
'transition'from module 'Products.OpenFlow.transition'

2010-11-30 21:19:09 WARNING OFS.Uninstalled Could not import class
'activity' from module 'Products.OpenFlow.activity'

2010-11-30 21:28:15 ERROR Zope.SiteErrorLog 1291132695.540.680391211014
http://172.21.55.72:8080/BT/manage_importObject

Traceback (innermost last):

  Module ZPublisher.Publish, line 119, in publish

  Module ZPublisher.mapply, line 88, in mapply

  Module ZPublisher.Publish, line 42, in call_object

  Module OFS.ObjectManager, line 615, in manage_importObject

  Module OFS.ObjectManager, line 634, in _importObjectFromFile

  Module OFS.CopySupport, line 526, in _verifyObjectPaste

2010-11-30 21:28:35 ERROR Zope.SiteErrorLog 1291132715.960.0667235585295
http://172.21.55.72:8080/BT/manage_importObject

 Traceback (innermost last):

  Module ZPublisher.Publish, line 119, in publish

  Module ZPublisher.mapply, line 88, in mapply

  Module ZPublisher.Publish, line 42, in call_object

  Module OFS.ObjectManager, line 615, in manage_importObject

  Module OFS.ObjectManager, line 634, in _importObjectFromFile

  Module OFS.CopySupport, line 526, in _verifyObjectPaste

 

------------------------------------------------------------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
--------------------------------------

 

Does that mean that OpenFlow is not installed properly? If yes what
steps should I follow to install it?  

Am I missing something?

 

Thanks a lot In Advance!!!

 

Thanks & Regards,

Smita Kamdar 

 

 

 


============================================================================================================================Disclaimer:  This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech Mahindra.============================================================================================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.zope.org/pipermail/zope/attachments/20101203/4f21bda0/attachment.html 


More information about the Zope mailing list