[ZCM] [ZC] 1640/ 7 Reject "Windows XP Pro SP2 Install"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Fri Feb 11 11:38:21 EST 2005


Issue #1640 Update (Reject) "Windows XP Pro SP2 Install"
 Status Rejected, Zope/bug medium
To followup, visit:
  http://zope.org/Collectors/Zope/1640

==============================================================
= Reject - Entry #7 by tim_one on Feb 11, 2005 11:38 am

 Status: Pending => Rejected

I never heard of ZOPECASEOK, and none of these ways finds it either:

+ grep'ing the entire Zope (2.7 branch) checkout
+ grep'ing the entire Python checkout
+ google

All the comments I made last time still apply, though.  Since that was well over a month ago, the OP hasn't responded, and there's still no reason to suspect a Zope bug, I'm rejecting this now.
________________________________________
= Comment - Entry #6 by tseaver on Feb 11, 2005 10:55 am

>From #1697 (the poster there apparently couldn't follow up here):

  When starting Zope instance from runzope.bat you get
  the messages "deprecated... fcntl.py..." because
  ZOPECASEOK=1 previously setted by another Python install
  like \IBMTOOLS\Phyton22 that came with IBM ThinkPad notebooks.
  Start a new console, go to Zope bin directory, set
  ZOPECASEOK=<nothing> and execute runzope.bat.
________________________________________
= Comment - Entry #5 by tim_one on Jan 1, 2005 12:45 pm

The peculiar thing about the traceback is this line:

C:\Zope\bin\lib\fcntl.py:7: DeprecationWarning: the FCNTL module is deprecated; please use fcntl

It's peculiar because the Zope Windows installer doesn't create any such file.  It does create FCNTL.py and FCNTL.pyc in bin\lib\, but not the lowercase fcntl.py or fcntl.pyc.

So something else you installed, or did, created the lowercase version, or you have the environment variable PYTHONCASEOK set (in which case unset it).

So long as you have a file named (lowercase) fcntl.py or fnctl.pyc in bin\lib\, Zope can't work.  Figure out where it/them came from, and stop doing whatever it is that created it/them.  In any case, delete the (lowercase) fcntl.py and/or fcntl.pyc you have now & try again.
________________________________________
= Comment - Entry #4 by tlipp on Jan 1, 2005 9:55 am

I had the same problems as described by finrod.
First I tried the plone windows installer, then I tried to install zope 2.7.3 and 2.7.2 with the same results.

For presentations it would be helpful to have zope running on my notebook. 
________________________________________
= Comment - Entry #3 by finrod on Dec 29, 2004 2:40 pm

I also tried to completely remove 2.7.3 and install 2.8.0.a1 and I get the exact same problem...I think. At least I get the same error messages. 

Is there some way to get Zope to dump out more information on the console or to error logs?

finrod
________________________________________
= Comment - Entry #2 by finrod on Dec 29, 2004 9:13 am

I did some followup on this. I figured out how to get my service to start in debug mode, but I get these errors and it never starts up successfully:

C:\Zope-Instance\bin>"c:\Zope\bin\python.exe" zopeservice.py debug
Debugging service Zope_-1444516661 - press Ctrl+C to stop.
Info 0x40001002 - The Zope_-1444516661 service has started (Zope instance at C:\
Zope-Instance).
Warning 0x400000FF - Zope_-1444516661 (Zope instance at C:\Zope-Instance): proce
ss died unexpectedly.  Will attempt restart after 5 seconds.
Info 0x400000FF - Zope_-1444516661 (Zope instance at C:\Zope-Instance): recoveri
ng from died process, new process started
Warning 0x400000FF - Zope_-1444516661 (Zope instance at C:\Zope-Instance): proce
ss died unexpectedly.  Will attempt restart after 10 seconds.
Info 0x400000FF - Zope_-1444516661 (Zope instance at C:\Zope-Instance): recoveri
ng from died process, new process started
Warning 0x400000FF - Zope_-1444516661 (Zope instance at C:\Zope-Instance): proce
ss died unexpectedly.  Will attempt restart after 20 seconds.
Info 0x400000FF - Zope_-1444516661 (Zope instance at C:\Zope-Instance): recoveri
ng from died process, new process started
Warning 0x400000FF - Zope_-1444516661 (Zope instance at C:\Zope-Instance): proce
ss died unexpectedly.  Will attempt restart after 40 seconds.
Info 0x400000FF - Zope_-1444516661 (Zope instance at C:\Zope-Instance): recoveri
ng from died process, new process started
Warning 0x400000FF - Zope_-1444516661 (Zope instance at C:\Zope-Instance): proce
ss died unexpectedly.  Will attempt restart after 80 seconds.
Info 0x400000FF - Zope_-1444516661 (Zope instance at C:\Zope-Instance): recoveri
ng from died process, new process started
Warning 0x400000FF - Zope_-1444516661 (Zope instance at C:\Zope-Instance): proce
ss died unexpectedly.  Will attempt restart after 160 seconds.
Stopping debug service.
Error 0xC0000003 - The instance's SvcRun() method failed

  File "C:\Zope\bin\Lib\site-packages\win32serviceutil.py", line 670, in SvcRun
    self.SvcDoRun()
  File "C:\Zope\lib\python\nt_svcutils\service.py", line 163, in SvcDoRun
    time.sleep(backoff_interval)

