Plone 3.2.1

  • Habe jetzt alles ausgetauscht und noch mal buildout durchlaufen lassen. Dann kam die Meldung, dass mir .Net Framework SDK fehlt. Also auch noch installiert. Wieder buildout laufen lassen, was ewig gedauert hat.

    Nach vielen Installationen gabs dann auf einmal viele Fehlermeldungen...


    SyntaxError: 'return' outside function
    File "c:\plone\bin\eggs\tmpykwvks\products.atcontenttypes-1.3.0-py2.4.e
    ucts\ATContentTypes\skins\ATContentTypes\formatHistoryDiff.py", line 24
    return printed
    SyntaxError: 'return' outside function
    File "c:\plone\bin\eggs\tmpykwvks\products.atcontenttypes-1.3.0-py2.4.e
    ucts\ATContentTypes\skins\ATContentTypes\getValidCriteriaForIndex.py", li
    return context.allowedCriteriaForField(index, display_list=True)
    SyntaxError: 'return' outside function
    File "c:\plone\bin\eggs\tmpykwvks\products.atcontenttypes-1.3.0-py2.4.e
    ucts\ATContentTypes\skins\ATContentTypes\getXMLSelectVocab.py", line 24
    return "<div>%s</div>" % result_string.encode(site_encoding)
    SyntaxError: 'return' outside function
    File "c:\plone\bin\eggs\tmpykwvks\products.atcontenttypes-1.3.0-py2.4.e
    ucts\ATContentTypes\skins\ATContentTypes\isATCTbased.py", line 14
    return iface.objectImplements(obj,
    SyntaxError: 'return' outside function
    File "c:\plone\bin\eggs\tmpykwvks\products.atcontenttypes-1.3.0-py2.4.e
    ucts\ATContentTypes\skins\ATContentTypes\unittestGetTitleOf.py", line 10
    return "%s,%s,%s,%s" % (context.title_or_id(), context.aq_parent.titl
    (),\
    SyntaxError: 'return' outside function
    Installing Products.ATContentTypes 1.3.0
    Caused installation of a distribution:
    products.atcontenttypes 1.3.0
    with a different project name.
    Got products.atcontenttypes 1.3.0.
    Getting distribution for 'Products.ATReferenceBrowserWidget'.
    File "build\bdist.win32\egg\Products\ATReferenceBrowserWidget\skins\ATR
    eBrowserWidget\referencebrowser_filterBreadCrumbs.py", line 15
    return [c
    SyntaxError: 'return' outside function
    File 'build\bdist.win32\egg\Products\ATReferenceBrowserWidget\skins\ATR
    eBrowserWidget\referencebrowser_queryCatalog.py', line 81
    return results
    SyntaxError: 'return' outside function
    File 'build\bdist.win32\egg\Products\ATReferenceBrowserWidget\skins\ATR
    eBrowserWidget\referencebrowser_startupDirectory.py', line 105
    return filterPortalFactory(dopath)
    SyntaxError: 'return' outside function
    File 'c:\plone\bin\eggs\tmpswu_5x\products.atreferencebrowserwidget-2.0
    4.egg\Products\ATReferenceBrowserWidget\skins\ATReferenceBrowserWidget\re
    browser_filterBreadCrumbs.py', line 15
    return [c
    SyntaxError: 'return' outside function
    File 'c:\plone\bin\eggs\tmpswu_5x\products.atreferencebrowserwidget-2.0
    4.egg\Products\ATReferenceBrowserWidget\skins\ATReferenceBrowserWidget\re
    browser_queryCatalog.py', line 81
    return results
    SyntaxError: 'return' outside function
    File 'c:\plone\bin\eggs\tmpswu_5x\products.atreferencebrowserwidget-2.0
    4.egg\Products\ATReferenceBrowserWidget\skins\ATReferenceBrowserWidget\re
    browser_startupDirectory.py', line 105
    return filterPortalFactory(dopath)
    SyntaxError: 'return' outside function
    Installing Products.ATReferenceBrowserWidget 2.0.3
    Caused installation of a distribution:
    products.atreferencebrowserwidget 2.0.3
    with a different project name.
    Got products.atreferencebrowserwidget 2.0.3.
    Getting distribution for 'Products.Archetypes'.
    File 'build\bdist.win32\egg\Products\Archetypes\skins\archetypes\at_dow
    y', line 13
    return field.download(context)
    SyntaxError: 'return' outside function
    File 'build\bdist.win32\egg\Products\Archetypes\skins\archetypes\checkS
    .py', line 29
    return 1
    SyntaxError: 'return' outside function
    File 'build\bdist.win32\egg\Products\Archetypes\skins\archetypes\collec
    ds.py', line 26
    return result
    SyntaxError: 'return' outside function
    File 'build\bdist.win32\egg\Products\Archetypes\skins\archetypes\conten
    impl.py', line 54
    return state.set(status='next_schemata',
    SyntaxError: 'return' outside function
    File 'build\bdist.win32\egg\Products\Archetypes\skins\archetypes\displa
    py', line 17
    return ', '.join([vocab.getValue(context.unicodeEncode(v),
    SyntaxError: 'return' outside function
    File 'build\bdist.win32\egg\Products\Archetypes\skins\archetypes\getBes
    y', line 13
    return context.getIcon()
    SyntaxError: 'return' outside function
    File 'build\bdist.win32\egg\Products\Archetypes\skins\archetypes\getCha
    ', line 15
    return site_properties.getProperty('default_charset')
    SyntaxError: 'return' outside function
    File 'build\bdist.win32\egg\Products\Archetypes\skins\archetypes\getIma
    y', line 10
    return context.getWrappedField (fieldName).tag (context, scale)
    SyntaxError: 'return' outside function
    File 'build\bdist.win32\egg\Products\Archetypes\skins\archetypes\getUni
    etAttr.py', line 22
    return order
    SyntaxError: 'return' outside function
    File 'build\bdist.win32\egg\Products\Archetypes\skins\archetypes\lookup
    ', line 13
    return mimetypes[0].name()
    SyntaxError: 'return' outside function
    File "build\bdist.win32\egg\Products\Archetypes\skins\archetypes\remove
    on_mark.py", line 23
    return
    SyntaxError: 'return' outside function
    File "build\bdist.win32\egg\Products\Archetypes\skins\archetypes\sessio
    re_value.py", line 21
    return default
    SyntaxError: 'return' outside function
    File "build\bdist.win32\egg\Products\Archetypes\skins\archetypes\unicod
    .py", line 16
    return encoded
    SyntaxError: 'return' outside function
    File "build\bdist.win32\egg\Products\Archetypes\skins\archetypes\unicod
    .py", line 11
    return 0
    SyntaxError: 'return' outside function
    File "c:\plone\bin\eggs\tmpyerear\products.archetypes-1.5.10-py2.4.egg\
    s\Archetypes\skins\archetypes\at_download.py", line 13
    return field.download(context)
    SyntaxError: 'return' outside function
    File "c:\plone\bin\eggs\tmpyerear\products.archetypes-1.5.10-py2.4.egg\
    s\Archetypes\skins\archetypes\checkSelected.py", line 29
    return 1
    SyntaxError: 'return' outside function
    File "c:\plone\bin\eggs\tmpyerear\products.archetypes-1.5.10-py2.4.egg\
    s\Archetypes\skins\archetypes\collectKeywords.py", line 26
    return result
    SyntaxError: 'return' outside function
    File "c:\plone\bin\eggs\tmpyerear\products.archetypes-1.5.10-py2.4.egg\
    s\Archetypes\skins\archetypes\content_edit_impl.py", line 54
    return state.set(status='next_schemata',
    SyntaxError: 'return' outside function
    File "c:\plone\bin\eggs\tmpyerear\products.archetypes-1.5.10-py2.4.egg\
    s\Archetypes\skins\archetypes\displayValue.py", line 17
    return ', '.join([vocab.getValue(context.unicodeEncode(v),
    SyntaxError: 'return' outside function
    File 'c:\plone\bin\eggs\tmpyerear\products.archetypes-1.5.10-py2.4.egg\
    s\Archetypes\skins\archetypes\getBestIcon.py', line 13
    return context.getIcon()
    SyntaxError: 'return' outside function
    File 'c:\plone\bin\eggs\tmpyerear\products.archetypes-1.5.10-py2.4.egg\
    s\Archetypes\skins\archetypes\getCharset.py', line 15
    return site_properties.getProperty('default_charset')
    SyntaxError: 'return' outside function
    File 'c:\plone\bin\eggs\tmpyerear\products.archetypes-1.5.10-py2.4.egg\
    s\Archetypes\skins\archetypes\getImageTag.py', line 10
    return context.getWrappedField (fieldName).tag (context, scale)
    SyntaxError: 'return' outside function
    File 'c:\plone\bin\eggs\tmpyerear\products.archetypes-1.5.10-py2.4.egg\
    s\Archetypes\skins\archetypes\getUniqueWidgetAttr.py', line 22
    return order
    SyntaxError: 'return' outside function
    File 'c:\plone\bin\eggs\tmpyerear\products.archetypes-1.5.10-py2.4.egg\
    s\Archetypes\skins\archetypes\lookupMime.py', line 13
    return mimetypes[0].name()
    SyntaxError: 'return' outside function
    File "c:\plone\bin\eggs\tmpyerear\products.archetypes-1.5.10-py2.4.egg\
    s\Archetypes\skins\archetypes\remove_creation_mark.py", line 23
    return
    SyntaxError: 'return' outside function
    File "c:\plone\bin\eggs\tmpyerear\products.archetypes-1.5.10-py2.4.egg\
    s\Archetypes\skins\archetypes\session_restore_value.py", line 21
    return default
    SyntaxError: 'return' outside function
    File "c:\plone\bin\eggs\tmpyerear\products.archetypes-1.5.10-py2.4.egg\
    s\Archetypes\skins\archetypes\unicodeEncode.py", line 16
    return encoded
    SyntaxError: 'return' outside function
    File "c:\plone\bin\eggs\tmpyerear\products.archetypes-1.5.10-py2.4.egg\
    s\Archetypes\skins\archetypes\unicodeTestIn.py", line 11
    return 0
    SyntaxError: 'return' outside function
    Installing Products.Archetypes 1.5.10
    Caused installation of a distribution:
    products.archetypes 1.5.10
    with a different project name.
    Got products.archetypes 1.5.10.
    Getting distribution for 'Products.AdvancedQuery'.
    Installing Products.AdvancedQuery 3.0
    Caused installation of a distribution:
    products.advancedquery 3.0
    with a different project name.
    Got products.advancedquery 3.0.
    Getting distribution for 'Products.kupu'.
    File "build\bdist.win32\egg\Products\kupu\plone\kupu_plone_layer\conten
    pu.py", line 17
    return False
    SyntaxError: 'return' outside function
    File "build\bdist.win32\egg\Products\kupu\plone\kupu_plone_layer\conver
    tForKupu.py", line 23
    return str(content)
    SyntaxError: 'return' outside function
    File "build\bdist.win32\egg\Products\kupu\plone\kupu_plone_layer\kupuUp
    ge.py", line 75
    return Error("Creation of '%s' content is not allowed in %s", typenam
    ext.title_or_id())
    SyntaxError: 'return' outside function
    File "build\bdist.win32\egg\Products\kupu\plone\kupu_plone_layer\resolv
    ", line 29
    return response.notFoundError('''The link you followed appears to be
    '')
    SyntaxError: 'return' outside function
    File "build\bdist.win32\egg\Products\kupu\plone\kupu_plone_layer\sample
    ustomisation-policy.py", line 193
    return printed
    SyntaxError: 'return' outside function
    File "c:\plone\bin\eggs\tmps7ugbt\products.kupu-1.4.12.1-py2.4.egg\Prod
    pu\plone\kupu_plone_layer\contentUsesKupu.py", line 17
    return False
    SyntaxError: 'return' outside function
    File "c:\plone\bin\eggs\tmps7ugbt\products.kupu-1.4.12.1-py2.4.egg\Prod
    pu\plone\kupu_plone_layer\convertContentForKupu.py", line 23
    return str(content)
    SyntaxError: 'return' outside function
    File "c:\plone\bin\eggs\tmps7ugbt\products.kupu-1.4.12.1-py2.4.egg\Prod
    pu\plone\kupu_plone_layer\kupuUploadImage.py", line 75
    return Error("Creation of '%s' content is not allowed in %s", typenam
    ext.title_or_id())
    SyntaxError: 'return' outside function
    File "c:\plone\bin\eggs\tmps7ugbt\products.kupu-1.4.12.1-py2.4.egg\Prod
    pu\plone\kupu_plone_layer\resolveuid.py", line 29
    return response.notFoundError('''The link you followed appears to be
    '')
    SyntaxError: 'return' outside function
    File "c:\plone\bin\eggs\tmps7ugbt\products.kupu-1.4.12.1-py2.4.egg\Prod
    pu\plone\kupu_plone_layer\sample-kupu-customisation-policy.py", line 193
    return printed
    SyntaxError: 'return' outside function
    Installing Products.kupu 1.4.12.1
    Caused installation of a distribution:
    products.kupu 1.4.12.1
    with a different project name.
    Got products.kupu 1.4.12.1.
    Getting distribution for 'plone.keyring>1.0'.
    Got plone.keyring 1.2.
    Getting distribution for 'python-openid>=2.2.1,<2.3dev'.
    warning: no files found matching 'README' under directory 'examples'
    warning: no files found matching 'discover' under directory 'examples'
    warning: no files found matching 'dhpriv' under directory 'openid\test'
    warning: no files found matching 'n2b64' under directory 'openid\test'
    zip_safe flag not set; analyzing archive contents...
    Got python-openid 2.2.1.
    Getting distribution for 'FeedParser'.
    Got feedparser 4.1.
    Getting distribution for 'Products.ZopeVersionControl'.
    Installing Products.ZopeVersionControl 1.0a1
    Caused installation of a distribution:
    products.zopeversioncontrol 1.0a1
    with a different project name.
    Got products.zopeversioncontrol 1.0a1.
    Getting distribution for 'Products.CMFTestCase'.
    Installing Products.CMFTestCase 0.9.8b4
    Caused installation of a distribution:
    products.cmftestcase 0.9.8b4
    with a different project name.
    Got products.cmftestcase 0.9.8b4.
    Getting distribution for 'Products.validation'.
    Installing Products.validation 1.6.1
    Caused installation of a distribution:
    products.validation 1.6.1
    with a different project name.
    Got products.validation 1.6.1.
    Getting distribution for 'Products.Marshall'.
    Installing Products.Marshall 1.2.0
    Caused installation of a distribution:
    products.marshall 1.2.0
    with a different project name.
    Got products.marshall 1.2.0.
    Getting distribution for 'Products.i18ntestcase'.
    Got products.i18ntestcase 1.2.
    Generated script 'C:\\Plone\\bin\\bin\\instance'.
    Generated script 'C:\\Plone\\bin\\bin\\repozo'.
    Installing zopepy.
    While:
    Installing zopepy.

    An internal error occured due to a bug in either zc.buildout or in a
    recipe being used:
    Traceback (most recent call last):
    File "c:\plone\buildout-cache\eggs\zc.buildout-1.1.1-py2.4.egg\zc\build
    ldout.py", line 1477, in main
    getattr(buildout, command)(args)
    File "c:\plone\buildout-cache\eggs\zc.buildout-1.1.1-py2.4.egg\zc\build
    ldout.py", line 462, in install
    installed_files = self[part]._call(recipe.install)
    File "c:\plone\buildout-cache\eggs\zc.buildout-1.1.1-py2.4.egg\zc\build
    ldout.py", line 1060, in _call
    return f()
    File "c:\plone\bin\eggs\zc.recipe.egg-1.2.0-py2.4.egg\zc\recipe\egg\egg
    ine 169, in install
    relative_paths=self._relative_paths,
    TypeError: scripts() got an unexpected keyword argument 'relative_paths'


    Was soll mir das jetzt sagen? Soll ich komplett aufgeben mit Plone? :(

  • Hallo, erstmal ruhe bewahren, dann zweitens einmal den frust raus lassen udn auf windows schimpfen, das beruhigt.

    Das dein Buildout nicht vollständig durchgelaufen ist ist nerfig, aber nebensächlich, denn auf zopepy kann man eigentlich verzichten, die Instanz ist da und das ist das wichtigste.

    Die vielen vielen Fehlermeldungen die du siehst, sind leider leider alt bekannt, und vollkommen uninteressant, weil das compilermeldungen zu Translations sind, also keine wirklichen fehlermeldungen. Wenn du möchtest, wirf einfach mal den zopepy teil aus dem Buildout raus und starte es nochmal, brauchst du aber prinzipiel nicht.

    Um Plone zu starten musst du eigentlich nur noch ./bin/instanz start oder fg oder install machen, such dir nach den dokus eins aus. du findest dein erstmal nacktes Zope unter http://localhost:8080/ dann in das Zope Management Interface und eine Plone Site hinzufügen und viel spass mit Plone.

    Gruss Pumukel

    Die beste Informationsquelle sind Leute, die versprochen haben, nichts weiterzuerzählen.

    Marcel Mart
    frz. Schriftsteller

  • Es wäre zu schön gewesen, wenns geklappt hätte...
    Jetzt gibts das Problem. Auch bei instance fg.

    C:\Plone\bin>instance start
    Error: error opening file C:\Plone\parts\instance\etc\zope.conf: [Errno 2] No su
    ch file or directory: 'C:\\Plone\\parts\\instance\\etc\\zope.conf'
    For help, use C:\Plone\bin\instance-script.py -h


    D.h., unter parts... gibts keine Datei mit dem Namen zope.conf? Klar, in dem Ordner parts ist ja auch gar nichts mehr. Ich sollte doch alles löschen...

    Aaaaahhh :(

  • schau doch mal nach ob du was unter parts hast, denn in dem verzeichniss wo du dein buildout gestartet hast hast du genau ein parts verzeichniss in das alles also auch ein zope reincompiliert wurde. die Absoluten Pfade koennen vielleicht falsch sein, weil du gesagt hattest du hast deine buildout.cfg und alles unter c:\Plone/bin gestartet.

    Und wie gesagt, die Probleme siehst du unter linux nie, das ist windows spezifisch, tut mir leid.

    Gruss Pumukel.

    Die beste Informationsquelle sind Leute, die versprochen haben, nichts weiterzuerzählen.

    Marcel Mart
    frz. Schriftsteller

  • Ich glaube, ich habe jetzt eine weitere große Hürde genommen. Wollte ja instance start durchlaufen lassen, was natürlich nicht ging, weil ständig Fehler auftauchten. Also, diverse Dateien installiert, andere wiederum in ihre "richtigen" Ordner verschoben und finally, juhu,
    kommt die Meldung

    C:\Plone\bin>instance start
    C:\Plone\python\python.exe C:\Plone\bin\parts\instance\bin\zopeservice.py start
    Starting service Zope_-1953172860

    C:\Plone\bin>

    Also endlich hats funktioniert. So, der nächste Schritt wäre


    du findest dein erstmal nacktes Zope unter http://localhost:8080/ dann in das Zope Management Interface und eine Plone Site hinzufügen und viel spass mit Plone.

    Gruss Pumukel

    Aber den localhost kann ich nicht aufrufen ("konnte keine Verbindung zu dem Server localhost:8080 aufbauen) :(

    Help! :)

  • das klingt so also ob der Prozess zwar gestartet aber wieder abgebrochen ist, oder das dein Rechner localhost nicht kennt.

    versuch mal ./bin/instance fg für Starten im forground
    Dann zeigt er dir alles an, und es funktioniert wenn er meldet "Zope is ready to handle request" dann solltest du über localhost:8080 oder 127.0.0.1:8080 laufen, es sei denn du hats im Buildout den http-port der instance auf einen anderen wert geändert.

    Gruss Pumukel

    Die beste Informationsquelle sind Leute, die versprochen haben, nichts weiterzuerzählen.

    Marcel Mart
    frz. Schriftsteller

  • Ja, du hattest recht. Der ist wohl vorher abgebrochen. Habe noch mal alles mit instance fg durchlaufen lassen. Da gibts natürlich wieder ein Haufen Fehler, also alles Dateien, die er nicht finden kann. Also wieder Kopierarbeit, was auch gut geholfen hat.

    Aber jetzt meckert der bei einer Datei.

    File "C:\Plone\bin\parts\zope2\lib\python\zope\proxy\__init__.py", line 21, in
    ?
    from zope.proxy._zope_proxy_proxy import *
    ImportError: No module named _zope_proxy_proxy

    Hab nach dieser Datei gesucht und gefunden (_zope_proxy_proxy.pyd) und wieder an den richtigen Platz gebracht.

    Jetzt funktionierts aber trotzdem nicht :(

  • es müsste eine Datei mit endung .py sein, nicht pyd

    was mich freut du bleibst sehr hartnaeckig dabei, viele hatten wahrscheinlich schon aufgegeben. Das es windows so schwer macht kann ich nicht verstehen. Das ist bitter. Wobei ich zugeben muss das die alten Plone Installer bei einer Plone 2.5.x Version wirklich einfach download, install, läuft waren. Ich verstehe nicht warum die Plone 3.x installer das nicht auch schaffen. Liegt wohl dadran das alles jetzt compiliert werden muss, statt binaries zu nehmen.

    Gruss Pumukel.

    Die beste Informationsquelle sind Leute, die versprochen haben, nichts weiterzuerzählen.

    Marcel Mart
    frz. Schriftsteller

  • Danke für den Link, lade mir es gerade runter. Ich berichte später...

    Noch mal zum Problem vorher: Hätte gerne eine .py-Datei aufgerufen, leider hab ich nur .pyd bzw. _zope_proxy_proxy.c

    Ist beides nicht das, was ich brauche :(

  • Hab mir die Live-CD runtergeladen. Musste erst mal mir anlesen, was überhaupt darunter versteht... hätte mir jedenfalls ganz gerne von Plone dazu eine Anleitung gewünscht.

    Hat natürlich nicht funktioniert, den Rechner über die Live-CD zu starten...hab vorher natürlich im BIOS umgestellt, dass er von CD starten soll... aber ich nehme an, dass das Runtergeladene nicht bootfähig ist. Hatte auch keine Zeit, mich noch mehr damit zu beschäftigen.

    Weil Plone & Windows ja anscheinend so eine Katastrophe ist, hab ich mir jetzt vorgenommen, irgendwann mal LINUX zu installieren, erst mal ne virtuelle Maschine und dann Linux...

    naja, ich als Geisteswissenschaftlerin in so einem Gebiet... wird wohl wieder ne Katastrophe werden, aber man kann ja nur lernen ;)

  • Gern geschehen

    Gruss Pumukel

    PS: wenn du wieder hilfe brauchst melde dich, oder besuche mal wenn möglich eine Regionale Zope User Group in deiner Nähe die helfen dir bestimmt gerne.

    Die beste Informationsquelle sind Leute, die versprochen haben, nichts weiterzuerzählen.

    Marcel Mart
    frz. Schriftsteller

    Einmal editiert, zuletzt von Pumukel (21. März 2009 um 20:23)