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

python3 encoding #8

Open
rgusso opened this issue Jan 16, 2020 · 0 comments
Open

python3 encoding #8

rgusso opened this issue Jan 16, 2020 · 0 comments

Comments

@rgusso
Copy link

rgusso commented Jan 16, 2020

python3 -V
Python 3.7.3
from pyvantagepro import VantagePro2
import datetime as d
s = d.datetime.strptime('2020-01-16 19:00:00','%Y-%m-%d %H:%M:%S')
f = d.datetime.strptime('2020-01-16 19:30:00','%Y-%m-%d %H:%M:%S')
device = VantagePro2.from_url('tcp:192.168.0.106:22222')
data = device.get_archives(s,f)
File "/usr/local/lib/python3.7/dist-packages/pyvantagepro/parser.py", line 66, in checksum
    for byte in array(str('B'), bytes(self.data)): 
TypeError: string argument without an encoding

is this a problem with python3?

UPDATE
Working fine in python2.7

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

1 participant