<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Package: jython<br>
Version: 2.5.3<br>
<br>
Error message: OSError: [Errno 20000] Unknown error: 20000: '/tmp/t1'<br>
<br>
This error is reproducible, by creating a directory and setting access rights, as shown below:<br>
<br>
jython<br>
Jython 2.5.3 (, Nov 21 2013, 23:15:42) <br>
[OpenJDK 64-Bit Server VM (Oracle Corporation)] on java1.7.0_55<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
>>> import os<br>
>>> os.mkdir("/tmp/t1")<br>
>>> os.chmod("/tmp/t1",744)<br>
Traceback (most recent call last):<br>
  File "<stdin>", line 1, in <module><br>
OSError: [Errno 20000] Unknown error: 20000: '/tmp/t1'<br>
>>> <br>
<br>
Any illegal file operations seem to throw this exception, e.g. recreating a directory that exists:<br>
>>> import os<br>
>>> os.mkdir("/tmp/t1")<br>
>>> os.mkdir("/tmp/t1")<br>
Traceback (most recent call last):<br>
  File "<stdin>", line 1, in <module><br>
OSError: [Errno 20000] Unknown error: 20000: '/tmp/t1'<br>
>>><br>
<br>
I tried to upgrade the Debian package to Jython 2.5.4-rc1, using a plain version of Jython 2.5.4rc1 from
<a href="http://www.jython.org" target="_blank">www.jython.org</a>. This version works as it should:<br>
<br>
/opt/jython2.5.4/bin/jython<br>
Jython 2.5.4rc1 (2.5:723492dbab02, Feb 8 2013, 09:50:55) <br>
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_11<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
>>> import os<br>
>>> os.mkdir("/tmp/t1")<br>
>>> os.chmod("/tmp/t1",744)<br>
>>> <br>
<br>
I then tried to port the Debian source to the new upstream Jython 2.5.4-rc1, since I need working setuptools,  but the same error occurs here:<br>
<br>
(my port can be found at: https://launchpad.net/~nils-ulltveit-moe/+archive/ppa)<br>
<br>
jython<br>
"my" variable $jythonHome masks earlier declaration in same scope at /usr/bin/jython line 15.<br>
Jython 2.5.4 (, Jun 22 2014, 19:28:56) <br>
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_11<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
>>> import os<br>
>>> os.mkdir("/tmp/t1")<br>
>>> os.chmod("/tmp/t1",744)<br>
Traceback (most recent call last):<br>
  File "<stdin>", line 1, in <module><br>
OSError: [Errno 20000] Unknown error: 20000: '/tmp/t1'<br>
>>><br>
<br>
Since the plain vanilla 2.5.4rc1 version of Jython from <a href="http://www.jython.org" target="_blank">
www.jython.org</a> works, but neither the Debian version 2.5.3 nor a ported upstream 2.5.4rc1 version works, then this seems like a problem caused by some side effect of the packaging.<br>
<br>
This bug seems related to http://bugs.jython.org/issue1885.<br>
<br>
Best regards,<br>
Nils Ulltveit-Moe<br>
</div>
</body>
</html>