2015-11-04 27 views
3

我想配置與NewRelic的Zope的,但它返回的錯誤:誤差和NewRelic的Zope的

#斌/ NewRelic的管理員運行蟒蛇斌/ zeoserver FG

Traceback (most recent call last): 
    File "bin/zeoserver", line 22, in <module> 
import plone.recipe.zeoserver.ctl 
    File "/opt/bitnami/apps/plone/buildout-cache/eggs/plone.recipe.zeoserver-1.2.6-py2.7.egg/plone/recipe/zeoserver/__init__.py", line 9, in <module> 
    import zc.recipe.egg 
    File "/opt/bitnami/apps/plone/buildout-cache/eggs/zc.recipe.egg-1.3.2-py2.7.egg/zc/recipe/egg/__init__.py", line 1, in <module> 
    from zc.recipe.egg.egg import Egg, Scripts, Eggs 
    File "/opt/bitnami/apps/plone/buildout-cache/eggs/zc.recipe.egg-1.3.2-py2.7.egg/zc/recipe/egg/egg.py", line 21, in <module> 
    import zc.buildout.easy_install 
    File "/opt/bitnami/apps/plone/buildout-cache/eggs/zc.buildout-2.2.5-py2.7.egg/zc/buildout/easy_install.py", line 81, in <module> 
    pkg_resources.Requirement.parse('zc.buildout')).location, 
AttributeError: 'NoneType' object has no attribute 'location' 

有誰知道該怎麼辦?

+0

你有沒有嘗試升級你的一些軟件包。我懷疑setuptools,buildout或zc.recipe.egg! – alepisa

回答

2

我解決了從應用程序中添加一個__init__.py下面的代碼:

import newrelic.agent 
newrelic.agent.initialize('path/of/newrelic.ini') 

和執行應用程序,而不命令「NewRelic的管理員運行蟒蛇」。

Newrelic工作但有侷限性,因爲還沒有官方支持。