[Plone-Users] The Dreaded ImportError: No module named ImplPython Error

15 views
Skip to first unread message

percious

unread,
Sep 17, 2007, 4:32:47 PM9/17/07
to plone...@lists.sourceforge.net
I know this problem was fixed with the unified installer, but does
anyone have a fix for this for getting Zope running as a stand-alone?

Here is my platform:
OS: Mac OS X
Python: 2.4.4
Zope: 2.10.4
Plone: (will be 2.5 when I get zope running)

also, is there a good zope board to put up messages on.

Thanks,
chris


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Plone-Users mailing list
Plone...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plone-users

percious

unread,
Sep 17, 2007, 4:34:05 PM9/17/07
to plone...@lists.sourceforge.net
Here is the dump:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/Current/lib/
python/Zope2/Startup/run.py", line 56, in ?
run()
File "/Library/Frameworks/Python.framework/Versions/Current/lib/
python/Zope2/Startup/run.py", line 19, in run
opts = _setconfig()
File "/Library/Frameworks/Python.framework/Versions/Current/lib/
python/Zope2/Startup/run.py", line 48, in _setconfig
opts.realize(doc="Sorry, no option docs yet.")
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python/
zdaemon/zdoptions.py", line 273, in realize
self.load_schema()
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python/
zdaemon/zdoptions.py", line 321, in load_schema
self.schema = ZConfig.loadSchema(self.schemafile)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python/
ZConfig/loader.py", line 31, in loadSchema
return SchemaLoader().loadURL(url)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python/
ZConfig/loader.py", line 65, in loadURL
return self.loadResource(r)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python/
ZConfig/loader.py", line 159, in loadResource
schema = ZConfig.schema.parseResource(resource, self)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python/
ZConfig/schema.py", line 27, in parseResource
xml.sax.parse(resource.file, parser)
File "/Library/Frameworks/Python.framework/Versions/2.4//lib/
python2.4/xml/sax/__init__.py", line 33, in parse
parser.parse(source)
File "/Library/Frameworks/Python.framework/Versions/2.4//lib/
python2.4/xml/sax/expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "/Library/Frameworks/Python.framework/Versions/2.4//lib/
python2.4/xml/sax/xmlreader.py", line 123, in parse
self.feed(buffer)
File "/Library/Frameworks/Python.framework/Versions/2.4//lib/
python2.4/xml/sax/expatreader.py", line 207, in feed
self._parser.Parse(data, isFinal)
File "/Library/Frameworks/Python.framework/Versions/2.4//lib/
python2.4/xml/sax/expatreader.py", line 300, in start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python/
ZConfig/schema.py", line 99, in startElement
getattr(self, "start_" + name)(attrs)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python/
ZConfig/schema.py", line 475, in start_schema
keytype, valuetype, datatype = self.get_sect_typeinfo(attrs)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python/
ZConfig/schema.py", line 201, in get_sect_typeinfo
datatype = self.get_datatype(attrs, "datatype", "null", base)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python/
ZConfig/schema.py", line 194, in get_datatype
return self._registry.get(dtname)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python/
ZConfig/datatypes.py", line 398, in get
t = self.search(name)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python/
ZConfig/datatypes.py", line 423, in search
package = __import__(n, g, g, component)
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python/
Zope2/Startup/datatypes.py", line 21, in ?
import OFS.Uninstalled
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python/
OFS/Uninstalled.py", line 20, in ?
import SimpleItem, Globals, Acquisition
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python/
OFS/SimpleItem.py", line 26, in ?
import AccessControl.Role, AccessControl.Owned, App.Common
File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python/
AccessControl/__init__.py", line 17, in ?
from Implementation import setImplementation
File "/Library/Frameworks/Python.framework/Versions/Current/lib/
python/AccessControl/Implementation.py", line 98, in ?
setImplementation("C")
File "/Library/Frameworks/Python.framework/Versions/Current/lib/
python/AccessControl/Implementation.py", line 51, in setImplementation
from AccessControl import ImplC as impl
File "/Library/Frameworks/Python.framework/Versions/Current/lib/
python/AccessControl/ImplC.py", line 30, in ?
from ImplPython import RestrictedDTML, SecurityManager,
ZopeSecurityPolicy
ImportError: No module named ImplPython

