Re: [Zope-dev] Zope and Cygwin

2009-03-30 Thread Cesar Canassa
It would be possible to modify the plonectl script in order to make it run
without using the zdaemon? Similar to way that the runzope used to work.

I am using the Plone unified installer, it doesn't comes with the runzope
script.

Thanks,
Cesar

2009/3/29 Dieter Maurer die...@handshake.de

 Cesar Canassa wrote at 2009-3-27 19:56 -0300:
 Does Zope requires that a root user should exist on system in order to
 run
 properly? I am asking this because when I try to run Zope as a daemon I
 got
 this:
 
 $ ./plonectl start
 instance: . . . . . . . . . . . . . . . . . . . Unlinking stale socket
 /cygdrive/c/Cygwin/home/ccanassa/Plone/zinstance/var/instance/zopectlsock;
 sleep 1
 
 No handlers could be found for logger root
 . Unlinking stale socket
 /cygdrive/c/Cygwin/home/ccanassa/Plone/zinstance/var/instance/zopectlsock;
 sleep 1
 . Unlinking stale socket

 The continued Unlinking stale socket means that your zdaemon is dieing.


 zdaemon is not supposed to work under Windows.

 I am unsure whether this also includes Cygwin on Windows.
 Your observation may indicate that it actually does


 Try to configure logging for your zdaemon and look into its logfile.
 If this does not reveal hints, modify the zdaemon code to ensure
 that problems are logged to a file you know.


 --
 Dieter

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Zope and Cygwin

2009-03-27 Thread Cesar Canassa
Thanks!

I replaced the code with the one from this link and compiled it again,
worked like a charm :-)

http://dev.plone.org/collective/browser/cygwinpatch/trunk/__init__.py


Regards,
Cesar Canassa

2009/3/26 Ross Patterson m...@rpatterson.net

 Cesar Canassa cesar.cana...@gmail.com writes:

  I am trying to run Zope using cygwin and Windows XP. I started by
 downloading the
  Python 2.4.6 sources and compiling it with:
 
  ./configure
  make  make install
 
  After that I downloaded the Zope-2.11.2-final sources and compiled it
 with:
 
  ./configure --with-python=/usr/local/bin/python
  make  make install
 
  The compilation went smoothly so I created a instance and started the
 server with
  the runzope script. The script returned this error:
 
  $ ./runzope
  Traceback (most recent call last):
File /opt/Zope-2.11/lib/python/Zope2/Startup/run.py, line 56, in ?
  run()
File /opt/Zope-2.11/lib/python/Zope2/Startup/run.py, line 21, in run
  starter.prepare()
File /opt/Zope-2.11/lib/python/Zope2/Startup/__init__.py, line 109,
 in prepare
  self.startZope()
File /opt/Zope-2.11/lib/python/Zope2/Startup/__init__.py, line 300,
 in
  startZope
  Zope2.startup()
File /opt/Zope-2.11/lib/python/Zope2/__init__.py, line 47, in startup
  _startup()
File /opt/Zope-2.11/lib/python/Zope2/App/startup.py, line 105, in
 startup
  Globals.VersionNameName)
File /opt/Zope-2.11/lib/python/App/ZApplication.py, line 32, in
 __init__
  if not root.has_key(name):
File /opt/Zope-2.11/lib/python/ZODB/Connection.py, line 811, in
 setstate
  self._setstate(obj)
File /opt/Zope-2.11/lib/python/ZODB/Connection.py, line 870, in
 _setstate
  self._reader.setGhostState(obj, p)
File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 604, in
 setGhostState
  state = self.getState(pickle)
File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 597, in
 getState
  return unpickler.load()
File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 471, in
  _persistent_load
  return self.load_oid(reference)
File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 537, in
 load_oid
  return self._conn.get(oid)
File /opt/Zope-2.11/lib/python/ZODB/Connection.py, line 245, in get
  obj = self._reader.getGhost(p)
File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 591, in
 getGhost
  return klass.__new__(klass, *args)
  TypeError: Acquirer.__new__(Application) is not safe, use
  Persistence.Persistent.__new__()
 
  Am I doing something wrong? Does anyone knows if it's possible to compile
 Zope
  with Cygwin?

 Maybe the following can help:

 http://rpatterson.net/software/products.cygwinpatch
 http://dev.plone.org/collective/browser/cygwinpatch/trunk/__init__.py
 http://mail.zope.org/pipermail/zope/2005-December/163636.html

 Ross

 ___
 Zope-Dev maillist  -  Zope-Dev@zope.org
 http://mail.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope )

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Zope and Cygwin

2009-03-27 Thread Cesar Canassa
One more question.

Does Zope requires that a root user should exist on system in order to run
properly? I am asking this because when I try to run Zope as a daemon I got
this:

$ ./plonectl start
instance: . . . . . . . . . . . . . . . . . . . Unlinking stale socket
/cygdrive/c/Cygwin/home/ccanassa/Plone/zinstance/var/instance/zopectlsock;
sleep 1
No handlers could be found for logger root
. Unlinking stale socket
/cygdrive/c/Cygwin/home/ccanassa/Plone/zinstance/var/instance/zopectlsock;
sleep 1
. Unlinking stale socket
/cygdrive/c/Cygwin/home/ccanassa/Plone/zinstance/var/instance/zopectlsock;
sleep 1
. Unlinking stale socket
/cygdrive/c/Cygwin/home/ccanassa/Plone/zinstance/var/instance/zopectlsock;
sleep 1
. Unlinking stale socket
/cygdrive/c/Cygwin/home/ccanassa/Plone/zinstance/var/instance/zopectlsock;
sleep 1
. Unlinking stale socket
/cygdrive/c/Cygwin/home/ccanassa/Plone/zinstance/var/instance/zopectlsock;
sleep 1


