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

i can't finish installation #344

Open
Hamada104 opened this issue Aug 26, 2023 · 1 comment
Open

i can't finish installation #344

Hamada104 opened this issue Aug 26, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Hamada104
Copy link

Whether the latest code is used
Yes
Bug description
Clear and concise Bug description(required)
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)

Operation environment

  • System information: [kali 3.2023] (required)
  • Python version: [Python 3.11.4] (required)
  • OneForAll version: [[v0.4.5] (required)

How to reproduce

  1. Step (optional)

  2. Command (python3 oneforall.py --help)

Error text
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)

Expected results
A clear and concise description of the expected results (optional, such as what a normal situation should look like)

Actual results
A clear and concise description of the actual results (optional, such as any errors)

Screenshot
Screenshot of complete OneForAll execution process (recommended upload)

Log upload
Upload oneforall.log files (it is recommended to upload logs in case of complex problems)

Supplementary information
Some other supplementary notes about bug

@Hamada104 Hamada104 added the bug Something isn't working label Aug 26, 2023
@quantum2274
Copy link

I got the same issue and fixed it by doing the following:

  • Open the exrex.py (in your case it's located /usr/local/lib/python3.11/dist-packages/exrex.py)
  • Change line 25 from re import sre_parse, U to:
import sre_parse
from re import U

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

4 participants
@shmilylty @quantum2274 @Hamada104 and others