Closed soutaroumaejima closed 5 years ago
Second question is that there are no reaction controlled by Python API.
I tried to set same OLA environment on virtual machine(ubuntu 16.04 on host ubuntu 16.04 sharing USB device using Vagrant and Virtualbox).
I don't really know why, but on this VM, above-mentioned problem didn't occure and make
, make check
, make install
went well.
After that, I had run Python API test code(https://www.openlighting.org/ola/developer-documentation/python-api/).
This VM share USB device connected to host machine so that It should work in theory.
Actuary, there are no error when had run test code. However, DMX device didn't move.
I have tried ola_dmxconsole
, but this result is same.
Maybe, DMX device didn't catch signal correctly.
To control device, what is that I have to confirm?
Using devices
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()
Hi @soutaroumaejima ,
As per the failure message, have you done a "Check for another instance of olad running"? Can you show us the output of ps aux | grep -i ola when it's failing please?
Regarding your second failure, have you patched the Enttec device to universe 1?
As per the failure message, have you done a "Check for another instance of olad running"? Can you show us the output of ps aux | grep -i ola when it's failing please? Sorry, I overlooked that message. This is the result of
ps aux | grep -i ola
maejima-i3@maejimai3-DS61:~/ola$ ps aux | grep -i ola maejima+ 2871 0.0 0.0 542444 14556 ? Sl 15:06 0:00 olad --daemon --syslog maejima+ 5759 0.0 0.0 13980 936 pts/6 S+ 15:15 0:00 grep --color=auto -i ola
I have kill PID 2871 and retried `make check`. Then, error had not occured. Is this operation correct?
Regarding your second failure, have you patched the Enttec device to universe 1?
Yes. This is the result of ola_dev_info
.
maejima-i3@maejimai3-DS61:~/ola/python/examples$ ola_dev_info
common/network/TCPSocket.cpp:158: connect(127.0.0.1:9010): Connection refused
Device 1: Enttec Usb Pro Device, Serial #: 02246372, firmware 1.44
port 0, IN, priority 100
port 0, OUT, patched to universe 1
And I'm sorry, I had forgotten operation of olad -l 4
when running python code.
This is the result of python ola_send_dmx.py
.
maejima-i3@maejimai3-DS61:~/ola/python/examples$ python ola_send_dmx.py
Success!
After that, DMX light was operated successfully. Thank you for promptly handling the matter with care.
I have kill PID 2871 and retried
make check
. Then, error had not occured. Is this operation correct?
Yes, it can't launch the test copy of olad during make check if olad is already running elsewhere, so that's working as expected.
After that, DMX light was operated successfully. Thank you for promptly handling the matter with care.
Excellent, glad to hear you've got it working now. I'll close this issue.
I have two questions.
First question is make check error of OlaClientTester with Python API. I want to use Python API and I run
./configure --enable-python-libs
. After that, I didmake
andmake check
. At that time, error occurred. This istest-suite.log
.test-suite.log is here
This problem is similar to #1165, but I didn't solve it. In addition, error have remained in spite of running command
./configure --disable-python-libs
. If you know about that, please let me know.