This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
wiki:v2:building_libpixyusb_as_a_python_module_on_linux [2019/08/08 21:07] pixycam [Python2 vs Python3] |
wiki:v2:building_libpixyusb_as_a_python_module_on_linux [2019/08/08 21:11] pixycam [Python2 vs Python3] |
||
---|---|---|---|
Line 86: | Line 86: | ||
''ImportError: No module named _pixy'' | ''ImportError: No module named _pixy'' | ||
- | Python is having trouble finding the Pixy Python library. This may be because you are running in another directory. Just copy over the \_pixy.so and pixy.py files in the ''pixy2/build/python_demos'' directory to your directory and it should work. | + | Python is having trouble finding the Pixy Python library. This may be because you are running in another directory. Just copy over the \_pixy.so and pixy.py files in the ''pixy2/build/python_demos'' directory to the current directory and error should go away. |
If you still get an error, you may be running into a Python version issue. Please see the next section. | If you still get an error, you may be running into a Python version issue. Please see the next section. | ||
Line 93: | Line 93: | ||
===== Python2 vs Python3 ===== | ===== Python2 vs Python3 ===== | ||
- | This library will support both Python2 and Python3, but sometimes it will compile fine but provide import errors when you try to run one of the Python demos. | + | This library will support both Python2 and Python3, but sometimes even though it will compile fine, you may still see import errors when you try to run one of the Python demos. This may be because you are running a different version of Python than was used to compile the Pixy Python library. |