Personal tools
You are here: Home Documentation Error References ImportError: No module named ImplPython
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

ImportError: No module named ImplPython

This Error Reference applies to: Plone 2.5.x
This Error Reference is intended for: Any audience.

Running unit tests on Plone 2.5.0 fail

You are trying to use Python 2.3 instead of required Python 2.4 and thus Zope 2.9 DLLs (compiled against Python 2.4) are not loaded.

After switching to Python 2.4 you might need to delete old compiled Python files (.pyc) lying around.

by Mikko Ohtamaa last modified August 22, 2006 - 13:39
Contributors: Mikko Ohtamaa
All content is copyright Plone Foundation and the individual contributors.

Install: /Plone2.5-UnifiedInstaller

Posted by Klaus Lehmann at August 22, 2006 - 13:10

no other python_version installed: error with ...\bin\runzope ImportError: No module named ImplPython used complete package from plone.org: Plone2.5-UnifiedInstaller whats' gone wrong? klaus

Incompatible DLLs

Posted by Mikko Ohtamaa at August 22, 2006 - 13:40

You have incompatible Zope/Python versions. Zope 2.9 needs Python 2.4 and Zope 2.8 needs Python 2.3.

incomp dll's ?

Posted by Klaus Lehmann at August 22, 2006 - 16:27

no sir, I'm sorry. it's all complete from official Plone2.5-UnifiedInstaller_package. Installed on a new machine (opensusex86_64); there was 100% NO other python installed. (se virhe on pakettissa ;-). yours klaus

x64?

Posted by Mikko Ohtamaa at August 22, 2006 - 16:34

I would be willing to bet my left toe for a fact that Zope in unified installer is compiled for x32

reason

Posted by Mikko Ohtamaa at August 22, 2006 - 16:35

Python spits out ImportError no module exists if the file (.so/.dll) physically exist but is it wrong binary format

compiled für x64

Posted by Klaus Lehmann at August 22, 2006 - 16:58

mikko, I beg your pardon against: but from readme: "The installer will compile Python, Zope, and all required libraries from source." (readme.txt; I think Kamal Gill has build this package on MAC? in README from indluded python 2.4.3: "64-bit platforms: The modules audioop, imageop and rgbimg don't work. The setup.py script disables them on 64-bit installations. Don't try to enable them in the Modules/Setup file. They contain code that is quite wordsize sensitive. (If you have a fix, let us know!)"

I think, at compiling (by kamal's package), python was compiled to 64bit..... (?) How can I control that? [excuse me, but I think, this question and answers are on wrong place....?] yours klaus

Try from the sources

Posted by Mikko Ohtamaa at August 22, 2006 - 17:06

Try build the stuff from the sources. Maybe open suse has some incompatible shared libraries.

Same problem Fedora 5

Posted by Robert Worrall at August 22, 2006 - 17:57

All,

I have exactly the same problem after installing on Fedora 5. Can anyone in the know reproduce this problem? I get it on every install attempt regardless of linux host OS / architecture. Tried on RHEL4 x64_64 and on FC5-i386... Sigh. Thanks for any insight you may have...

Bob

"File "/opt/Plone-2.5/lib/python/AccessControl/ImplC.py", line 30, in ? from ImplPython import RestrictedDTML, SecurityManager, ZopeSecurityPolicy ImportError: No module named ImplPython"

Same problem also for CentOS4 on x64

Posted by Chris H. at August 25, 2006 - 07:51

After alot of research, I was able to get the Unified Installer to compile everything without error (had to add CFLAGS=-fPIC to every make line in the install.sh file (including the make test line for zlib 1.2.3). After the joy of finally getting that working and poring through the zope.conf to get everything just so, I start the cluster and... sputter sputter..

File "/opt/Plone-2.5/lib/python/AccessControl/ImplC.py", line 30, in ? from ImplPython import RestrictedDTML, SecurityManager, ZopeSecurityPolicy ImportError: No module named ImplPython

Seems if we can get past this error, we'll have helped a lot of people on many different platforms! :)

Oops!

Posted by Chris H. at August 25, 2006 - 07:53

Think that this message board took liberties with my font sizing. I didn't add any code into the post to emphasize anything! :p Sorry...

"No module named ImplPython" error fixed in R3 of Unified Installer

Posted by Kamal Gill at September 11, 2006 - 02:58
I have posted an updated version of the Unified Installer that fixes the "No module named ImplPython" error. The updated version also fixes an issue compiling PIL on 64-bit systems. The updated version is Plone2.5-UnifiedInstaller-r3.tgz, now available at plone.org and sf.net

Another Python Installation

Posted by Vit Serdakovskiy at March 26, 2007 - 23:59
First you need to do is to check your environment setting (i.e. %PATH%, %PYTHONPATH% etc.) and unset variables.

sorry

Posted by Vit Serdakovskiy at March 27, 2007 - 00:01
"unset" is wrong word. You need to correct them appropriately.

Possible reason

Posted by Olivier Lauzanne at May 10, 2007 - 15:18
It may be that you installed z3c.sqlalchemy (or i18n...) with easy_install cause it install lots of zope packages as eggs. So if you have this problem go look into /usr/lib/python2.4/site-packages/ and delete all the eggs that start with 'zope'. It solved the problem for me.

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by