exceptions.IOError: (4, 'Interrupted function call')

C:\Zope-Instance\bin>

The final errors is from my CTRL-C

I also gound some test scripts in the Zope-Instance folder and ran these. Two of these complete ok (test_scheme.py and test_warnfilter.py) the third (testStarter.py) throws this error:

C:\Zope-Instance\bin>c:\zope\bin\python.exe c:\zope\lib\python\Zope\startup\test
s\testStarter.py
c:\zope\bin\lib\fcntl.py:7: DeprecationWarning: the FCNTL module is deprecated;
please use fcntl
  DeprecationWarning)
.E.......
======================================================================
ERROR: testMakeLockFile (__main__.ZopeStarterTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "c:\zope\lib\python\Zope\startup\tests\testStarter.py", line 313, in test
MakeLockFile
    starter.makeLockFile()
  File "C:\Zope\lib\python\Zope\Startup\__init__.py", line 251, in makeLockFile
    lock_file(self.lockfile)
  File "C:\Zope\lib\python\Zope\Startup\misc\lock_file.py", line 40, in lock_fil
e
    fcntl.flock(file, fcntl.LOCK_EX | fcntl.LOCK_NB)
AttributeError: 'module' object has no attribute 'flock'

----------------------------------------------------------------------
Ran 9 tests in 3.855s

FAILED (errors=1)
________________________________________
= Request - Entry #1 by finrod on Dec 28, 2004 10:56 pm

I'm hoping this is the right place to place this. I did a full install of Zope 2.7.3 onto Windows XP Pro SP2. 

Zope does not start. The install finishes without any errors. When I try to start Zope, it says its successful but when I try to access the management console, I get a "connection refused" message. 

When I try to start Zope from a console using the shortcut placed on the start menu I get the following error:

C:\Zope-Instance\bin>runzope.bat

C:\Zope-Instance\bin>"C:\Zope\bin\python.exe" "C:\Zope\lib\python\Zope\Startup\r
un.py" -C "C:\Zope-Instance\etc\zope.conf"
C:\Zope\bin\lib\fcntl.py:7: DeprecationWarning: the FCNTL module is deprecated;
please use fcntl
  DeprecationWarning)
------
2004-12-28T22:25:49 INFO(0) ZServer HTTP server started at Tue Dec 28 22:25:49 2
004
        Hostname: wrndusitrd95.rndus.na.jnj.com
        Port: 8080
------
2004-12-28T22:25:49 INFO(0) ZServer FTP server started at Tue Dec 28 22:25:49 20
04
        Hostname: wrndusitrd95
        Port: 8021
Traceback (most recent call last):
  File "C:\Zope\lib\python\Zope\Startup\run.py", line 50, in ?
    run()
  File "C:\Zope\lib\python\Zope\Startup\run.py", line 19, in run
    start_zope(opts.configroot)
  File "C:\Zope\lib\python\Zope\Startup\__init__.py", line 49, in start_zope
    starter.makeLockFile()
  File "C:\Zope\lib\python\Zope\Startup\__init__.py", line 251, in makeLockFile
    lock_file(self.lockfile)
  File "C:\Zope\lib\python\Zope\Startup\misc\lock_file.py", line 40, in lock_fil
e
    fcntl.flock(file, fcntl.LOCK_EX | fcntl.LOCK_NB)
AttributeError: 'module' object has no attribute 'flock'

Is there a debug mode or some way to ge tmore information as to what the problem is? I've tried the install on several different machines - all with XP SP2 and I get the exact same message.

Any help would be great!

Finrod Felagund
==============================================================



More information about the Zope-Collector-Monitor mailing list