[Zope] Re: Zope 2.8 Installation trouble on XP

Martin Raspe hertzhaft at biblhertz.it
Thu Jul 21 12:17:59 EDT 2005


Tim Peters wrote:
> [Pedro Cristian]
> 
>>I'm a beginner in Zope. I've just installed the Zope 2.8 final package.
>>The installation seems to have completed normally.
>>However when the zope instance is run I have the following message :
>>
>>C:\Zope-Instance\bin>runzope.bat
>>
>>C:\Zope-Instance\bin>"C:\Zope-2.8.0-final\bin\python.exe" "C:\Zope-2.8.0-final\lib\python\Zope2\Startup\run.py" -C "C:\Zope-Instance\etc\zope.conf"
>>Traceback (most recent call last):
>> File "C:\Zope-2.8.0-final\lib\python\Zope2\Startup\run.py", line 56, in ?
>>   run()
>> File "C:\Zope-2.8.0-final\lib\python\Zope2\Startup\run.py", line 17, in run
>>   import Zope2.Startup
>> File "C:\Zope-2.8.0-final\lib\python\Zope2\__init__.py", line 60, in ?
>>   from Zope2.Startup.run import configure
>> File "C:\Zope-2.8.0-final\lib\python\Zope2\Startup\__init__.py", line 26, in ?
>>
>>   from ZConfig.components.logger import loghandler
>>ImportError: No module named components.logger
> 
> 
> Sorry, I can't reproduce this, on Win XP Pro SP2:

I have the same problem on Win 2000.

> C:\Zope-Instance\bin>runzope.bat
> 
> C:\Zope-Instance\bin>"C:\Zope-2.8.0-final\bin\python.exe"
> "C:\Zope-2.8.0-final\lib\python\Zope2\Startup\run.py" -C
> "C:\Zope-Instance\etc\zope.conf"
> 
> and that's it -- Zope is running at that point, and there's no more
> console output.  \Zope-Instance\log\event.log shows "Zope Ready to
> handle requests", though.  You may find more clues in your event.log.
> 
> 
>>There was no previous message with keyword "loghandler" in the mailing list.
>>All Zope services are stopped.
> 
> 
> Why the plural ("services" as opposed to "service")?  Do you have more
> than one Zope installed?  Installing Zope installs exactly one Windows
> service (if you allow it to), so I expected to see the singular
> "service" here.  Not trying to be picky for the sake of it, but there
> must _something_ different in your system from what others are doing.
> 
> 
>>Here are the system variable that are relevent :
>>CONFIG_FILE=C:\Zope-Instance\etc\zope.conf
>>INSTANCE_HOME=C:\Zope-Instance
>>Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Pinnacle\Shared Files\InstantCDDVD\
>>PYTHON=C:\Zope-2.8.0-final\bin\python.exe
>>PYTHONPATH=C:\Zope-2.8.0-final\lib\python
>>SOFTWARE_HOME=C:\Zope-2.8.0-final\lib\python
>>ZOPE_HOME=C:\Zope-2.8.0-final
>>ZOPE_RUN=C:\Zope-2.8.0-final\lib\python\Zope2\Startup\run.py
> 
> 
> Those look normal.  Did you change \Zope-Instance\etc\zope.conf in any way?
> 
> 
>>The Zope instance is the one created by the install package.
> 
> 
> Same for me above.
> 
> 
>>Seems that something is not working with my configuration, but what?
> 
> 
> I don't know, and I haven't seen this reported by anyone else before. 
> Let's try this:  cd to your Zope's (not Zope-Instance's) bin
> directory, and start Python from there.  Your DOS box should look like
> this then:
> 
> C:\Zope-2.8.0-final\bin>python
> Python 2.3.5 (#62, Feb  8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
> 
> 
> Then type in "from ZConfig.components.logger import loghandler", to
> try the same import you got a complaint about before.  Here's what
> happens when I do that:
> 
> 
>>>>from ZConfig.components.logger import loghandler
>>>>
> 
> 
> That means the import worked fine -- and it should work fine.  What
> happens when you try it?

I see the same error message that ZOPE gives.

Any solution?

Martin



More information about the Zope mailing list