Produkte werden nicht angeigt

Django, Flask, Bottle, WSGI, CGI…
Antworten
chri7
User
Beiträge: 13
Registriert: Donnerstag 6. September 2007, 07:05
Wohnort: Speyer

Hallo zusammen,

ich habe einige Produkte in den Products Folder meiner Instanz kopiert,
nach einem Zope restart werden Sie in Plone auch korrekt im ProgrammInstaller angezeigt,
bis auf 3 Stück:

- CalendarX
- PloneGlossary
- Zsyncer

Wie kann ich bei diesem Problem auf Fehlersuche gehen?

Ich habe die Filerechte geprüft - alles i.O.
Auch die Ordnerstrukturen sehen okay aus, überall ist diese __index__ vorhanden.

Wie kann ich vorgehen - was kann ich tun?

danke im Vorraus,

chris

PS - ein paar Daten:
Ubuntu 7.04 Server 32Bit - alles per apt von off-quellen inst.

Plone 2.5.1,
CMF-1.6.2,
Zope (Zope 2.9.6-final, python 2.4.4, linux2),
Five 1.3.8,
Python 2.4.4 (#2, Apr 12 2007, 21:03:11) [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)],
PIL 1.1.6
Benutzeravatar
Käptn Haddock
User
Beiträge: 169
Registriert: Freitag 24. März 2006, 14:27

Bei jedem Produkt sollten Dateien wie INSTALL.txt oder DEPENDENCIES.txt oder so dabei sein. Da sind etwaige Abhängigkeiten und zusätzliche Instruktionen aufgeführt. Wenn man denen folgt, klappt es meist. Oder du kannst mal im Errorlog deiner Site nachsehen, was da drinsteht.

Gruß Uwe
---------------------------------
have a lot of fun!
chri7
User
Beiträge: 13
Registriert: Donnerstag 6. September 2007, 07:05
Wohnort: Speyer

Moin zusammen, vielleicht hilft mir ja doch einer ...

Ich habe zwischenzeitlich meine Einarbeitung in Zope weitergeführt - zum beheben des obigen Problems wollte ich Zope aus der Konsole starten mit "zopectl fg" - was nur in Fehlermeldungen ausartet (als deamon über zopectl start oder /et/ini/zp start läuft das problemlos) ...

Output:
root@u704plone:/var/lib/zope2.9/instance/plone-site/bin# ./zopectl fg
/var/lib/zope2.9/instance/plone-site/bin/runzope -X debug-mode=on
2007-09-12 08:37:22 INFO ZServer HTTP server started at Wed Sep 12 08:37:22 2007
Hostname: 0.0.0.0
Port: 80
2007-09-12 08:37:22 INFO Zope Set effective user to "zope"
2007-09-12 08:37:23 WARNING Init Class Products.ATContentTypes.content.base.ATCTFolderMixin has a security declaration for nonexistent method 'manage_copyObjects'
/var/lib/zope2.9/instance/plone-site/Products/Marshall/handlers/__init__.py:38: UserWarning: libxml2 not available. Unable to register libxml2 based marshallers
warnings.warn('libxml2 not available. Unable to register libxml2 based ' \
/var/lib/zope2.9/instance/plone-site/Products/CMFContentPanels/ContentPanelsTool.py:9: DeprecationWarning: The module, 'Products.CMFCore.CMFCorePermissions' is a deprecated compatiblity alias for 'Products.CMFCore.permissions'; please use the new module instead.
from Products.CMFCore.CMFCorePermissions import ManagePortal
2007-09-12 08:37:23 ERROR Zope Could not import Products.CalendarX-0.6.6
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)
ImportError: No module named CalendarX-0.6.6
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
root@u704plone:/var/lib/zope2.9/instance/plone-site/bin#
Mein Ubuntu 7.04 [Linux u704plone 2.6.20-15-server #2 SMP Sun Apr 15 07:41:34 UTC 2007 i686 GNU/Linux] hat folgende xml Packete installiert:
root@u704plone:/var/lib/zope2.9/instance/plone-site/bin# dpkg-query -l | grep xml
ii libxml1 1.8.17-14build1 GNOME XML library
ii libxml2 2.6.27.dfsg-1ubuntu3 GNOME XML library
ii libxml2-dbg 2.6.27.dfsg-1ubuntu3 Debugging symbols for the GNOME XML library
ii xml-core 0.09-0.1 XML infrastructure and XML catalog file supp
Hat jmd. einen Tip was der XML Fehler auf sich hat?
Oder was ich sonst als nächste Steps tun könnte?

danke im Vorraus,

CHris aka derNeue ;P
Benutzeravatar
gerold
Python-Forum Veteran
Beiträge: 5555
Registriert: Samstag 28. Februar 2004, 22:04
Wohnort: Oberhofen im Inntal (Tirol)
Kontaktdaten:

chri7 hat geschrieben:zum beheben des obigen Problems wollte ich Zope aus der Konsole starten mit "zopectl fg"
[...]
/var/lib/zope2.9/instance/plone-site/Products/Marshall/handlers/__init__.py:38: UserWarning: libxml2 not available. Unable to register libxml2 based marshallers
[...]
ImportError: No module named CalendarX-0.6.6
Hallo chri7!

Mit "zopectl fg" bist du auf dem richtigen Weg. So bekommst du raus wo Fehler liegen. :-)

"libxml2" wird *nur* als Marshaller gebraucht. Aber es ist nur eine Warnung. Wenn es nicht installiert ist, dann kannst du ein oder zwei Dateiformate weniger ins Plone importieren. Um es zu installieren:
``aptitude install python-lxml`` und/oder ``aptitude install python-xml``, aber das weiß ich nicht genau. Also zuerst ausprobieren ob du das zweite Paket wirklich brauchst.
No module named CalendarX-0.6.6
Das weist eher darauf hin, dass du dieses Produkt falsch entpackt hast. Ich kenne CalendarX nicht, aber im Produkte-Ordner sollte es keine Ordner mit Versionsnummer geben. Also maximal ein "CalendarX". -- Ohne die Versionsnummer.

Auszug aus der "install.txt":
3. RENAME! In your Zope INSTANCE, place this folder in your
INSTANCE_HOME/Products/ folder and rename the folder to
/Products/CalendarX instead of /Products/CalendarX-0.6.x.
Ich weiß jetzt nicht, welche Ploneversion du einsetzt. Aber ist sichergestellt, dass dein CalendarX auch wirklich mit der eingesetzten Ploneversion funktioniert? Außerdem gibt es auch eine Warnung, CalendarX nicht mit Python 2.4 einzusetzen.

http://plone.org/products/calendarx

Am Besten wird es sein, wenn du dir die INSTALL.txt des CalendarX noch einmal durchliest. Vielleicht findest du noch einen Hinweis, falls es nicht funktioniert.

mfg
Gerold
:-)
http://halvar.at | Kleiner Bascom AVR Kurs
Wissen hat eine wunderbare Eigenschaft: Es verdoppelt sich, wenn man es teilt.
chri7
User
Beiträge: 13
Registriert: Donnerstag 6. September 2007, 07:05
Wohnort: Speyer