It continues spamming this until I kill the process, the server does not
start neither. I suspect that this is happening because of the lack of a
root user on my Cygwin installation.

If I use the runzope script it works ok thought.

Thanks,
Cesar

2009/3/27 Cesar Canassa cesar.cana...@gmail.com

 Thanks!

 I replaced the code with the one from this link and compiled it again,
 worked like a charm :-)

 http://dev.plone.org/collective/browser/cygwinpatch/trunk/__init__.py


 Regards,
 Cesar Canassa

 2009/3/26 Ross Patterson m...@rpatterson.net

 Cesar Canassa cesar.cana...@gmail.com writes:

  I am trying to run Zope using cygwin and Windows XP. I started by
 downloading the
  Python 2.4.6 sources and compiling it with:
 
  ./configure
  make  make install
 
  After that I downloaded the Zope-2.11.2-final sources and compiled it
 with:
 
  ./configure --with-python=/usr/local/bin/python
  make  make install
 
  The compilation went smoothly so I created a instance and started the
 server with
  the runzope script. The script returned this error:
 
  $ ./runzope
  Traceback (most recent call last):
File /opt/Zope-2.11/lib/python/Zope2/Startup/run.py, line 56, in ?
  run()
File /opt/Zope-2.11/lib/python/Zope2/Startup/run.py, line 21, in run
  starter.prepare()
File /opt/Zope-2.11/lib/python/Zope2/Startup/__init__.py, line 109,
 in prepare
  self.startZope()
File /opt/Zope-2.11/lib/python/Zope2/Startup/__init__.py, line 300,
 in
  startZope
  Zope2.startup()
File /opt/Zope-2.11/lib/python/Zope2/__init__.py, line 47, in
 startup
  _startup()
File /opt/Zope-2.11/lib/python/Zope2/App/startup.py, line 105, in
 startup
  Globals.VersionNameName)
File /opt/Zope-2.11/lib/python/App/ZApplication.py, line 32, in
 __init__
  if not root.has_key(name):
File /opt/Zope-2.11/lib/python/ZODB/Connection.py, line 811, in
 setstate
  self._setstate(obj)
File /opt/Zope-2.11/lib/python/ZODB/Connection.py, line 870, in
 _setstate
  self._reader.setGhostState(obj, p)
File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 604, in
 setGhostState
  state = self.getState(pickle)
File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 597, in
 getState
  return unpickler.load()
File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 471, in
  _persistent_load
  return self.load_oid(reference)
File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 537, in
 load_oid
  return self._conn.get(oid)
File /opt/Zope-2.11/lib/python/ZODB/Connection.py, line 245, in get
  obj = self._reader.getGhost(p)
File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 591, in
 getGhost
  return klass.__new__(klass, *args)
  TypeError: Acquirer.__new__(Application) is not safe, use
  Persistence.Persistent.__new__()
 
  Am I doing something wrong? Does anyone knows if it's possible to
 compile Zope
  with Cygwin?

 Maybe the following can help:

 http://rpatterson.net/software/products.cygwinpatch
 http://dev.plone.org/collective/browser/cygwinpatch/trunk/__init__.py
 http://mail.zope.org/pipermail/zope/2005-December/163636.html

 Ross

 ___
 Zope-Dev maillist  -  Zope-Dev@zope.org
 http://mail.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope )



___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Zope and Cygwin

2009-03-26 Thread Cesar Canassa
Hi all,

I am trying to run Zope using cygwin and Windows XP. I started by
downloading the Python 2.4.6 sources and compiling it with:

./configure
make  make install

After that I downloaded the Zope-2.11.2-final sources and compiled it with:

./configure --with-python=/usr/local/bin/python
make  make install

The compilation went smoothly so I created a instance and started the server
with the runzope script. The script returned this error:

$ ./runzope
Traceback (most recent call last):
  File /opt/Zope-2.11/lib/python/Zope2/Startup/run.py, line 56, in ?
run()
  File /opt/Zope-2.11/lib/python/Zope2/Startup/run.py, line 21, in run
starter.prepare()
  File /opt/Zope-2.11/lib/python/Zope2/Startup/__init__.py, line 109, in
prepare
self.startZope()
  File /opt/Zope-2.11/lib/python/Zope2/Startup/__init__.py, line 300, in
startZope
Zope2.startup()
  File /opt/Zope-2.11/lib/python/Zope2/__init__.py, line 47, in startup
_startup()
  File /opt/Zope-2.11/lib/python/Zope2/App/startup.py, line 105, in
startup
Globals.VersionNameName)
  File /opt/Zope-2.11/lib/python/App/ZApplication.py, line 32, in __init__
if not root.has_key(name):
  File /opt/Zope-2.11/lib/python/ZODB/Connection.py, line 811, in setstate
self._setstate(obj)
  File /opt/Zope-2.11/lib/python/ZODB/Connection.py, line 870, in
_setstate
self._reader.setGhostState(obj, p)
  File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 604, in
setGhostState
state = self.getState(pickle)
  File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 597, in getState
return unpickler.load()
  File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 471, in
_persistent_load
return self.load_oid(reference)
  File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 537, in load_oid
return self._conn.get(oid)
  File /opt/Zope-2.11/lib/python/ZODB/Connection.py, line 245, in get
obj = self._reader.getGhost(p)
  File /opt/Zope-2.11/lib/python/ZODB/serialize.py, line 591, in getGhost
return klass.__new__(klass, *args)
TypeError: Acquirer.__new__(Application) is not safe, use
Persistence.Persistent.__new__()

Am I doing something wrong? Does anyone knows if it's possible to compile
Zope with Cygwin?

Thanks,
Cesar Canassa
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )