wallix/pylogsparser

Python 3.x support

techrna opened this issue · 1 comments

We have our legacy application which runs on python 2.7. In application we are using this library.
So we tried to use these libraries in 3.7 version. It gets installed, but there is syntax errors will interpret .Because the library is written in python 2.7.
Basically documents need to be updated which python version it supports.
And secondly we tried to convert the library in python 3.x syntax using 2to3 7 libraries. But we are facing issues while using it after converting it.

/usr/local/lib/python3.7/site-packages/logsparser/normalizer.py:155: UserWarning: Could not load generic callbacks definition file : invalid syntax (<string>, line 14)                        - generic callbacks will not be available.
  - generic callbacks will not be available." % err)
re.error: bad escape \s at position 0

It would be very helpful.
Thanks in advance

I no longer have push access to the project. If interested by the project I suggest to look at the forks if someone is maintaining an up to date fork. If not probably better to fork and add the python3 support.
Maybe https://stackoverflow.com/questions/58328587/python-3-7-4-re-error-bad-escape-s-at-position-0 could help ?