franc-pentest / ldeep

In-depth ldap enumeration utility
MIT License
415 stars 45 forks source link

No such file or directory ldeep/../VERSION #77

Closed 3ldidi94 closed 5 months ago

3ldidi94 commented 5 months ago

Hello,

I get an error after a fresh installation of ldeep about the VERSION file that is missing in the /home/user/.local/lib/python3.11/site-packages/ldeep/../VERSION.

The Python error says that it is in the __init__ file :

Traceback (most recent call last):
  File "/home/user/.local/bin/ldeep", line 5, in <module>
    from ldeep.__main__ import main
  File "/home/user/.local/lib/python3.11/site-packages/ldeep/__init__.py", line 3, in <module>
    __version__ = open(os.path.join(os.path.dirname(__file__), "../VERSION")).read().strip()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/home/user/.local/lib/python3.11/site-packages/ldeep/../VERSION'

Ldeep seems to work after a manual copy of this file to the specified location

QU35T-code commented 5 months ago

Same issue

pipx install --system-site-packages ldeep --force

ldeep --help
Traceback (most recent call last):
  File "/root/.local/bin/ldeep", line 5, in <module>
    from ldeep.__main__ import main
  File "/root/.local/share/pipx/venvs/ldeep/lib/python3.11/site-packages/ldeep/__init__.py", line 3, in <module>
    __version__ = open(os.path.join(os.path.dirname(__file__), "../VERSION")).read().strip()
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/root/.local/share/pipx/venvs/ldeep/lib/python3.11/site-packages/ldeep/../VERSION'

Catched by the Exegol pipeline