Re: prebuild sage v5.4.1, linux 32-bit: twistd get wrong pidfile name when starting notebook(dir=..)

27 views
Skip to first unread message

Stan Schymanski

unread,
Jan 15, 2013, 5:23:24 AM1/15/13
to sage-s...@googlegroups.com
This is still a problem in Sage 5.5, and on linux 64-bit. Have you found a workaround?

Cheers
Stan

On Friday, November 23, 2012 10:01:18 PM UTC+1, Andre, der Besonnene wrote:
I'm trying to update to sage 5.4.1. When I start a notebook without a directory parameter, everything goes fine. But if I want to start a notebook with:

sage: notebook(directory="/home/sage/s/",interface='')

I get an error message.

....
Executing twistd  --pidfile="s/sagenb.pid" -ny "s.sagenb/twistedconf.tac"
                             /\/\/\/\/\/\
.....
2012-11-23 21:31:23+0100 [-]   File "/opt/sage/sage-5.4.1-linux-32bit-ubuntu_12.04.1_lts-i686-Linux/local/lib/python2.7/site-packages/Twisted-12.1.0-py2.7-linux-i686.egg/twisted/scripts/_twistd_unix.py", line 293, in setupEnvironment
2012-11-23 21:31:23+0100 [-]     f = open(pidfile,'wb')
2012-11-23 21:31:23+0100 [-] IOError: [Errno 2] No such file or directory: '/home/sage/s/sagenb.pid'
.....                                                                                   /\/\/\/\/\

There is indeed no file /./../s/sagenb.pid, because sage creates a directory /./../s.sagenb/ .

greetings/Liebe Grüße aus dem nebeligen Seewinkel
Andre

Stan Schymanski

unread,
Jan 15, 2013, 6:50:05 AM1/15/13
to sage-s...@googlegroups.com
I just found the related bug report and added a workaround: https://github.com/sagemath/sagenb/issues/116
Reply all
Reply to author
Forward
0 new messages