<< return to Pixycam.com

Trouble getting python example to work

Ultimatly I’m looking to get the Pixy data out via a json file or a websocket to a node server. I thought maybe I could do this on a Raspberry pi with python if I can get the example working.

I got the other examples working on windows and Linux (hello_pixy), but having trouble with the Python example: [[http://www.cmucam.org/projects/cmucam5/wiki/Building_libpixyusb_as_a_Python_module_on_Linux]]

I updated my pixy cam to 1.0.2 and re-taught the colours via windows PixyMon (also 1.0.2). After the build script runs and running “python get_blocks.py” it only prints the first line: “Pixy Python SWIG Example – Get Blocks” and nothing else.

I don’t see any errors

Hi Jason,

Have you been able to get it working when running just the C++ version of libpixyusb? Seems like everything is working fine but you’re just not getting any data. Have you been able to get data using any other communication method?

Scott

I’m in the same boat here. I don’t get any data out of either the hello_pixy example or the python get_blocks example. Version and chirps seem to be returning without an issue though, so it does seem that there is some communication going on…

Try running with sudo.

So “sudo python…”

Nope still nothing… I just updated to 2.0.2 as well and still no go (although it seems semi-better in the pixymon app on my Mac)