zopectl or runzope just won't start zope
Hi: I'm new to zope and yesterday installed zope 2.8.4 on a linux system running python 2.3.5 Having followed installation instructions I got to the point of 'zopectl start' and got the following error message while trying both 'runzope' and 'zopectl'. I've tried installing different versions of Zope and get the same error (error absent with Zope 3). At one point, Zope did start (I moved it to a different port) but when I tried installing Plone in the Products directory of the zope instance, the 'Plone Site' did not show up in the drop down menu on the right hand side of the ZMI. Which is why I decided to reinstall and have been getting errors since. I haven't messed around with the Python installation at all. In this latest install I ran 'make instance' intead of 'make install' just to see if I would get the same error as I did yesterday when I had an instance of Zope running and I did. Any help in trying to fix this would be highly appreciated. I've tried changing PYTHONPATH in the zopectl file but that just leads to more and more errors. Traceback (most recent call last): File "/blah//Zope-2.8.4-final/lib/python/Zope2/Startup/run.py", line 56, in ? run() File "/blah/Zope-2.8.4-final/lib/python/Zope2/Startup/run.py", line 17, in run import Zope2.Startup File "/blah/Zope-2.8.4-final/lib/python/Zope2/__init__.py", line 60, in ? from Zope2.Startup.run import configure File "/network/share/home/sra/Zope-2.8.4-final/lib/python/Zope2/Startup/__init__.py", line 24, in ? import ZConfig File "/blah/Zope-2.8.4-final/lib/python/ZConfig/__init__.py", line 21, in ? from ZConfig.loader import loadConfig, loadConfigFile File "/blah/Zope-2.8.4-final/lib/python/ZConfig/loader.py", line 23, in ? import ZConfig.datatypes File "/blah/Zope-2.8.4-final/lib/python/ZConfig/datatypes.py", line 19, in ? import datetime File "/blah/Zope-2.8.4-final/lib/python/DateTime/__init__.py", line 13, in ? from DateTime import DateTime File "/blah/Zope-2.8.4-final/lib/python/DateTime/DateTime.py", line 21, in ? from datetime import datetime File "/blah/Zope-2.8.4-final/lib/python/DateTime/DateTime.py", line 21, in ? from datetime import datetime ImportError: cannot import name datetime Thank you very much for your help. Qass
First, I would recommend against changing anything in any file at this point except configuration files. Next, verify that the correct python version is being used. It's easy to have two pythons side-by-side on the same linux system. If you built Zope from source, you (probably) should build python from source as well. However, if you used an installable package for Zope, I would recommend staying with whatever version pairing of Zope/Python that your Linux distribution has by default. It's simpler that way, and will probably solve your problem. I know that I've built Zope before where it's pointed at the wrong python version, and got things all screwed up for me. Use "`which python` -V" (those are backtics) to figure out the version that your $PATH points to by default. If you *are* building from source, verify that you used --with-python="/path/to/python2.3.5" when you ran the configure script for Zope. The configure script should(?) tell you if there's a problem with any module dependencies. Again, if building Zope from source, it's probably best that you use a python built from source as well. Good Luck! fm On 12/14/05, Qass <qassair@gmail.com> wrote:
Hi:
I'm new to zope and yesterday installed zope 2.8.4 on a linux system running python 2.3.5 Having followed installation instructions I got to the point of 'zopectl start' and got the following error message while trying both 'runzope' and 'zopectl'.
I've tried installing different versions of Zope and get the same error (error absent with Zope 3). At one point, Zope did start (I moved it to a different port) but when I tried installing Plone in the Products directory of the zope instance, the 'Plone Site' did not show up in the drop down menu on the right hand side of the ZMI. Which is why I decided to reinstall and have been getting errors since. I haven't messed around with the Python installation at all.
In this latest install I ran 'make instance' intead of 'make install' just to see if I would get the same error as I did yesterday when I had an instance of Zope running and I did.
Any help in trying to fix this would be highly appreciated. I've tried changing PYTHONPATH in the zopectl file but that just leads to more and more errors.
Traceback (most recent call last): File "/blah//Zope-2.8.4-final/lib/python/Zope2/Startup/run.py", line 56, in ? run() File "/blah/Zope-2.8.4-final/lib/python/Zope2/Startup/run.py", line 17, in run import Zope2.Startup File "/blah/Zope-2.8.4-final/lib/python/Zope2/__init__.py", line 60, in ? from Zope2.Startup.run import configure File "/network/share/home/sra/Zope-2.8.4-final /lib/python/Zope2/Startup/__init__.py", line 24, in ? import ZConfig File "/blah/Zope-2.8.4-final/lib/python/ZConfig/__init__.py", line 21, in ? from ZConfig.loader import loadConfig, loadConfigFile File "/blah/Zope-2.8.4-final/lib/python/ZConfig/loader.py", line 23, in ? import ZConfig.datatypes File "/blah/Zope-2.8.4-final/lib/python/ZConfig/datatypes.py", line 19, in ? import datetime File "/blah/Zope-2.8.4-final/lib/python/DateTime/__init__.py", line 13, in ? from DateTime import DateTime File "/blah/Zope-2.8.4-final/lib/python/DateTime/DateTime.py", line 21, in ? from datetime import datetime File "/blah/Zope-2.8.4-final/lib/python/DateTime/DateTime.py", line 21, in ? from datetime import datetime ImportError: cannot import name datetime
Thank you very much for your help.
Qass _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- Floyd May Senior Systems Analyst CTLN - CareerTech Learning Network fmay@okcareertech.org
Not that I am any real guru on this, however, I am still learning myself, my 2c worth.... The error output suggests that Zope is installed on a network share of some sort ... File "/network/share/home/sra/Zope-2.8.4-final/lib/python/Zope2/Startup/__init__. py", line 24, in ? Are the permissions or effective user correct for the appropriate filesystems and files.? If you installed the binaries as root, but are running Zope as another user, you will need to assign either that effective user to the root group, or potentially less hazardous, security wise, assign the correct effective user group rights to the filesystem area, including the network share. If you have not assigned an effective user, or ran mkzopeinstance as root, then you may see these type of errors when trying to run Zope as another user without the correct permissions. Or when running as root, when effective user permissions are assigned elsewhere. Russ -----Original Message----- From: zope-bounces@zope.org [mailto:zope-bounces@zope.org] On Behalf Of Qass Sent: Thursday, December 15, 2005 5:13 AM To: zope@zope.org Subject: [Zope] zopectl or runzope just won't start zope Hi: I'm new to zope and yesterday installed zope 2.8.4 on a linux system running python 2.3.5 Having followed installation instructions I got to the point of 'zopectl start' and got the following error message while trying both 'runzope' and 'zopectl'. I've tried installing different versions of Zope and get the same error (error absent with Zope 3). At one point, Zope did start (I moved it to a different port) but when I tried installing Plone in the Products directory of the zope instance, the 'Plone Site' did not show up in the drop down menu on the right hand side of the ZMI. Which is why I decided to reinstall and have been getting errors since. I haven't messed around with the Python installation at all. In this latest install I ran 'make instance' intead of 'make install' just to see if I would get the same error as I did yesterday when I had an instance of Zope running and I did. Any help in trying to fix this would be highly appreciated. I've tried changing PYTHONPATH in the zopectl file but that just leads to more and more errors. Traceback (most recent call last): File "/blah//Zope-2.8.4-final/lib/python/Zope2/Startup/run.py", line 56, in ? run() File "/blah/Zope-2.8.4-final/lib/python/Zope2/Startup/run.py", line 17, in run import Zope2.Startup File "/blah/Zope-2.8.4-final/lib/python/Zope2/__init__.py", line 60, in ? from Zope2.Startup.run import configure File "/network/share/home/sra/Zope-2.8.4-final/lib/python/Zope2/Startup/__init__. py", line 24, in ? import ZConfig File "/blah/Zope-2.8.4-final/lib/python/ZConfig/__init__.py", line 21, in ? from ZConfig.loader import loadConfig, loadConfigFile File "/blah/Zope-2.8.4-final/lib/python/ZConfig/loader.py", line 23, in ? import ZConfig.datatypes File "/blah/Zope-2.8.4-final/lib/python/ZConfig/datatypes.py", line 19, in ? import datetime File "/blah/Zope-2.8.4-final/lib/python/DateTime/__init__.py", line 13, in ? from DateTime import DateTime File "/blah/Zope-2.8.4-final/lib/python/DateTime/DateTime.py", line 21, in ? from datetime import datetime File "/blah/Zope-2.8.4-final/lib/python/DateTime/DateTime.py", line 21, in ? from datetime import datetime ImportError: cannot import name datetime Thank you very much for your help. Qass _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (3)
-
Floyd May -
Qass -
Russell Winter