With a new system (Ubuntu Studio 14.04.1, 64bit) suddenly the SenseStage didn’t want to run. Especially the ./run_local.sh
script was giving me pain. It turned out the culprit was virtualenv which had to be setup anew. Since I’m not fluent in python and/or virtualenv it took me a while, but thanks to online community (stackoverflow.com, virtualenv.readthedocs.org) I managed to fix it:
backup old virtualenv:
1 2 |
$ cd cd ~/src/SenseStageLeben/ $ mv virtualenv virtualenv_bak |
install a systemwide virtualenv tool:
1 |
$ wajig install python-virtualenv |
create a new virtual environment:
1 |
$ virtualenv --system-site-packages virtualenv |
copy some packages into new environment:
1 2 3 4 |
$ cd ~/src/SenseStageLeben/virtualenv_old/local/lib/python2.7/site-packages $ cp -t ~/src/SenseStageLeben/virtualenv/local/lib/python2.7/site-packages \ pydon pydon-0.29-py2.7.egg-info pyserial-2.6_leben-py2.7.egg-info \ serial xbee XBee-2.1.0_leben-py2.7.egg-info |
don’t forget to re-install pyOSC:
1 2 |
$ cd ~/src/SenseStageLeben/ssdn_python/pyosc $ sudo ./setup.py install |
plug the controler bee, make it (/dev/ttyUSB0) accessible:
either add user to group dialout
1 |
$ adduser random dialout |
or change permissions (temporarily):
1 |
$ chmod 777 /dev/ttyUSB0 |
run the controller script run_local.sh in ~/src/SenseStageLeben/transmittance/minibee
1 2 3 4 5 |
/home/random/src/SenseStageLeben/virtualenv/local/bin/python \ /home/random/src/SenseStageLeben/virtualenv/local/lib/python2.7/site-packages/pydon/minihiveosc.py \ -c /home/random/src/SenseStageLeben/transmittance/minibee/config.xml \ -a True \ $1 |
Troubles with SuperCollider
Due to change of system, a LADSPA plugin for SC was not found. Had to compile it.
1 2 3 4 5 6 7 8 9 10 |
cd ~/src/SUPERCOLLIDER mv sc3-plugins sc3-plugins_bak git clone https://github.com/supercollider/sc3-plugins.git cd sc3-plugins git submodule init && git submodule update mkdir build cd build cmake -DSC_PATH=/home/random/src/SUPERCOLLIDER/supercollider/ .. make sudo make install |