Option g is ambiguous (gecos, gid, group)DougieLawson wrote:How about sudo adduser -G tty pi ? Or you've got to write a udev rule to change the ownership every time you reboot.
'sudo adduser pi dialout' does nothing to solve the problem in python.DougieLawson wrote:That's an ugly temporary hack. Add user pi to the tty group or your program will break next time you reboot your RPi.boylesg wrote:sudo chown pi:pi /dev/ttyACM0
This did the trick.
Pi 2 B+ I think it is.bensimmo wrote:Is it not serial0 now, especially if using the Pi3?
Would the Bluetooth deny access to ttyAMA0 ?
Of course it could be the other Pi's?
I never had to alter any groups (but I am 'pi') to get serial working.
Code: Select all
import serial
port = serial.Serial("/dev/ttyAMA0", baudrate=115200, bytesize=8, parity='N', stopbits=1, timeout=3.0)
Thankyou JimmyJimmyN wrote:Right click in the taskbar.
Click on "Add/Remove Panel Items".
Click on the "Add" button.
Scroll down the list till you see "Ejecter" and add it.
You tell me - I am new to doing web pages on Raspberry Pi.stderr wrote:Isn't that due to whatever user is running the code isn't part of the video group?boylesg wrote: now I get "Array ( [0] => * failed to open vchiq instance ) 255" on my web page.