You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I downloaded the newer version of OLA API. When I try to collect the DMX data with Python (py3.10), I came across with an error of:
" AttributeError: 'array.array' object has no attribute 'fromstring'"
To solve this I found 2 ways as follows.
**1. Manually arranging the files of OLA library: **
Go to " .local/lib/python3.10/site-packages/ola/ "
Open the " OlaClient.py " python script
Search for "fromstring" and change them as "frombytes" (there were two function naming changed in OLA 0.10.7 lib)
Create another python environment with Python 3.8.0, and there will be no problem on receiving DMX data.
Have a nice day ;)
The text was updated successfully, but these errors were encountered:
peternewman
changed the title
Formstring data type issue and solution in Python3.10 and newer versions
Fromstring data type issue and solution in Python3.10 and newer versions
Dec 31, 2024
The problem relays on that the Python's newer versions have no longer fromstring data type support and I do not know the exact reason. This modification should done in OLA Library for further applications.
Even if I try to download with pip the library yields this error of:
$ pip3 install ola==0.10.9
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement ola==0.10.9 (from versions: 0.10.7)
Hello guys,
I downloaded the newer version of OLA API. When I try to collect the DMX data with Python (py3.10), I came across with an error of:
" AttributeError: 'array.array' object has no attribute 'fromstring'"
To solve this I found 2 ways as follows.
**1. Manually arranging the files of OLA library: **
**2. Downgrading Python version: ** (Not recommended)
Have a nice day ;)
The text was updated successfully, but these errors were encountered: