On 14.05.2013 21:00, krishna2pra...@gmail.com wrote:
# first, open the file as a plain binary try: self.file = open(/dev/relpcfpga, "r+b", buffering=0)
Aren't you missing the quotes for "/dev/relpcfpga"?
The method seek() complains "OSError: [Errno 29] Illegal seek" The device relpcfpga is a char device.
Are you sure that your device is seekable? Try f = open("/dev/relpcfpga", "r+b", buffering=0) print(f.seekable()) Bye, Andreas -- http://mail.python.org/mailman/listinfo/python-list