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

issue with frida can't start #2372

Open
Mohamed3bdelwahab opened this issue Jan 1, 2023 · 1 comment
Open

issue with frida can't start #2372

Mohamed3bdelwahab opened this issue Jan 1, 2023 · 1 comment

Comments

@Mohamed3bdelwahab
Copy link

when try to run frida get error

python3.11

frida16.0.8
when try to run any frida commands get this error

Traceback (most recent call last):
File "/data/data/com.termux/files/usr/bin/frida", line 5, in
from frida_tools.repl import main
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/frida_tools/repl.py", line 27, in
from pygments.lexers.javascript import JavascriptLexer
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pygments/init.py", line 37, in
from pygments.util import StringIO, BytesIO
File "/data/data/com.termux/files/usr/lib/python3.11/site-packages/pygments/util.py", line 27, in
tag_re = re.compile(r'<(.+?)(\s.?)?>.?</.+?>(?uism)')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/re/init.py", line 227, in compile
return _compile(pattern, flags)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/re/init.py", line 294, in _compile
p = _compiler.compile(pattern, flags)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/re/_compiler.py", line 743, in compile
p = _parser.parse(p, flags)
^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/re/_parser.py", line 980, in parse
p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/re/_parser.py", line 455, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/data/data/com.termux/files/usr/lib/python3.11/re/_parser.py", line 841, in _parse
raise source.error('global flags not at the start '
re.error: global flags not at the start of the expression at position 24

@silverbullet-herr
Copy link

silverbullet-herr commented Jan 6, 2023

try this:
pip uninstall pygments && pip install pygments
to install the latest version instead of the required version that's how it worked for me

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