Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File or stream is not seekable #7

Open
eirikr88 opened this issue Jul 4, 2017 · 1 comment
Open

File or stream is not seekable #7

eirikr88 opened this issue Jul 4, 2017 · 1 comment

Comments

@eirikr88
Copy link

eirikr88 commented Jul 4, 2017

Hi,

I'm running your code from a Raspberry Pi 3 Model B where it runs just fine under sudo rights, but without I get the following error:

Python 3.5.3 (default, Feb 20 2017, 12:20:42)
[GCC 4.9.2] on linux
>>> from spi import *
>>> spi = SPI("/dev/spidev0.0")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/pi/venv/lib/python3.5/site-packages/spi.py", line 137, in __init__
    self.handle = open(device, "w+")
io.UnsupportedOperation: File or stream is not seekable.

If you have any tips that would be great, I've added my user to the spi group that has write access to the device (spidev0.0). Thanks!

@cowratt
Copy link

cowratt commented Oct 11, 2019

dunkelstern@6cc68dc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants