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

Python 3.x support #7

Open
techrna opened this issue Nov 9, 2021 · 1 comment
Open

Python 3.x support #7

techrna opened this issue Nov 9, 2021 · 1 comment

Comments

@techrna
Copy link

techrna commented Nov 9, 2021

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

@techrna techrna changed the title Dose this library supports python 3.X Python 3.x support Nov 9, 2021
@morucci
Copy link
Contributor

morucci commented Nov 9, 2021

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 ?

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

2 participants