unreleased or undetectable version of Zope — can't view ZMI — AttributeError: 'module' object has no attribute 'VersionBase'

classic Classic list List threaded Threaded
6 messages Options
Graham Perrin Graham Perrin
Reply | Threaded
Open this post in threaded view
|

unreleased or undetectable version of Zope — can't view ZMI — AttributeError: 'module' object has no attribute 'VersionBase'

Following changes to my buildout .cfg file, and buildout commands, I can't view ZMI.

At /plone_control_panel for one of the sites I see:

* Plone 3.3.4
* CMF 2.1.2
* Zope (unreleased version, python 2.4.5, darwin)
* Python 2.4.5 (#1, Feb 15 2009, 12:20:54) [GCC 4.0.1 (Apple Inc. build 5488)]
* PIL 1.1.6

Running client2 (of the ZEO cluster) in foreground, I see:

2010-01-21 13:40:12 INFO Plone Dependency  
Unable to detect Zope version. Please make sure you have Zope 2.10.4 or newer installed.

http://omnium.freeman-centre.ac.uk:5556/manage_main
Traceback (innermost last):
  Module ZPublisher.Publish, line 119, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module Products.PDBDebugMode.runcall, line 70, in pdb_runcall
  Module ZPublisher.Publish, line 42, in call_object
  Module Shared.DC.Scripts.Bindings, line 313, in __call__
  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
  Module App.special_dtml, line 178, in _exec
  Module Shared.DC.Scripts.Bindings, line 327, in __render_with_namespace__
  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
  Module App.special_dtml, line 178, in _exec
  Module DocumentTemplate.DT_With, line 76, in render
  Module App.PersistentExtra, line 57, in locked_in_version
AttributeError: 'module' object has no attribute 'VersionBase'
> /Applications/Plone/Zope-2.10.11-final-py2.4/lib/python/App/PersistentExtra.py(57)locked_in_version()
-> return (oid
(Pdb) a
self = <Application at >
(Pdb) c

How might I have ended up with an unreleased, or undetectable version of Zope?

Is something horribly wrong with the [zope2] section of my .cfg?

[zope2]
recipe = plone.recipe.zope2install
url = ${versions:zope2-url}
fake-zope-eggs = true
# <http://n2.nabble.com/-tp1462235p1509921.html>
additional-fake-eggs =
    ZConfig
    ZODB3
    pytz
skip-fake-eggs = 
    zope.testing
    zope.component
    zope.i18n

At the root of my installation I find two versions of Zope:
omnium:zeocluster centrimadmin$ ls -l ..
total 0
drwxr-xr-x   6 root  admin  204 Feb 15  2009 Python-2.4
drwxr-xr-x  16 root  wheel  544 Jan 21 09:03 Zope-2.10.11-final-py2.4
drwxr-xr-x  17 root  wheel  578 Feb 15  2009 Zope-2.10.7-final-py2.4
drwxr-xr-x   4 root  wheel  136 Dec 15  2008 buildout-cache
drwxr-xr-x  17 root  admin  578 Jan 21 00:38 zeocluster

Comparable errors reported by Dale DeWitt in September <http://n2.nabble.com/-tp3677065p3677065.html> and November 2009 <http://n2.nabble.com/-tp4044570p4044570.html>. Dale and I both use plone.app.blob with Plone 3.3.x.

TIA for any advice
Graham

Postscripts

At <http://dist.plone.org/release/3.3.4/versions.cfg
# Zope
zope2-url = http://www.zope.org/Products/Zope/2.10.11/Zope-2.10.11-final.tgz

Detailed record of
sudo bin/client2 fg
AttributeError.txt
llcolombo llcolombo
Reply | Threaded
Open this post in threaded view
|

Re: [Setup] unreleased or undetectable version of Zope — can't view ZMI — AttributeError: 'module' object has no attribute 'VersionBase'

Something like this is happening to me as well, on windows platform (tried both upgrading buildout and running the windows installer).
I upgraded an existing installation but I still get the previous zope version showing on control panel.
I installed Plone 3.3.4 on a fresh box, and I get that zope version is unreleased...

:-(

Lucia

On gio, 2010-01-21 at 06:21 -0800, Graham Perrin wrote:
Following changes to my buildout .cfg file, and buildout commands, I can't
view ZMI. 

At /plone_control_panel for one of the sites I see:

* Plone 3.3.4
* CMF 2.1.2
* Zope (unreleased version, python 2.4.5, darwin)
* Python 2.4.5 (#1, Feb 15 2009, 12:20:54) [GCC 4.0.1 (Apple Inc. build
5488)]
* PIL 1.1.6

Running client2 (of the ZEO cluster) in foreground, I see: 

2010-01-21 13:40:12 INFO Plone Dependency  
Unable to detect Zope version. Please make sure you have Zope 2.10.4 or
newer installed.

http://omnium.freeman-centre.ac.uk:5556/manage_main
Traceback (innermost last):
  Module ZPublisher.Publish, line 119, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module Products.PDBDebugMode.runcall, line 70, in pdb_runcall
  Module ZPublisher.Publish, line 42, in call_object
  Module Shared.DC.Scripts.Bindings, line 313, in __call__
  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
  Module App.special_dtml, line 178, in _exec
  Module Shared.DC.Scripts.Bindings, line 327, in __render_with_namespace__
  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
  Module App.special_dtml, line 178, in _exec
  Module DocumentTemplate.DT_With, line 76, in render
  Module App.PersistentExtra, line 57, in locked_in_version
AttributeError: 'module' object has no attribute 'VersionBase'
> /Applications/Plone/Zope-2.10.11-final-py2.4/lib/python/App/PersistentExtra.py(57)locked_in_version()
-> return (oid
(Pdb) a
self = <Application at >
(Pdb) c

How might I have ended up with an unreleased, or undetectable version of
Zope? 

Is something horribly wrong with the [zope2] section of my .cfg?

[zope2]
recipe = plone.recipe.zope2install
url = ${versions:zope2-url}
fake-zope-eggs = true
# <http://n2.nabble.com/-tp1462235p1509921.html>
additional-fake-eggs =
    ZConfig
    ZODB3
    pytz
skip-fake-eggs = 
    zope.testing
    zope.component
    zope.i18n

At the root of my installation I find two versions of Zope: 
omnium:zeocluster centrimadmin$ ls -l ..
total 0
drwxr-xr-x   6 root  admin  204 Feb 15  2009 Python-2.4
drwxr-xr-x  16 root  wheel  544 Jan 21 09:03 Zope-2.10.11-final-py2.4
drwxr-xr-x  17 root  wheel  578 Feb 15  2009 Zope-2.10.7-final-py2.4
drwxr-xr-x   4 root  wheel  136 Dec 15  2008 buildout-cache
drwxr-xr-x  17 root  admin  578 Jan 21 00:38 zeocluster

Comparable errors reported by Dale DeWitt in September
<http://n2.nabble.com/-tp3677065p3677065.html> and November 2009
<http://n2.nabble.com/-tp4044570p4044570.html>. Dale and I both use
plone.app.blob with Plone 3.3.x. 

TIA for any advice
Graham

Lucia Colombo
mobile: +39-347-4448729
email: [hidden email]
          [hidden email]



----
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it

Sponsor:
Apri subito Conto Arancio e ricevi 50 Euro di buoni acquisti da spendere presso Media World!
Clicca qui



_______________________________________________
Setup mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/setup

llcolombo llcolombo
Reply | Threaded
Open this post in threaded view
|

Re: [Setup] unreleased or undetectable version of Zope — can't view ZMI — AttributeError: 'module' object has no attribute 'VersionBase'

After some investogation my feeling is that the file version.txt in the zope2/lib/python/Zope2 directory is not generated by the install.
I had the old file in the previous install, that's why I got the wrong version when upgrading. When I run a fresh install I got it "unreleased".

There was an old bug, can it be a regression?
http://bugs.launchpad.net/zope2/+bug/143803

Lucia
On gio, 2010-01-21 at 15:46 +0100, llcolombo wrote:
Something like this is happening to me as well, on windows platform (tried both upgrading buildout and running the windows installer).
I upgraded an existing installation but I still get the previous zope version showing on control panel.
I installed Plone 3.3.4 on a fresh box, and I get that zope version is unreleased...

:-(

Lucia

On gio, 2010-01-21 at 06:21 -0800, Graham Perrin wrote:
Following changes to my buildout .cfg file, and buildout commands, I can't
view ZMI. 

At /plone_control_panel for one of the sites I see:

* Plone 3.3.4
* CMF 2.1.2
* Zope (unreleased version, python 2.4.5, darwin)
* Python 2.4.5 (#1, Feb 15 2009, 12:20:54) [GCC 4.0.1 (Apple Inc. build
5488)]
* PIL 1.1.6

Running client2 (of the ZEO cluster) in foreground, I see: 

2010-01-21 13:40:12 INFO Plone Dependency  
Unable to detect Zope version. Please make sure you have Zope 2.10.4 or
newer installed.

http://omnium.freeman-centre.ac.uk:5556/manage_main
Traceback (innermost last):
  Module ZPublisher.Publish, line 119, in publish
  Module ZPublisher.mapply, line 88, in mapply
  Module Products.PDBDebugMode.runcall, line 70, in pdb_runcall
  Module ZPublisher.Publish, line 42, in call_object
  Module Shared.DC.Scripts.Bindings, line 313, in __call__
  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
  Module App.special_dtml, line 178, in _exec
  Module Shared.DC.Scripts.Bindings, line 327, in __render_with_namespace__
  Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
  Module App.special_dtml, line 178, in _exec
  Module DocumentTemplate.DT_With, line 76, in render
  Module App.PersistentExtra, line 57, in locked_in_version
AttributeError: 'module' object has no attribute 'VersionBase'
> /Applications/Plone/Zope-2.10.11-final-py2.4/lib/python/App/PersistentExtra.py(57)locked_in_version()
-> return (oid
(Pdb) a
self = <Application at >
(Pdb) c

How might I have ended up with an unreleased, or undetectable version of
Zope? 

Is something horribly wrong with the [zope2] section of my .cfg?

[zope2]
recipe = plone.recipe.zope2install
url = ${versions:zope2-url}
fake-zope-eggs = true
# <http://n2.nabble.com/-tp1462235p1509921.html>
additional-fake-eggs =
    ZConfig
    ZODB3
    pytz
skip-fake-eggs = 
    zope.testing
    zope.component
    zope.i18n

At the root of my installation I find two versions of Zope: 
omnium:zeocluster centrimadmin$ ls -l ..
total 0
drwxr-xr-x   6 root  admin  204 Feb 15  2009 Python-2.4
drwxr-xr-x  16 root  wheel  544 Jan 21 09:03 Zope-2.10.11-final-py2.4
drwxr-xr-x  17 root  wheel  578 Feb 15  2009 Zope-2.10.7-final-py2.4
drwxr-xr-x   4 root  wheel  136 Dec 15  2008 buildout-cache
drwxr-xr-x  17 root  admin  578 Jan 21 00:38 zeocluster

Comparable errors reported by Dale DeWitt in September
<http://n2.nabble.com/-tp3677065p3677065.html> and November 2009
<http://n2.nabble.com/-tp4044570p4044570.html>. Dale and I both use
plone.app.blob with Plone 3.3.x. 

TIA for any advice
Graham

Lucia Colombo
mobile: +39-347-4448729
email: [hidden email]
          [hidden email]





----
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it

Sponsor:
Apri subito Conto Arancio e ricevi 50 Euro di buoni acquisti da spendere presso Media World!
Clicca qui



_______________________________________________
Setup mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/setup

Lucia Colombo
mobile: +39-347-4448729
email: [hidden email]
          [hidden email]



----
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu' IMAP, POP3 e SMTP autenticato? GRATIS solo con Email.it

Sponsor:
Apri Conto Arancio entro il 28 febbraio 2010 e ricevi 50 Euro da spendere presso Media World. Aprilo adesso
Clicca qui



_______________________________________________
Setup mailing list
[hidden email]
http://lists.plone.org/mailman/listinfo/setup

Graham Perrin Graham Perrin
Reply | Threaded
Open this post in threaded view
|

unreleased or undetectable version of Zope — no version.txt at Zope-2.10.11-final-py2.4/lib/python/Zope2

llcolombo wrote
After some investogation my feeling is that the file version.txt in the
zope2/lib/python/Zope2 directory is not generated by the install.
I had the old file in the previous install, that's why I got the wrong version when upgrading. When I run a fresh install I got it "unreleased".

There was an old bug, can it be a regression?
http://bugs.launchpad.net/zope2/+bug/143803

Lucia
I don't know whether it's a regression but <https://bugs.launchpad.net/zope2/+bug/143803/comments/5> is remarkably similar. Well spotted!

In my case,

omnium:zeocluster centrimadmin$ ls -l /Applications/Plone/Zope-2.10.7-final-py2.4/lib/python/Zope2
total 40
drwxr-xr-x   8 root  wheel   272 Feb 15  2009 App
-rw-r--r--   1 root  wheel   750 Oct 22  2008 ClassFactory.py
-rw-r--r--   1 root  wheel   287 Feb 15  2009 ClassFactory.pyc
drwxr-xr-x  21 root  wheel   714 Feb 15  2009 Startup
-rw-r--r--   1 root  wheel  3041 Oct 22  2008 __init__.py
-rw-r--r--   1 root  wheel  1657 Feb 15  2009 __init__.pyc
-rw-r--r--   1 root  wheel    17 Oct 25  2008 version.txt
omnium:zeocluster centrimadmin$ clear




omnium:zeocluster centrimadmin$ ls -l /Applications/Plone/Zope-2.10.11-final-py2.4/lib/python/Zope2
total 32
drwxr-xr-x   8 root  wheel   272 Jan 21 09:03 App
-rw-r--r--   1 root  wheel   750 Nov 18  2005 ClassFactory.py
-rw-r--r--   1 root  wheel   288 Jan 21 09:03 ClassFactory.pyc
drwxr-xr-x  21 root  wheel   714 Jan 21 09:03 Startup
-rw-r--r--   1 root  wheel  3041 Nov 18  2005 __init__.py
-rw-r--r--   1 root  wheel  1658 Jan 21 09:03 __init__.pyc
omnium:zeocluster centrimadmin$ clear




omnium:zeocluster centrimadmin$ cat /Applications/Plone/Zope-2.10.7-final-py2.4/lib/python/Zope2/version.txt
Zope 2.10.7-finalomnium:zeocluster centrimadmin$ clear




omnium:zeocluster centrimadmin$ sudo nano /Applications/Plone/Zope-2.10.11-final-py2.4/lib/python/Zope2/version.txt
Password:
omnium:zeocluster centrimadmin$ cat /Applications/Plone/Zope-2.10.11-final-py2.4/lib/python/Zope2/version.txt
Zope 2.10.11-final
omnium:zeocluster centrimadmin$ 

However: creating that version.txt file has not worked around the problem for me.

I also tried reverting to 2.10.17 but another error recurred.
ImportError: No module named Mount

<http://www.zope.org/Products/Zope/2.10.11/CHANGES.txt> shows restructuring in 2.10.9 so next I'll try:

[zope2]
recipe = plone.recipe.zope2install
# <http://n2.nabble.com/-tp4433852p4435019.html>
# url = http://www.zope.org/Products/Zope/2.10.7/Zope-2.10.7-final.tgz
url = http://www.zope.org/Products/Zope/2.10.9/Zope-2.10.9-final.tgz
# url = ${versions:zope2-url}
fake-zope-eggs = true
# <http://n2.nabble.com/-tp1462235p1509921.html>
additional-fake-eggs =
    ZConfig
    ZODB3
    pytz
skip-fake-eggs = 

----

<http://n2.nabble.com/-tp1462235p4432611.html> reminds me that earlier today I edited an outdated line in my buildout .cfg and <http://pastebin.ca/1760656> suggests that the first appearance in a ZEO client event.log was this morning,
2010-01-21T09:11:01



For the record, here's a list of my recently modified eggs:
omnium:zeocluster centrimadmin$ ls -lt ../buildout-cache/eggs/
total 0
drwxr-xr-x    4 root  wheel   136 Jan 21 14:58 zope.component-3.8.0-py2.4.egg
drwxr-xr-x    4 root  wheel   136 Jan 21 14:45 collective.uploadify-0.9-py2.4.egg
drwxr-xr-x    4 root  wheel   136 Jan 21 01:03 collective.js.showmore-1.0a3-py2.4.egg
drwxr-xr-x    4 root  wheel   136 Jan 21 00:58 hachoir_parser-1.3-py2.4.egg
drwxr-xr-x    4 root  wheel   136 Jan 21 00:58 hachoir_metadata-1.3-py2.4.egg
drwxr-xr-x    4 root  wheel   136 Jan 21 00:58 hachoir_core-1.3.1-py2.4.egg
drwxr-xr-x    4 root  wheel   136 Jan 21 00:58 plone.reload-1.3-py2.4.egg
drwxr-xr-x    4 root  wheel   136 Jan 21 00:57 plone.recipe.varnish-1.0.2-py2.4.egg
drwxr-xr-x    4 root  wheel   136 Jan 21 00:57 py-1.2.0-py2.4.egg
drwxr-xr-x   16 root  wheel   544 Jan 21 00:34 PILwoTk-1.1.6.4-py2.4-macosx-10.3-ppc.egg
…
Graham Perrin Graham Perrin
Reply | Threaded
Open this post in threaded view
|

unreleased or undetectable version of Zope — ZMI regained following pins of ZODB3 and Zope

In reply to this post by llcolombo
Big thanks to MatthewWilkes in <a href="irc://irc.freenode.net/#plone">irc://irc.freenode.net/#plone I got my ZMI back by pinning,

ZODB3 = 3.8.3

I'm also, without pinning, on Zope 2.10.9 (less than the 2.10.11 specified at
<http://dist.plone.org/release/3.3.4/versions.cfg>) — but not rushing to step up, again, to 2.10.11 unless people can (a) describe fantastically good reasons to do so, and (b) reassure me that the version.txt issue is negligible.

There remain 'Application Duplicate Product name' warnings e.g. <http://pastebin.ca/1760734> drawing attention to another Zope,

/Applications/Plone/Python-2.4/lib/python2.4/site-packages/Zope2-2.12.2-py2.4-macosx-10.3-ppc.egg

and the plan is to
buildout -vvvvv
(until today, I didn't realise that more than three v's were applicable!) to discover what's pulling that 2.12.2 into the cauldron.

Big sigh of relief. And an interesting learning curve!
Graham Perrin Graham Perrin
Reply | Threaded
Open this post in threaded view
|

Trying to discover how Zope 2.1.12 was installed in a Plone 3.3.4 environment (was: unreleased or undetectable version of Zope)

Graham Perrin wrote
/Applications/Plone/Python-2.4/lib/python2.4/site-packages/Zope2-2.12.2-py2.4-macosx-10.3-ppc.egg

and the plan is to
buildout -vvvvv
… to discover what's pulling that 2.12.2 into the cauldron.
I did that, but it did not reveal how Zope 2.1.12 is/was gained.