Package: jython
Version: 2.5.3

Error message: OSError: [Errno 20000] Unknown error: 20000: '/tmp/t1'

This error is reproducible, by creating a directory and setting access rights, 
as shown below:

jython
Jython 2.5.3 (, Nov 21 2013, 23:15:42)
[OpenJDK 64-Bit Server VM (Oracle Corporation)] on java1.7.0_55
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.mkdir("/tmp/t1")
>>> os.chmod("/tmp/t1",744)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 20000] Unknown error: 20000: '/tmp/t1'
>>>

Any illegal file operations seem to throw this exception, e.g. recreating a 
directory that exists:
>>> import os
>>> os.mkdir("/tmp/t1")
>>> os.mkdir("/tmp/t1")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 20000] Unknown error: 20000: '/tmp/t1'
>>>

I tried to upgrade the Debian package to Jython 2.5.4-rc1, using a plain 
version of Jython 2.5.4rc1 from www.jython.org<http://www.jython.org>. This 
version works as it should:

/opt/jython2.5.4/bin/jython
Jython 2.5.4rc1 (2.5:723492dbab02, Feb 8 2013, 09:50:55)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_11
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.mkdir("/tmp/t1")
>>> os.chmod("/tmp/t1",744)
>>>

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:

(my port can be found at: https://launchpad.net/~nils-ulltveit-moe/+archive/ppa)

jython
"my" variable $jythonHome masks earlier declaration in same scope at 
/usr/bin/jython line 15.
Jython 2.5.4 (, Jun 22 2014, 19:28:56)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java1.7.0_11
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.mkdir("/tmp/t1")
>>> os.chmod("/tmp/t1",744)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
OSError: [Errno 20000] Unknown error: 20000: '/tmp/t1'
>>>

Since the plain vanilla 2.5.4rc1 version of Jython from 
www.jython.org<http://www.jython.org> 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.

This bug seems related to http://bugs.jython.org/issue1885.

Best regards,
Nils Ulltveit-Moe
__
This is the maintainer address of Debian's Java team
<http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers>. 
Please use
debian-j...@lists.debian.org for discussions and questions.

Reply via email to