Message6816

Author halfie
Recipients halfie
Date 2012-03-19.09:36:49
SpamBayes Score 8.1418206e-13
Marked as misclassified No
Message-id <1332149810.77.0.017291264964.issue1856@psf.upfronthosting.co.za>
In-reply-to
Content
I am unable to write to files under /sys (sysfs) directory using Jython 2.5.2

When I run the attached "jyproc.py" file, I get

Traceback (most recent call last):
  File "jyproc.py", line 4, in <module>
    f.write("1")
IOError: [Errno 13] Permission denied: '/sys/block/sdc/device/delete'

...

Same code runs fine under Python 2.7.2. 

$ jython -V
Jython 2.5.2

$ java -version
java version "1.6.0_30"
Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
Java HotSpot(TM) 64-Bit Server VM (build 20.5-b03, mixed mode)
History
Date User Action Args
2012-03-19 09:36:50halfiesetrecipients: + halfie
2012-03-19 09:36:50halfiesetmessageid: <1332149810.77.0.017291264964.issue1856@psf.upfronthosting.co.za>
2012-03-19 09:36:50halfielinkissue1856 messages
2012-03-19 09:36:50halfiecreate