<< return to Pixycam.com

Python get_blocks_python_demo.py Segmentation FaultPython get_blocks_python_demo.py Segmentation Fault

I successfully went through the Linux install for Python but am getting the following when executing python get_blocks_python_demo.py:

Pixy2 Python SWIG Example – Get Blocks
Segmentation fault

Any thoughts on how to proceed? I’m running Python 2.7.13 on a Raspberry Pi. The C++ demos work BTW.

Hello,
Have you been able to run the demos in libpixyusb2? In particular the get_blocks_cpp_demo:

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

Edward

Have you tried running it with sudo? I found that the pixy.rules file included in the distro does not actually work. I had to change mine to:

# Pixy device, set permissions
SUBSYSTEM=="usb", ATTR{product}=="Pixy", MODE="0660", GROUP="pi"

What linux distribution are you running?

I had the same issue. It turns out that I had PixyMon running at the same time. When I exited PixyMon and tried it again things worked. I’m running Ubuntu 18.0.4 and Python 2.7.15rc1.

Ah good find! Thanks for the note :slight_smile: