python operation not permitted (graphtecprint)

Posted by eyecreate on Stack Overflow See other posts from Stack Overflow or by eyecreate
Published on 2010-04-24T20:16:02Z Indexed on 2010/04/24 20:23 UTC
Read the original article Hit count: 235

Filed under:
|
|
|
|

I'm running a python program. When it get's to these lines:
f = open("/dev/bus/usb/007/005", "r")
x = fcntl.ioctl(f.fileno(), 0x84005001, '\x00' * 256)
It fails saying:
IOError: [Errno 1] Operation not permitted
What could be causing this problem?

© Stack Overflow or respective owner

Related posts about python

Related posts about linux