python-openevse icon indicating copy to clipboard operation
python-openevse copied to clipboard

Errors on all commands

Open stopeject opened this issue 7 years ago • 6 comments

I didn't do anything with the openevse plugin for a while. Tried it today, and getting errors on all commands:

gt@U18:~$ python3
Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import openevse
>>> print (openevse.WifiOpenEVSE('10.0.0.7').status())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/gt/.local/lib/python3.6/site-packages/openevse.py", line 254, in status
    done, data = self._request('GS')
  File "/home/gt/.local/lib/python3.6/site-packages/openevse.py", line 898, in _request
    match = self.regex.match(resp.read())
TypeError: cannot use a string pattern on a bytes-like object

stopeject avatar May 11 '19 19:05 stopeject

python 3 encoding fun. will fix it

vintozver avatar May 11 '19 19:05 vintozver

Thanks.

stopeject avatar May 11 '19 19:05 stopeject

Sorry to bother you, I understand this is not a high priority project, butI'd like to know whether I should wait or try a different approach.

stopeject avatar Jun 11 '19 18:06 stopeject

@vintozver are you able to fix it? or maybe do you want me to check if I can do something?

tiramiseb avatar Jun 11 '19 20:06 tiramiseb

I'm also struggling with this library. Simple tests don't work for me. Serial doesn't work at all and wifi returns unexpected info. I can use screen to connect directly and everything works but nothing works through python. I noticed the openevse.py Serial section is trying to connect to AMA0 so I have changed that to the correct port (/dev/serial0) but it doesn't fix the issue.

image

image

kernelkraut avatar Jul 24 '19 09:07 kernelkraut

I personally have stopped using this library months ago, and honestly I doubt I will use it again because I switched to Go as my favorite language. I was glad to see that @vintozver could take over, but he doesn't seem very active. If anyone wants to help with this library, don't hesitate to tell so, I can give you RW access to the repository.

tiramiseb avatar Jul 24 '19 10:07 tiramiseb