Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133718 - error inserting a Plone Site in zope
Summary: error inserting a Plone Site in zope
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: net-zope (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-18 13:07 UTC by davide moro
Modified: 2006-05-27 05:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description davide moro 2006-05-18 13:07:12 UTC
localhost davide # emerge --info
Portage 2.0.54-r2 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-gentoo-r7 i686)
=================================================================
System uname: 2.6.16-gentoo-r7 i686 Intel(R) Pentium(R) M processor 1.73GHz
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa arts audiofile avi berkdb bitmap-fonts bzip2 cdr cli crypt cups curl dri dvd eds emboss encode ethereal exif expat fam ffmpeg flac foomaticdb fortran gdbm gif gpm gstreamer gtk2 idn imlib isdnlog java jpeg kde lcms libg++ libwww lm_sensors mad mikmod mmx mng motif mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pcre pdflib perl png pppd python qt quicktime readline reflection scanner sdl session spell spl sse sse2 ssl tcpd tiff truetype truetype-fonts type1-fonts udev usb vorbis xine xml2 xmms xorg xv zlib linguas_it userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS, PORTDIR_OVERLAY


dev-lang/python-2.4.2
net-zope/plone-2.0.5-r2
net-zope/zope-2.8.4

When I try to insert a Plone Site from the Zope Management Interface, I get this exception traceback:
Time  	2006/05/17 22:57:37.709 GMT+2
User Name (User Id) 	zope (zope)
Request URL 	http://localhost:8080/esempi/zpt/dd/index_html
Exception Type 	TypeError
Exception Value 	unbound method pt_getContext() must be called with ZopePageTemplate instance as first argument (got nothing instead)

Traceback (innermost last):

    * Module ZPublisher.Publish, line 113, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 40, in call_object
    * Module Products.CMFCore.PortalContent, line 116, in __call__
    * Module Shared.DC.Scripts.Bindings, line 311, in __call__
    * Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
    * Module Products.CMFCore.FSPageTemplate, line 191, in _exec
    * Module Products.CMFCore.FSPageTemplate, line 124, in pt_render
    * Module Products.PageTemplates.PageTemplate, line 98, in pt_render
      <FSPageTemplate at /esempi/zpt/dd/document_view used for /esempi/zpt/dd/index_html>

TypeError: unbound method pt_getContext() must be called with ZopePageTemplate instance as first argument (got nothing instead)
Comment 1 davide moro 2006-05-18 13:31:43 UTC
(In reply to comment #0)
> localhost davide # emerge --info
> Portage 2.0.54-r2 (default-linux/x86/2005.1, gcc-3.4.5, glibc-2.3.6-r3,
> 2.6.16-gentoo-r7 i686)
> =================================================================
> System uname: 2.6.16-gentoo-r7 i686 Intel(R) Pentium(R) M processor 1.73GHz
> Gentoo Base System version 1.6.14
> ccache version 2.3 [enabled]
> dev-lang/python:     2.3.5-r2, 2.4.2
> dev-python/pycrypto: [Not Present]
> dev-util/ccache:     2.3
> dev-util/confcache:  [Not Present]
> sys-apps/sandbox:    1.2.17
> sys-devel/autoconf:  2.13, 2.59-r7
> sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
> sys-devel/binutils:  2.16.1
> sys-devel/libtool:   1.5.22
> virtual/os-headers:  2.6.11-r2
> ACCEPT_KEYWORDS="x86"
> AUTOCLEAN="yes"
> CBUILD="i686-pc-linux-gnu"
> CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
> CHOST="i686-pc-linux-gnu"
> CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
> /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
> /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
> CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
> CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
> DISTDIR="/usr/portage/distfiles"
> FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
> GENTOO_MIRRORS="http://distfiles.gentoo.org
> http://distro.ibiblio.org/pub/linux/distributions/gentoo"
> LINGUAS="it"
> MAKEOPTS="-j2"
> PKGDIR="/usr/portage/packages"
> PORTAGE_TMPDIR="/var/tmp"
> PORTDIR="/usr/portage"
> SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
> USE="x86 X acpi alsa arts audiofile avi berkdb bitmap-fonts bzip2 cdr cli crypt
> cups curl dri dvd eds emboss encode ethereal exif expat fam ffmpeg flac
> foomaticdb fortran gdbm gif gpm gstreamer gtk2 idn imlib isdnlog java jpeg kde
> lcms libg++ libwww lm_sensors mad mikmod mmx mng motif mp3 mpeg ncurses nls ogg
> oggvorbis opengl oss pam pcre pdflib perl png pppd python qt quicktime readline
> reflection scanner sdl session spell spl sse sse2 ssl tcpd tiff truetype
> truetype-fonts type1-fonts udev usb vorbis xine xml2 xmms xorg xv zlib
> linguas_it userland_GNU kernel_linux elibc_glibc"
> Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS,
> PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS, PORTDIR_OVERLAY
> 
> 
> dev-lang/python-2.4.2
> net-zope/plone-2.0.5-r2
> net-zope/zope-2.8.4
> 
> When I try to insert a Plone Site from the Zope Management Interface, I get
> this exception traceback:
> Time    2006/05/17 22:57:37.709 GMT+2
> User Name (User Id)     zope (zope)
> Request URL     http://localhost:8080/esempi/zpt/dd/index_html
> Exception Type  TypeError
> Exception Value         unbound method pt_getContext() must be called with
> ZopePageTemplate instance as first argument (got nothing instead)
> 
> Traceback (innermost last):
> 
>     * Module ZPublisher.Publish, line 113, in publish
>     * Module ZPublisher.mapply, line 88, in mapply
>     * Module ZPublisher.Publish, line 40, in call_object
>     * Module Products.CMFCore.PortalContent, line 116, in __call__
>     * Module Shared.DC.Scripts.Bindings, line 311, in __call__
>     * Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
>     * Module Products.CMFCore.FSPageTemplate, line 191, in _exec
>     * Module Products.CMFCore.FSPageTemplate, line 124, in pt_render
>     * Module Products.PageTemplates.PageTemplate, line 98, in pt_render
>       <FSPageTemplate at /esempi/zpt/dd/document_view used for
> /esempi/zpt/dd/index_html>
> 
> TypeError: unbound method pt_getContext() must be called with ZopePageTemplate
> instance as first argument (got nothing instead)
> 


It's a problem of requirements: see http://plone.org/products/plone/releases for details. Why doesn't portage manage version compatibility for plone/zope/python?
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-05-18 13:32:37 UTC
Please, don't needlessly restrict bugs....
Comment 3 Radoslaw Stachowiak (RETIRED) gentoo-dev 2006-05-27 05:52:46 UTC
Please use plone-2.0.5 with python-2.3.* and zope-2.7.*
Unfortunately we're unable to correctly provide stable environemnt for every set of plone/zope/python version and this has to be maintained manually.

Sorry for the inconvenience.