Andreas Jung

unread,
Sep 18, 2007, 12:49:08 AM9/18/07
to percious, plone...@lists.sourceforge.net

--On 17. September 2007 13:32:47 -0700 percious <ch...@percious.com> wrote:

> I know this problem was fixed with the unified installer, but does
> anyone have a fix for this for getting Zope running as a stand-alone?
>

By installing Zope *properly* from source. The traceback within the other
posting indicates that you did not call "make install" or "make instance".
That's the common error pattern when not following the official Zope build
instructions.

-aj

percious

unread,
Sep 18, 2007, 9:58:13 AM9/18/07
to plone...@lists.sourceforge.net
Yep, I did a make install. I am following the instructions as
outlined in the wetfeet webcast. is it required to do both make
install and make instance?

cheers.
-chris

> application_pgp-signature_part
> 1KDownload


>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft

> Defy all challenges. Microsoft(R) Visual Studio 2005.http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
> _______________________________________________
> Plone-Users mailing list
> Plone-Us...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/plone-users

Andreas Jung

unread,
Sep 18, 2007, 10:29:57 AM9/18/07
to percious, plone...@lists.sourceforge.net

--On 18. September 2007 06:58:13 -0700 percious <ch...@percious.com> wrote:

> Yep, I did a make install. I am following the instructions as
> outlined in the wetfeet webcast. is it required to do both make
> install and make instance?
>
>

Usually you do "configure --prefix=....; make install" and later you create
your own instances using bin/mkzopinstance from within the installed Zope
software home.

-aj

percious

unread,
Sep 18, 2007, 12:40:23 PM9/18/07
to plone...@lists.sourceforge.net
Yep, I did all that. Here is the line from my bash history:

596 ./configure=prefix=/Library/Frameworks/Python.framework/Versions/
2.4/lib/python2.4/site-packages/ --with-python=/usr/local/bin/python

Thanks again for all your help. (I hate being a newb.)

-chris

percious

unread,
Sep 18, 2007, 3:47:01 PM9/18/07
to plone...@lists.sourceforge.net
Ok, so I got everything working with Zope!!!

Special Thanks to Steve McMahon who pointed me in the right direction.

It turns out that the zlib instance on my machine was incorrectly
compiled, which left my python install hanging. So, here is what I
had to do to get my local install working:

1)Download zlib.x.x.tgz and unzip/extract
2) do a CFLAGS='-fPIC' ./configure
3) make... make install
Great. Now download Python2.4.4
4) configure... make... make install...
Now Zope
5) Grab the zope tgz. (unzip/extract)
6) configure... make... install
7) /opt/Zope-2.10/bin/mkzopeinstance.py

Yay.

Here is an email dump from Steve which lead me down the correct path.
Thanks again steve!


Hi Chris,

It's zlib that needs to be made with -fPIC set, and before building
Python. There's an oddity in the Python build process when it comes
to
zlib: it tries to use the static library archive to build a shared
version for itself. On many platforms, particularly 64-bit ones, that
doesn't work unless zlib was built with -fPIC.

So, this doesn't really have anything to do with the Zope build,
except

that Zope needs to use Python's zip support.

Steve


