./configure --enable-python-libs
checking for python module: google.protobuf... no
configure: error: failed to find required module google.protobuf
sudo apt-get install libcppunit-dev libcppunit-1.13-0 uuid-dev pkg-config libncurses5-dev libtool autoconf automake g++ libmicrohttpd-dev libmicrohttpd10 protobuf-compiler libprotobuf-lite10 python-protobuf libprotobuf-dev libprotoc-dev zlib1g-dev bison flex make libftdi-dev libftdi1 libusb-1.0-0-dev liblo-dev libavahi-client-dev python-numpy
libprotobuf-lite10 is outdated? The actualversion is 13?
What I did was to install them one by one, and in case of error I took the latest version of that library
BR,
HR
Hi,So, with the command "sudo apt-get install ola-python", everything is ok, when I launch the basic script, I don't have any problems... But nothing moves on my DMX devices (I use an Enttec Open DMX USB), so can you help me with this issue ?
And I would like to know if it's possible to program with python 3 because I write a script with Spyder (in Anaconda) which is in Python 3 and when I can't run it with the command "python tests.py", I have to type "python3 tests.py", but it doesn't work with Ola :/
... Yes I ask a lot of questions because I'm new in Raspberry and Ola :D But thanks for fixing my first problem
import array
from ola.ClientWrapper import ClientWrapper
def DmxSent(state):
wrapper.Stop()
universe = 1
data = array.array('B', [10, 50, 255])
wrapper = ClientWrapper()
client = wrapper.Client()
client.SendDmx(universe, data, DmxSent)
wrapper.Run()Device 10: StageProfi Device
port 0, OUT /dev/ttyUSB0, patched to universe 1
What does ola_dev_info output?
Try disabling the Stageprofi plugin.
Device 1: Dummy Device
port 0, OUT Dummy Port, RDM supported
Device 2: ArtNet [192.168.1.16]
port 0, IN, priority 100, RDM supported
port 1, IN, priority 100, RDM supported
port 2, IN, priority 100, RDM supported
port 3, IN, priority 100, RDM supported
port 0, OUT, RDM supported
port 1, OUT, RDM supported
port 2, OUT, RDM supported
port 3, OUT, RDM supported
Device 3: ShowNet [192.168.1.16]
port 0, IN ShowNet 1-512, priority 100
port 1, IN ShowNet 513-1024, priority 100
port 2, IN ShowNet 1025-1536, priority 100
port 3, IN ShowNet 1537-2048, priority 100
port 4, IN ShowNet 2049-2560, priority 100
port 5, IN ShowNet 2561-3072, priority 100
port 6, IN ShowNet 3073-3584, priority 100
port 7, IN ShowNet 3585-4096, priority 100
port 0, OUT ShowNet 1-512
port 1, OUT ShowNet 513-1024
port 2, OUT ShowNet 1025-1536
port 3, OUT ShowNet 1537-2048
port 4, OUT ShowNet 2049-2560
port 5, OUT ShowNet 2561-3072
port 6, OUT ShowNet 3073-3584
port 7, OUT ShowNet 3585-4096
Device 4: ESP Net [192.168.1.16]
port 0, IN, priority 100
port 1, IN, priority 100
port 2, IN, priority 100
port 3, IN, priority 100
port 4, IN, priority 100
port 0, OUT
port 1, OUT
port 2, OUT
port 3, OUT
port 4, OUT
Device 5: SandNet [192.168.1.16]
port 0, IN, priority 100
port 1, IN, priority 100
port 2, IN, priority 100
port 3, IN, priority 100
port 4, IN, priority 100
port 5, IN, priority 100
port 6, IN, priority 100
port 7, IN, priority 100
port 0, OUT
port 1, OUT
Device 6: Pathport [192.168.1.16]
port 0, IN, priority 100
port 1, IN, priority 100
port 2, IN, priority 100
port 3, IN, priority 100
port 4, IN, priority 100
port 5, IN, priority 100
port 6, IN, priority 100
port 7, IN, priority 100
port 0, OUT
port 1, OUT
port 2, OUT
port 3, OUT
port 4, OUT
port 5, OUT
port 6, OUT
port 7, OUT
Device 7: E1.31 (DMX over ACN) [192.168.1.16]
port 0, IN, priority inherited
port 1, IN, priority inherited
port 2, IN, priority inherited
port 3, IN, priority inherited
port 4, IN, priority inherited
port 0, OUT, priority inherited
port 1, OUT, priority inherited
port 2, OUT, priority inherited
port 3, OUT, priority inherited
port 4, OUT, priority inherited
Device 8: OSC Device
port 0, IN /dmx/universe/%d, priority 100
port 1, IN /dmx/universe/%d, priority 100
port 2, IN /dmx/universe/%d, priority 100
port 3, IN /dmx/universe/%d, priority 100
port 4, IN /dmx/universe/%d, priority 100
Device 9: KiNet Device
Device 10: StageProfi Device
port 0, OUT /dev/ttyUSB0, patched to universe 1
pi@raspberrydmx:~ $ lsusb
Bus 001 Device 004: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
In fact, I have another problem now, when I use ola with "ola_dmxconsole -u1", everything works conrrectly (that's why I said that everything was fine in the previous message) ...But when I run a simple python script, nothing happens :/
I solved my problem with a simple line in my python script.First I followed the tutorial (like I said) and in the tutorial, we only send a value for the first 3 channels like you said in the previous message:data = array.array('B', [10, 55, 255])So when I watched the dmx monitor I saw that a value was assigned to the first 3 channels and all the rest was crossed. So I tried to send an array with 512 value with this:
data = array.array('B', [0]*512)data[0] = 255With this method, everything works fine. So now, all my problems (with OLA of course) are solved.