Skip to content

Further work needed for this to work using Python3 #3

@dhdurgee

Description

@dhdurgee

I was glad to see this package available as I had used the Python 2.7 version in the past. Unfortunately it is far from functional at this time. I am a novice at best working in Python, so while I made some progress I finally decided to simply use the 2.7 version instead as it still works.

In addition to the change of a "+" to a "," noted in the other issue I had to modify line 1 to add a "3" to "python" to get it to run here. Once I had this done I was able to get the "usage" displayed but attempts to use the package ran into numerous TypeErrors here.

Using pdb for the first time I was able to correct the problems in cc_device_finder.py such that I was able to use the "-devicelist" command. Attempting to go further ran into errors in cc_message.py that would require more experience than I have to remedy as I don't know enough about python3 or the protocol being implemented.

I have attached my modified cc_device_finder.py for your use. Only four lines required changes to get this working, all to resolve "str" versus "byte" TypeErrors.

Hopefully someone else can pick up from here and make the necessary changes to cc_message.py to make this functional. Until that point I will continue to work with the 2.7 version here.

cc_device_finder.zip

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions