-
- Posts: 48
- Joined: Fri Apr 08, 2016 1:10 pm
Installng Python-osc on Rpi3
I have been trying to follow the project Ultrasonic Theremin shown in the Raspbery Pi resources. It uses Sonic Pi and Python to interact, it uses a Python library 'python-osc from which the python script imports two modules. I have tried to install the Python-Osc library and it appears to install OK. However when I try to compile a script Python throws an error at the import line 'Error - module no found'. Can any one tell me the correct way to install the library and then check that it is present.?
Re: Installng Python-osc on Rpi3
How did you install it (exact command)?
Do you want to use it with python 2 or 3?
To install it for python 3 with pip you need to use
Do you want to use it with python 2 or 3?
To install it for python 3 with pip you need to use
Code: Select all
sudo pip3 install python-osc
Re: Installng Python-osc on Rpi3
What @DirkS said corresponds with what it says in the software Resources for that project:Can any one tell me the correct way to install the library and then check that it is present.?
https://www.raspberrypi.org/learning/ul ... /software/
To test it, simply follow the instructions at Step 4 Sending notes from Python in the main tutorial: https://www.raspberrypi.org/learning/ul ... worksheet/
Note that at Step 2 Detecting distance you are required to use Python3 for this project.
If you still have trouble post the entire error message you are getting so that someone can interpret it for you.
-
- Posts: 48
- Joined: Fri Apr 08, 2016 1:10 pm
Re: Installng Python-osc on Rpi3
Many thanks Dirk and Mr Goode for quick replies to my query. I think DIrk has supplied the correct form of command to enter to install the Library. I had simply entered " pip install python-osc" , I had missed the sudo pip3 part of the command so that is probably why I got the run-time error message . I will try again tomorrow with correct command. Would I need to remove any garbage that my attempt made before I try again.?
Re: Installng Python-osc on Rpi3
You can, but it's not essential. Modules for Python 2 and 3 are installed in a different directory.fotoartist78 wrote:Would I need to remove any garbage that my attempt made before I try again.?