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 18:52] pixycam |
wiki:v2:building_libpixyusb_as_a_python_module_on_linux [2019/08/08 21:09] pixycam [Errors] |
||
---|---|---|---|
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 96: | Line 96: | ||
- | If you want Python3 support, for example, make sure that your default "python" is Python3 before running ''build_python_demos.sh''. That is, make sure that Python3 is the version of Python that runs when you type in the "python" command in your shell. You can test this by running "python --version" at the shell prompt. | + | If you want Python3 support, for example, make sure that your default "python" is Python3 before running ''build\_python\_demos.sh''. That is, make sure that Python3 is the version of Python that runs when you type in the "python" command in your shell. You can test this by running "python --version" at the shell prompt. |
If it's not version 3 (or higher), change the default version to be Python3. The recommended way to do this may depend on your Linux distribution. | If it's not version 3 (or higher), change the default version to be Python3. The recommended way to do this may depend on your Linux distribution. | ||