My favorites | Sign in
Project Logo
                
Details: Show all Hide all

Older

  • Oct 30, 2009
    issue 2 (Connection refused error) Status changed by leo.soto   -   Good catch, I applied your patch in rev 5
    Status: Fixed
    Good catch, I applied your patch in rev 5
    Status: Fixed
  • Oct 30, 2009
    r5 (Applying patch by 'petehere': - Fixes issue 2 by not callin...) committed by leo.soto   -   Applying patch by 'petehere': - Fixes issue 2 by not calling flush on the pipe stdout, as it's a non supported operation on some OSs (like MacOS X) - Sets the current working directory of the fcsh daemon to the same as the one in which the client was started for the first time - More logging when reading fcsh prompt
    Applying patch by 'petehere': - Fixes issue 2 by not calling flush on the pipe stdout, as it's a non supported operation on some OSs (like MacOS X) - Sets the current working directory of the fcsh daemon to the same as the one in which the client was started for the first time - More logging when reading fcsh prompt
  • Oct 29, 2009
    issue 2 (Connection refused error) commented on by petehere   -   I've reported a bug against this here http://bugs.python.org/issue7240
    I've reported a bug against this here http://bugs.python.org/issue7240
  • Oct 29, 2009
    issue 2 (Connection refused error) commented on by petehere   -   I'm seeing the same thing on 10.6.1 with python 2.6.1. I think I've tracked down the problem. fsck.stdout.flush() is failing: >>> from subprocess import Popen, PIPE >>> p = Popen('cat', stdin=PIPE, stdout=PIPE) >>> p.stdout.flush() Traceback (most recent call last): File "<stdin>", line 1, in <module> IOError: [Errno 9] Bad file descriptor Writing to stdin and reading from stdout seem to work. Commenting out the offending stdout.flush statements seems to fix the problem in my limited testing. I've attached a file with the included changes. As an aside I've also set the fcsh process to start in the CWD when launched as it wasn't finding files unless the full path was specified.
    I'm seeing the same thing on 10.6.1 with python 2.6.1. I think I've tracked down the problem. fsck.stdout.flush() is failing: >>> from subprocess import Popen, PIPE >>> p = Popen('cat', stdin=PIPE, stdout=PIPE) >>> p.stdout.flush() Traceback (most recent call last): File "<stdin>", line 1, in <module> IOError: [Errno 9] Bad file descriptor Writing to stdin and reading from stdout seem to work. Commenting out the offending stdout.flush statements seems to fix the problem in my limited testing. I've attached a file with the included changes. As an aside I've also set the fcsh process to start in the CWD when launched as it wasn't finding files unless the full path was specified.
  • Oct 21, 2009
    issue 2 (Connection refused error) commented on by bdefore   -   If it's any help, verbose mode mentions this just before the error: ... # /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/tempfile.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/tempfile.py import tempfile # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/tempfile.pyc # /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/random.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/random.py import random # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/random.pyc dlopen("/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/math.so", 2); import math # dynamically loaded from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/math.so dlopen("/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib- dynload/_random.so", 2); import _random # dynamically loaded from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/_random.so # /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/ascii.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/ascii.py import encodings.ascii # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/ascii.pyc XML-RPC Error: <Fault 1: "<type 'exceptions.IOError'>:[Errno 32] Broken pipe">
    If it's any help, verbose mode mentions this just before the error: ... # /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/tempfile.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/tempfile.py import tempfile # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/tempfile.pyc # /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/random.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/random.py import random # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/random.pyc dlopen("/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/math.so", 2); import math # dynamically loaded from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/math.so dlopen("/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib- dynload/_random.so", 2); import _random # dynamically loaded from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload/_random.so # /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/ascii.pyc matches /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/ascii.py import encodings.ascii # precompiled from /System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/encodings/ascii.pyc XML-RPC Error: <Fault 1: "<type 'exceptions.IOError'>:[Errno 32] Broken pipe">
  • Oct 21, 2009
    issue 2 (Connection refused error) commented on by bdefore   -   On 10.5.8 and python 2.5.1 I'm getting the error: XML-RPC Error: <Fault 1: "<type 'exceptions.IOError'>:[Errno 32] Broken pipe"> If I change PORT to something other than 2345, I see the error others are mentioning above.
    On 10.5.8 and python 2.5.1 I'm getting the error: XML-RPC Error: <Fault 1: "<type 'exceptions.IOError'>:[Errno 32] Broken pipe"> If I change PORT to something other than 2345, I see the error others are mentioning above.
  • Jul 29, 2009
    issue 2 (Connection refused error) commented on by beatportscott   -   Also getting this error on a Mac 10.5.6, Python 2.5.0
    Also getting this error on a Mac 10.5.6, Python 2.5.0
  • Apr 04, 2009
    issue 2 (Connection refused error) reported by tiktuk   -   I get a socket error when I try to run the program: $ ./fcshd.py "mxmlc /path/to/file.as" Starting the server, please wait... OK. Traceback (most recent call last): File "./fcshd.py", line 339, in <module> sys.exit(main(sys.argv)) File "./fcshd.py", line 335, in main return run_command(command) File "./fcshd.py", line 282, in run_command output = server.run_command(cmd) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/xmlrpclib.py", line 1147, in __call__ return self.__send(self.__name, args) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/xmlrpclib.py", line 1437, in __request verbose=self.__verbose File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/xmlrpclib.py", line 1183, in request self.send_content(h, request_body) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/xmlrpclib.py", line 1297, in send_content connection.endheaders() File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.py", line 856, in endheaders self._send_output() File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.py", line 728, in _send_output self.send(msg) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.py", line 695, in send self.connect() File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.py", line 679, in connect raise socket.error, msg socket.error: (61, 'Connection refused') What version of the product are you using? On what operating system? Revision 4, python 2.5.1 on Mac OS X 10.5.5.
    I get a socket error when I try to run the program: $ ./fcshd.py "mxmlc /path/to/file.as" Starting the server, please wait... OK. Traceback (most recent call last): File "./fcshd.py", line 339, in <module> sys.exit(main(sys.argv)) File "./fcshd.py", line 335, in main return run_command(command) File "./fcshd.py", line 282, in run_command output = server.run_command(cmd) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/xmlrpclib.py", line 1147, in __call__ return self.__send(self.__name, args) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/xmlrpclib.py", line 1437, in __request verbose=self.__verbose File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/xmlrpclib.py", line 1183, in request self.send_content(h, request_body) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/xmlrpclib.py", line 1297, in send_content connection.endheaders() File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.py", line 856, in endheaders self._send_output() File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.py", line 728, in _send_output self.send(msg) File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.py", line 695, in send self.connect() File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/httplib.py", line 679, in connect raise socket.error, msg socket.error: (61, 'Connection refused') What version of the product are you using? On what operating system? Revision 4, python 2.5.1 on Mac OS X 10.5.5.
  • Feb 12, 2009
    issue 1 (Patch to have it working for Windows - no-deamon mode) reported by trebor74hr   -   Script you wrote I found nice, but it doesn't work on windows (e.g. os.fork() doesn't exist on windows python). I wanted to adjust it for this purpose, so I needed to turn-off deamon mode (btw. I don't know how to implement such feature in python for windows). So now script works for windows like like this: - you need at least 2 dos prompts - deamon-mode is not possible - fcsh.exe is started in standard new process - in first you start server like this: python fcshd.py - in second you can: - compile things: - python fcshd.py "mxmlc test.mxml" - python fcshd.py "compile 2" - stop the server: - python fcshd.py --stop-server - server can be stopped in first prompt by ctrl+break There are some open issues: - python fcshd.py --stop-server - reports problem (btw. it stops server anyway): File "R:\env-lib\PYTHON25\lib\socket.py", line 331, in readline data = recv(1) socket.error: (10054, 'Connection reset by peer')
    Script you wrote I found nice, but it doesn't work on windows (e.g. os.fork() doesn't exist on windows python). I wanted to adjust it for this purpose, so I needed to turn-off deamon mode (btw. I don't know how to implement such feature in python for windows). So now script works for windows like like this: - you need at least 2 dos prompts - deamon-mode is not possible - fcsh.exe is started in standard new process - in first you start server like this: python fcshd.py - in second you can: - compile things: - python fcshd.py "mxmlc test.mxml" - python fcshd.py "compile 2" - stop the server: - python fcshd.py --stop-server - server can be stopped in first prompt by ctrl+break There are some open issues: - python fcshd.py --stop-server - reports problem (btw. it stops server anyway): File "R:\env-lib\PYTHON25\lib\socket.py", line 331, in readline data = recv(1) socket.error: (10054, 'Connection reset by peer')
  • Feb 03, 2009
    r4 (Two small fixes: (a) Use iso8859-1 for decoding flex output ...) committed by leo.soto   -   Two small fixes: (a) Use iso8859-1 for decoding flex output (as that is what I get here, dunno why) and (b) Set the locale to 'C', otherwise we can't match the output messages of fcsh
    Two small fixes: (a) Use iso8859-1 for decoding flex output (as that is what I get here, dunno why) and (b) Set the locale to 'C', otherwise we can't match the output messages of fcsh
  • Jan 21, 2009
    r3 (Report success if the compiled artifact is a swc instead of ...) committed by leo.soto   -   Report success if the compiled artifact is a swc instead of a swf
    Report success if the compiled artifact is a swc instead of a swf
  • Sep 23, 2008
    r2 (First working version) committed by leo.soto   -   First working version
    First working version
  • Sep 23, 2008
    Project flex-compiler-shell-daemon created by leo.soto   -   Simple daemonized wrapper for fcsh
    Simple daemonized wrapper for fcsh
 
Hosted by Google Code