-
Notifications
You must be signed in to change notification settings - Fork 50
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
Python 3 reads being converted to str #60
Comments
@bobfox, by my reading the master branch doesn't work with py3 right now. Do you know of anyone using it successfully with py3? |
Anybody else? Does pysunspec master actually work for anyone talking to a device on Python 3? By my reading it can't. This leaves pysunspec working exclusively on Python 2.7 which is EOL already. |
I believe version 2.0.0 works with Python 3. I know of several who are using it in that context. I agree that the support could probably be improved/optimized but would prefer to do that in the next version that provides support for all of the proposed updates to SunSpec modeling. Does that seem reasonable? We would like to clear all the issues in the models repository and pysunspec repository and then do a 2.0.0 release. |
There's no branch or tag so I guess f7c02e1 is v2.0.0? Or is it something after that commit? From what I can tell that version will never be able to connect to a device in Python 3 because it checks
|
516287f
a3e7ede
It seems that if we switch the read bytes to
str
then they will never compare equal to thebytes
(byte string) below. Why are we trying to work withstr
in py3 at all for generic incoming bytes? Sure, occasionally we'll want to decode some bytes to a string but not every byte and not withchr()
normally.pysunspec/sunspec/core/client.py
Line 229 in 5242ea9
(@jbm950, @bobfox)
The original symptom is:
Despite having gotten a response starting with
SunS
for base address0
.The text was updated successfully, but these errors were encountered: