sean-obrien / rpotter

Raspberry Potter - Use a wand to control the IoT (Internet of Things)
https://www.raspberrypotter.net/
MIT License
57 stars 51 forks source link

(Raspberry Potter:607): Gtk-WARNING **: cannot open display: #13

Closed robboz4 closed 5 years ago

robboz4 commented 5 years ago

Hi! I'm trying to make this project and I get the error when I try to test it.

sudo python3 rpotter.py Unable to init server: Could not connect: Connection refused

(Raspberry Potter:607): Gtk-WARNING **: cannot open display:

I have followed the updates as far as I know. The camera is working as I tested it with raspistill command. It puts an image on the connected monitor. The PIGPIOD program is running.

The stage I'm at is where you are supposed to test the script before setting up the daemons for auto running.

I tried both the rpotter.py files. The one in the Ollivanderlamp directory gives this warning, basically the same... sudo python3 rpotter.py Initializing point tracking START switch_pin ON for pre-video test Unable to init server: Could not connect: Connection refused

(Raspberry Potter:746): Gtk-WARNING **: cannot open display:

I don't have a particle.io board hooked up to a GPIO pin as I was going to modify the code to use neopixels on the PI Zero I am using. I don't think that not having anything connected to the IO pin should cause a init server error, but I'm not sure what this error means.

Any assistance would be appreciated.

robboz4 commented 5 years ago

Never mind! I didn't have the desktop ( X-Windows) running. But I do have other errors to look into. Will post if I need further help.