<< return to Pixycam.com

Getting "pixy.init() returned -1" when trying to run demos

Hello everyone.
I’m trying to connect pixy2 on my raspberry pi so I could use it in my python code.
I went through these installations:

https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:hooking_up_pixy_to_a_raspberry_pi
https://docs.pixycam.com/wiki/doku.php?id=wiki:v2:building_libpixyusb_as_a_python_module_on_linux

and when I get to testing if it works with the demos I get the following error:
“Connection to Pixy2…Error
pixy.init() returned -1”

The pixy2 is connected through a USB to the raspberry pi.

I would really love to get some help I’ve been trying to solve this for a few days now.

Thanks a lot

Hello,
Hmm, just to make sure, can you test your Pixy with PixyMon to see if it’s functioning as expected?

Edward