FlamingLotusGirls / FireSculptureController

Controller framework with the goal of being useful for all FLG and other big fire sculptures
2 stars 1 forks source link

NameError if the OSC library is not installed #1

Closed deleted closed 10 years ago

deleted commented 10 years ago

In OSC.py:20

try:
    from OSC import OSCServer,OSCClient, OSCMessage
except:
    inputParams['OscMultiInput']['unavailable'] = True

Looks like this is intended to autoconfigure if OSC can't be imported, but it fails because inputParams isn't defined. I'm not sure where to get that reference from.

deleted commented 10 years ago

KeyError. Probably wants to be "osc multi"

(venv)blowfish:~/flg/FireSculptureController>./flaskServer.py
Traceback (most recent call last):
  File "./flaskServer.py", line 9, in <module>
    from SculptureController import SculptureController
  File "/home/ted/flg/FireSculptureController/SculptureController.py", line 8, in <module>
    from ProgramModules.InputManager import InputManager
  File "/home/ted/flg/FireSculptureController/ProgramModules/InputManager.py", line 5, in <module>
    import Inputs
  File "/home/ted/flg/FireSculptureController/Inputs/__init__.py", line 5, in <module>
    from Osc import OscMultiInput
  File "/home/ted/flg/FireSculptureController/Inputs/Osc.py", line 20, in <module>
    inputTypes['OscMultiInput']['unavailable'] = True
KeyError: 'OscMultiInput'