Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Error Importing readline library #116

Open
akhtarmdsaad opened this issue Mar 21, 2024 · 0 comments
Open

Error Importing readline library #116

akhtarmdsaad opened this issue Mar 21, 2024 · 0 comments

Comments

@akhtarmdsaad
Copy link

Describe the bug

Traceback (most recent call last):
  File "D:\python\Hacking\Tools\vulnx\vulnx.py", line 17, in <module>
    from modules.cli.cli import CLI
  File "D:\python\Hacking\Tools\vulnx\modules\cli\cli.py", line 7, in <module>
    import readline
ModuleNotFoundError: No module named 'readline'

And when i tried to install readline library i got this Error:

Collecting readline
  Downloading readline-6.2.4.1.tar.gz (2.3 MB)
     ---------------------------------------- 2.3/2.3 MB 593.2 kB/s eta 0:00:00
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  x python setup.py egg_info did not run successfully.
  │ exit code: 1
  ?─> [1 lines of output]
      error: this module is not meant to work on Windows
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.

It clearly mentions that this module is not meant to work on Windows

To Reproduce
Steps to reproduce the behavior:

  1. Clone the repo on windows
  2. run pip install --r requirements.txt
  3. then run python vulnx.py

Desktop (please complete the following information):

  • Windows 8.1
  • python 3.11.4

**Something I found that needs to be focused on:**

readline library latest version - 6.2.4.2 (2022-06-24)

  • THIS PACKAGE IS DEPRECATED! USE gnureadline INSTEAD!
  • Add appropriate warnings to the docs to hammer this home
  • Prevent installation on Python 3.4 and later (the module is outdated)

Pyreadline3 is a Python implementation of the GNU Readline library that works on Windows.

Maybe We can write a code where it check the OS and execute accordingly.

import platform
print(platform.system())
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant