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

tool not running traceback issue #392

Open
chirag9718 opened this issue Aug 12, 2024 · 4 comments
Open

tool not running traceback issue #392

chirag9718 opened this issue Aug 12, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@chirag9718
Copy link

python3 oneforall.py --help

Traceback (most recent call last):
File "/root/tools/OneForAll/oneforall.py", line 16, in
from brute import Brute
File "/root/tools/OneForAll/brute.py", line 14, in
import exrex
File "/usr/local/lib/python3.11/dist-packages/exrex.py", line 25, in
from re import sre_parse, U
ImportError: cannot import name 'sre_parse' from 're' (/usr/lib/python3.11/re/init.py)

when running the above command getting this.

@chirag9718 chirag9718 added the bug Something isn't working label Aug 12, 2024
@Vekvi-BugHunter
Copy link

I had the same problem, but I was able to resolve it by doing this:

  1. In your case, the file is located at /usr/local/lib/python3.11/dist-packages/exrex.py. Open it.

mousepad /usr/local/lib/python3.11/dist-packages/exrex.py

2)Replace "re import sre_parse, U" on line 25 with:


import sre_parse
from re import U

@paneendar
Copy link

paneendar commented Sep 12, 2024

Try

pip3 install --upgrade --force-reinstall exrex

{OR }

Simply

pip3 uninstall exrex
pip3 install exrex

@Walidhossain010
Copy link

I had the same problem, but I was able to resolve it by doing this:

  1. In your case, the file is located at /usr/local/lib/python3.11/dist-packages/exrex.py. Open it.

mousepad /usr/local/lib/python3.11/dist-packages/exrex.py

2)Replace "re import sre_parse, U" on line 25 with:


import sre_parse
from re import U

thanks. it worked

@brokeitguyio
Copy link

I had the same problem, but I was able to resolve it by doing this:

  1. In your case, the file is located at /usr/local/lib/python3.11/dist-packages/exrex.py. Open it.

mousepad /usr/local/lib/python3.11/dist-packages/exrex.py
2)Replace "re import sre_parse, U" on line 25 with:


import sre_parse
from re import U

thanks. it worked

Thanks it worked for M3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants