Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on opening #15

Closed
bbhtt opened this issue Aug 14, 2022 · 3 comments
Closed

Error on opening #15

bbhtt opened this issue Aug 14, 2022 · 3 comments

Comments

@bbhtt
Copy link

bbhtt commented Aug 14, 2022

I can see the following log coming from OLA while running the flatpak:

common/io/IOUtils.cpp:39: open(/dev/dmx0): No such file or directory
plugins/opendmx/OpenDmxPlugin.cpp:80: Could not open /dev/dmx0 No such file or directory
common/io/IOUtils.cpp:39: open(/dev/kldmx0): No such file or directory
plugins/karate/KaratePlugin.cpp:79: Could not open /dev/kldmx0 No such file or directory
Traceback (most recent call last):
  File "/app/lib/python3.9/site-packages/olc/application.py", line 271, in on_fd_read
    self.ola_thread.ola_client.SocketReady()
  File "/app/lib/python3.9/site-packages/ola/OlaClient.py", line 803, in SocketReady
    self._channel.SocketReady()
  File "/app/lib/python3.9/site-packages/ola/rpc/StreamRpcChannel.py", line 88, in SocketReady
    self._ProcessIncomingData()
  File "/app/lib/python3.9/site-packages/ola/rpc/StreamRpcChannel.py", line 269, in _ProcessIncomingData
    self._HandleNewMessage(data)
  File "/app/lib/python3.9/site-packages/ola/rpc/StreamRpcChannel.py", line 283, in _HandleNewMessage
    self.MESSAGE_HANDLERS[message.type](self, message)
  File "/app/lib/python3.9/site-packages/ola/rpc/StreamRpcChannel.py", line 327, in _HandleResponse
    self._InvokeCallback(response)
  File "/app/lib/python3.9/site-packages/ola/rpc/StreamRpcChannel.py", line 370, in _InvokeCallback
    response.callback(response.controller, response.reply)
  File "/app/lib/python3.9/site-packages/ola/OlaClient.py", line 932, in <lambda>
    lambda x, y: self._GetDmxComplete(callback, x, y))
  File "/app/lib/python3.9/site-packages/ola/OlaClient.py", line 1481, in _GetDmxComplete
    data.fromstring(response.data)
AttributeError: 'array.array' object has no attribute 'fromstring'

Not sure if they break some functionality.

The bit about missing devices under /dev/* can be ignored I think OpenLightingProject/ola#513. Maybe those plugins should be disabled.

@bbhtt
Copy link
Author

bbhtt commented Aug 14, 2022

Disabling the openmdx and karate plugin fixes the warning.

@mikacousin
Copy link
Owner

mikacousin commented Aug 14, 2022

Ok for warnings (we'll see that in #14)

For the Traceback, it's due to the version of ola embedded in the flatpak and the latest versions of python. This issue has been fixed (OpenLightingProject/ola#1690) but there has been no release since.
I don't really know what we can do...

@bbhtt
Copy link
Author

bbhtt commented Aug 14, 2022

For the Traceback, it's due to the version of ola embedded in the flatpak and the latest versions of python. This issue has been fixed (OpenLightingProject/ola#1690) but there has been no release since.
I don't really know what we can do...

Thanks! I think we can safely ignore it for the time being.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants