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

get_oer2go_catalog:52: SyntaxWarning: invalid escape sequence '\<' php_parser = re.compile('\<\?php echo .+? \?>') #584

Open
holta opened this issue Aug 22, 2024 · 0 comments

Comments

@holta
Copy link
Member

holta commented Aug 22, 2024

Is this increasingly common new warning (seen commonly in recent months) possibly a result of Ubuntu 24.04's Python 3.12 being more strict than prior versions of Python ??

Here's an example, that occurs every time root runs ./install in /opt/iiab/iiab-admin-console :

...
Finished writing to /etc/iiab/kiwix_catalog.json
SUCCESS/opt/admin/cmdsrv/scripts/get_oer2go_catalog:52: SyntaxWarning: invalid escape sequence '\<'
  php_parser = re.compile('\<\?php echo .+? \?>')
Skipping module not needed by Internet in a Box 12 en-PhET
...

It also happens when root runs iiab-get-oer2go-cat all alone:

/opt/admin/cmdsrv/scripts/get_oer2go_catalog:52: SyntaxWarning: invalid escape sequence '\<'
  php_parser = re.compile('\<\?php echo .+? \?>')

As a result of this line... that presumably needs a quick cleanup?

php_parser = re.compile('\<\?php echo .+? \?>')

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

1 participant