Moin Uwe,
hab deinen Post nicht vor der Antwort gelesen ...

Hatte die Install von CalenderX gelesen - das Problem ist gelöst.... (enn eine function CalenderX-0.6.6 gibt es nicht, wohl aber CalenderX ohne die Version ;P also Ordner umbenannt und gut ist .....)

jetzt hänge ich aber an:
2007-09-12 09:43:50 ERROR Zope Could not import Products.PloneGlossary
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 "/var/lib/zope2.9/instance/plone-site/Products/PloneGlossary/__init__.py", line 22, in ?
from Products.PloneGlossary.types import *
File "/var/lib/zope2.9/instance/plone-site/Products/PloneGlossary/types/__init__.py", line 8, in ?
import PloneGlossary
File "/var/lib/zope2.9/instance/plone-site/Products/PloneGlossary/types/PloneGlossary.py", line 28, in ?
from Products.PloneGlossary.PloneGlossaryCatalog import PloneGlossaryCatalog, manage_addPloneGlossaryCatalog
File "/var/lib/zope2.9/instance/plone-site/Products/PloneGlossary/PloneGlossaryCatalog.py", line 24, in ?
from Products.Archetypes.ReferenceEngine import ReferenceResolver
ImportError: cannot import name ReferenceResolver
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
Ich komem bisher mit rtfm nicht weiter :(
chri7
User
Beiträge: 13
Registriert: Donnerstag 6. September 2007, 07:05
Wohnort: Speyer

Hi Gerold,

du hattest Recht ... hatte deinen Post noch nicht gelesen, aber das Problem mit CalendarX ist gelöst ... Versionsnummer musste weg im Ordnernamen - hat mir INSTALL veraten ...

Jetzt hänge ich an PloneGlossary und da komme ich so schnell wohl nciht weiter :(
007-09-12 09:43:50 ERROR Zope Could not import Products.PloneGlossary
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 "/var/lib/zope2.9/instance/plone-site/Products/PloneGlossary/__init__.py", line 22, in ?
from Products.PloneGlossary.types import *
File "/var/lib/zope2.9/instance/plone-site/Products/PloneGlossary/types/__init__.py", line 8, in ?
import PloneGlossary
File "/var/lib/zope2.9/instance/plone-site/Products/PloneGlossary/types/PloneGlossary.py", line 28, in ?
from Products.PloneGlossary.PloneGlossaryCatalog import PloneGlossaryCatalog, manage_addPloneGlossaryCatalog
File "/var/lib/zope2.9/instance/plone-site/Products/PloneGlossary/PloneGlossaryCatalog.py", line 24, in ?
from Products.Archetypes.ReferenceEngine import ReferenceResolver
ImportError: cannot import name ReferenceResolver
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
Die Dependencies sind 0, die REquirements alle erfüllt (PYthon und Zope eben) ... ich weiss nciht was ich hier tun kann - irgendwelche Tips ?
Benutzeravatar
gerold
Python-Forum Veteran
Beiträge: 5555
Registriert: Samstag 28. Februar 2004, 22:04
Wohnort: Oberhofen im Inntal (Tirol)
Kontaktdaten:

chri7 hat geschrieben:File "/var/lib/zope2.9/instance/plone-site/Products/PloneGlossary/PloneGlossaryCatalog.py", line 24, in ?
from Products.Archetypes.ReferenceEngine import ReferenceResolver
ImportError: cannot import name ReferenceResolver
Hallo chri7!

In PloneGlossaryCatalog.py --> Line 24 wird ReferenceResolver importiert. Jetzt gilt es heraus zu finden, ob es diesesn ReferenceResolver überhaupt (noch) gibt. Also nach "ReferenceEngine" und "ReferenceResolver" suchen.
Wenn nicht alles am Platz ist, eine ältere Archetypes-Version oder ein älteres Plone herunterladen und dort nachsehen ob es diese Objekte in diesen Versionen gibt. Wenn Ja, dann hast du Pech. Dann scheint PloneGlossary nicht mit deiner "neueren" Pythonversion zu funktionieren.
Wenn alles am Platz ist, wo es sein sollte, dann ist der häufigste Grund dafür, dass etwas nicht funktioniert --> Der Benutzer unter dem die Zope-Instanz ausgeführt wird, hat nicht alle Dateirechte die er benötigt.

mfg
Gerold
:-)
http://halvar.at | Kleiner Bascom AVR Kurs
Wissen hat eine wunderbare Eigenschaft: Es verdoppelt sich, wenn man es teilt.
chri7
User
Beiträge: 13
Registriert: Donnerstag 6. September 2007, 07:05
Wohnort: Speyer

Danke für den Tip ...

sieht wohl schlecht aus ...
root@u704plone:/var/lib/zope2.9/instance/plone-site/Products/PloneGlossary# find / * | grep ReferenceEngine
/var/lib/zope2.9/instance/plone-site/Products/Archetypes/ReferenceEngine.py
/var/lib/zope2.9/instance/plone-site/Products/Archetypes/ReferenceEngine.pyc
/usr/share/zope/Products/Archetypes:1.3/ReferenceEngine.py
root@u704plone:/var/lib/zope2.9/instance/plone-site/Products/PloneGlossary# cat /var/lib/zope2.9/instance/plone-site/Products/Archetypes/ReferenceEngine.py | grep ReferenceResolver
EDIT:
Was würd ich dafür geben dieses Plone/Zope Zeuch zu durchschauen, bin in der 2ten Einarbeitungswoche (naja, der Kollege ders normal betreut ist nicht da für Nachfragen) und bekomm nichtmal die Produktivmaschine mit allen Products abgebildet *heul*

So ... back to Topic:
ein cat /usr/share/zope/Products/Archetypes\:1.3/version.txt sagt mir: 1.4.1-final *wtf*?!?

Auf dem Produktivserver sagt der gleiche Command - garnichts, denn die symlinks zeigen dort ins leere *wtf* ....
lrwxrwxrwx 1 root root 51 Jan 12 2007 version.txt -> /usr/share/zope/Products/Archetypes:1.3/version.txt
root@snc0000024:/usr/share/zope/Products# cd /usr/share/zope/Products/
root@snc0000024:/usr/share/zope/Products# ls
root@snc0000024:/usr/share/zope/Products#
Antworten