codingo / Interlace

Easily turn single threaded command line applications into a fast, multi-threaded application with CIDR and glob support.
GNU General Public License v3.0
1.21k stars 179 forks source link

pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: '2.0.0-48-g6d506fa' (package: inql) #177

Closed aroly closed 1 year ago

aroly commented 1 year ago

Hi there,

I just pulled, installed and tried to use Interlace but I get the following error when running it. I tried the example from the doc, to be sure to use a correct syntax.

╰─ interlace -tL ./targets.txt -threads 5 -c "nikto --host _target_ > ./_target_-nikto.txt" -v
Traceback (most recent call last):
  File "/usr/local/bin/interlace", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/home/antoine/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3249, in <module>
    def _initialize_master_working_set():
  File "/home/antoine/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3223, in _call_aside
    f(*args, **kwargs)
  File "/home/antoine/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3261, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/home/antoine/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 619, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/home/antoine/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 632, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/home/antoine/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1044, in __init__
    self.scan(search_path)
  File "/home/antoine/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1077, in scan
    self.add(dist)
  File "/home/antoine/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 1096, in add
    dists.sort(key=operator.attrgetter('hashcmp'), reverse=True)
  File "/home/antoine/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2631, in hashcmp
    self.parsed_version,
  File "/home/antoine/.local/lib/python3.8/site-packages/pkg_resources/__init__.py", line 2685, in parsed_version
    raise packaging.version.InvalidVersion(f"{str(ex)} {info}") from None
pkg_resources.extern.packaging.version.InvalidVersion: Invalid version: '2.0.0-48-g6d506fa' (package: inql)

Any idea what could cause this ? The inql mention is weird because I indeed have the package installed but the version is inql-4.0.5 .

I'm on Ubuntu 20.04 and python 3.8.10.

aroly commented 1 year ago

Closing the issue...

I'm an idiot and forgot to install the requirements...