KeithSloan
Posts: 321
Joined: Tue Dec 27, 2011 9:09 pm

Sonic Pi from Python.

Tue Nov 01, 2016 2:21 pm

I would like to use Sonic Pi from Python. I tried the instructions at https://pypi.python.org/pypi/python-sonic/0.1.2

But I get error

Code: Select all

pip install python-sonic
Downloading/unpacking python-sonic
  Could not find any downloads that satisfy the requirement python-sonic
Cleaning up...
No distributions at all found for python-sonic
Storing debug log for failure in /home/pi/.pip/pip.log
I also tried

Code: Select all

sudo pip install python-osc
Downloading/unpacking python-osc
  Downloading python-osc-1.6.tar.gz
  Running setup.py (path:/tmp/pip-build-3uhgrC/python-osc/setup.py) egg_info for package python-osc

Installing collected packages: python-osc
  Running setup.py install for python-osc
      File "/usr/local/lib/python2.7/dist-packages/pythonosc/dispatcher.py", line 53
        yield from handlers
                 ^
    SyntaxError: invalid syntax


Successfully installed python-osc
Cleaning up...
Which says it was successful but clearly there is a problem with the dispatcher

Return to “General discussion”