Christopher Perkins wrote:
> Thanks for your help steve. I have tried the unified installer and that
> seems to work just fine. However, I would like to create zope as a
> standard python package in my "site-packages" directory because I see it
> as an easier environment to work in. How do I do a make with the -fPIC
> flag set?
>
>
>
> Thanks,
>
> chris
>
> > Have you considered using the OS X installer? It's still available
> for > 2.5.3 at http://plone.org/products/plone/releases/2.5.3 . > >
> Alternatively, you could use the Unified Installer, then just use >
> mkzopeinstance afterwards to create a stand-alone Zope instance. (You'll
> > need to install the Plone products.) > > If neither is feasible, make
> sure that the "-fPIC" flag was set when you > built zlib. If not, build
> and install it again, then build your python > and Zope. > > > percious
> wrote: > > I know this problem was fixed with the u nified installer,


> but does > > anyone have a fix for this for getting Zope running as a

> stand-alone? > > > > Here is my platform: > > OS: Mac OS X > > Python:


> 2.4.4 > > Zope: 2.10.4 > > Plone: (will be 2.5 when I get zope running)
> > > > > also, is there a good zope board to put up messages on. > > > >
> Thanks, > > chris > > > > > >

> -------------------------------------------------------------------------
> > > This SF.net email is sponsored by: Microsoft > > Defy all
> challenges. Microsoft(R) Visual Studio 2005. > >
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >
> _______________________________________________ > > Plone-Users mailing
> list > > Plone...@lists.sourceforge.net > >

> https://lists.sourceforge.net/lists/listinfo/plone-users > > > > -- >
> ______________________________________________________ > > S teve
> McMahon > Reid-McMahon, LLC > st...@reidmcmahon.com > st...@dcn.org
>
>
> ------------------------------------------------------------------------
>
> Thanks for your help steve. I have tried the unified installer and that
> seems to work just fine. However, I would like to create zope as a
> standard python package in my "site-packages" directory because I see it
> as an easier environment to work in. How do I do a make with the -fPIC
> flag set?
>
>
>
> Thanks,
>
> chris
>
>> Have you considered using the OS X installer? It's still available for
>> 2.5.3 at http://plone.org/products/plone/releases/2.5.3 . > >
> Alternatively, you could use the Unified Installer, then just use >
> mkzopeinstance afterwards to create a stand-alone Zope instance. (You'll
>> need to install the Plone products.) > > If neither is feasible, make
> sure that the "-fPIC" flag was set when you > built zlib. If not, build
> and install it again, then build your python > and Zope. > > > percious


> wrote: > > I know this problem was fixed with the unified installer, but
> does > > anyone have a fix for this for getting Zope running as a

> stand-alone? > > > > Here is my platform: > > OS: Mac OS X > > Python:


> 2.4.4 > > Zope: 2.10.4 > > Plone: (will be 2.5 when I get zope running)
>>>>> also, is there a good zope board to put up messages on. > > > >
> Thanks, > > chris > > > > > >

> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by: Microsoft > > Defy all
> challenges. Microsoft(R) Visual Studio 2005. > >
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > >
> _______________________________________________ > > Plone-Users mailing
> list > > Plone...@lists.sourceforge.net > >

> https://lists.sourceforge.net/lists/listinfo/plone-users > > > > -- >
> ______________________________________________________ > > Steve McMahon
>> Reid-McMahon, LLC > st...@reidmcmahon.com > st...@dcn.org
>

--
______________________________________________________

Steve McMahon
Reid-McMahon, LLC
st...@reidmcmahon.com
st...@dcn.org

Andreas Jung

unread,
Sep 19, 2007, 1:06:55 AM9/19/07
to percious, plone...@lists.sourceforge.net

--On 18. September 2007 12:47:01 -0700 percious <ch...@percious.com> wrote:

> Ok, so I got everything working with Zope!!!
>
> Special Thanks to Steve McMahon who pointed me in the right direction.
>
> It turns out that the zlib instance on my machine was incorrectly
> compiled, which left my python install hanging.

Well, 'configure' checks for the zlib module and gives you a decicated
warning (reading console messages is sometimes useful). And likely you got
a compilation error when calling "make"...also reading the console message
helps :-)

-aj

Reply all
Reply to author
Forward
0 new messages