problems for Zope Installation
Hello, We are trying to install zope2.6 on Solaris 6.4.1. So we took the sources of zope but we could not reach the complete installation. We have downloaded the 2.1.3 version of Python as recommended for zope 2.6. After executing the instructions make and make install, we tried to execute the script w_pcgi.py. And when we launch the application (command "start"), there is a problem of linking libraries. We get this kind of error : Traceback (most recent call last): File "/usr/local/packages/zope/z2.py", line 247, in ? import os, sys, getopt, codecs, string File "/usr/local/lib/python2.1/codecs.py", line 10, in ? import struct,types,__builtin__ ImportError: No module named struct But codecs.py is a python library and so I don't understand. Could you please try to help us. Thank you Cathy and Damien
On Wed, Jan 22, 2003 at 11:44:35AM +0100, Cathy Nouvet wrote:
We are trying to install zope2.6 on Solaris 6.4.1.
6.4.1? I know of 2.6, 7, 8, 9...
So we took the sources of zope but we could not reach the complete installation. We have downloaded the 2.1.3 version of Python as recommended for zope 2.6.
[snip]
Traceback (most recent call last): File "/usr/local/packages/zope/z2.py", line 247, in ? import os, sys, getopt, codecs, string File "/usr/local/lib/python2.1/codecs.py", line 10, in ? import struct,types,__builtin__ ImportError: No module named struct
But codecs.py is a python library and so I don't understand.
The real problem is struct. It's part of the python install, and also a compiled library -- so you have some sort of python install problem. Not sure what could be wrong as I've never had that problem. You could always use the Solaris 2.6 binary from zope.org instead. That saves you from all the compiling etc. It works on all Solaris versions 2.6 and above. -- Matt Behrens <matt@zigg.com> <URL:http://zigg.com/>
the last time I did this on Solaris 8, assuming the following: installed python installing zope from source. this is what I had to do, before running the wo_pcgi.py or w_pcgi.py replace the python in $INSTANCE_HOME/bin/python with a link to the python binary of your python installation After the install: delete the folder $INSTANCE_HOME/lib/python2.x.x DO NOT delete $INSTANCE_HOME/lib/python create a link to your python lib folder (usually /usr/lib/python2.x.x) called (whatever it was originally called - the one you deleted ) now you are ready to go. I did not get that error so it is possible that the source of the problem could be something else entirely. but when I did this it worked without a hitch hth AM Cathy Nouvet wrote:
Hello,
We are trying to install zope2.6 on Solaris 6.4.1. So we took the sources of zope but we could not reach the complete installation. We have downloaded the 2.1.3 version of Python as recommended for zope 2.6.
After executing the instructions make and make install, we tried to execute the script w_pcgi.py. And when we launch the application (command "start"), there is a problem of linking libraries.
We get this kind of error :
Traceback (most recent call last): File "/usr/local/packages/zope/z2.py", line 247, in ? import os, sys, getopt, codecs, string File "/usr/local/lib/python2.1/codecs.py", line 10, in ? import struct,types,__builtin__ ImportError: No module named struct
But codecs.py is a python library and so I don't understand.
Could you please try to help us.
Thank you
Cathy and Damien
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
-- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
Cathy Nouvet wrote at 2003-1-22 11:44 +0100:
We are trying to install zope2.6 on Solaris 6.4.1. So we took the sources of zope but we could not reach the complete installation. We have downloaded the 2.1.3 version of Python as recommended for zope 2.6.
After executing the instructions make and make install, we tried to execute the script w_pcgi.py. And when we launch the application (command "start"), there is a problem of linking libraries.
We get this kind of error :
Traceback (most recent call last): File "/usr/local/packages/zope/z2.py", line 247, in ? import os, sys, getopt, codecs, string File "/usr/local/lib/python2.1/codecs.py", line 10, in ? import struct,types,__builtin__ ImportError: No module named struct Your Python installation is incomplete:
"struct" is a built in Python module (usually dynamically loaded from ".../lib/python2.1/lib-dynload/struct.so"). For some unknown reason, Python cannot find it. Dieter
participants (4)
-
AM -
Cathy Nouvet -
Dieter Maurer -
Matt Behrens