Skip to content

python3 encoding #8

Description

@rgusso
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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions