We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
fromstring is removed from python 3.9. (changelog) related issue: python/cpython#83097
currently mavutil has an instance of it
pymavlink/mavutil.py
Line 2286 in ebc4bd4
running it produces error: "'array.array' object has no attribute 'fromstring' python"
I changed the line as
if type(buf) == bytes: byte_buf.frombytes(buf) elif type(buf) == str: byte_buf.fromlist(list(buf.encode('utf8')))
in my local, which solved error. But I have no clue if this is correct, and I have not tested it well
The text was updated successfully, but these errors were encountered:
This error should have been resolved by #666 which is now merged.
Sorry, something went wrong.
that line is still in the master branch, did the merge somehow made that line unaccesible ?
Line 2296 in 7d5174f
Ah, true. I was thinking about the generated code.
Successfully merging a pull request may close this issue.
fromstring is removed from python 3.9. (changelog)
related issue: python/cpython#83097
currently mavutil has an instance of it
pymavlink/mavutil.py
Line 2286 in ebc4bd4
running it produces error:
"'array.array' object has no attribute 'fromstring' python"
I changed the line as
in my local, which solved error. But I have no clue if this is correct, and I have not tested it well
The text was updated successfully, but these errors were encountered: