Nekmo / dirhunt

Find web directories without bruteforce
MIT License
1.73k stars 237 forks source link

cant compile from source. #82

Closed UchihaSR closed 3 years ago

UchihaSR commented 3 years ago

python version is : 3.8.5 i tried to compile from source but it is failing. i have attached a screenshot of the error dirhunt_issue

Nekmo commented 3 years ago

distutils uses a invalid strict version number in your installation. This patch resolves this issue:

Current code:

In [6]: StrictVersion('49.6.0.post20200814') > StrictVersion('20.2')
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-6-b9e45d8783aa> in <module>
----> 1 StrictVersion('49.6.0.post20200814') > StrictVersion('20.2')

/usr/lib/python3.8/distutils/version.py in __init__(self, vstring)
     38     def __init__ (self, vstring=None):
     39         if vstring:
---> 40             self.parse(vstring)
     41 
     42     def __repr__ (self):

/usr/lib/python3.8/distutils/version.py in parse(self, vstring)
    135         match = self.version_re.match(vstring)
    136         if not match:
--> 137             raise ValueError("invalid version number '%s'" % vstring)
    138 
    139         (major, minor, patch, prerelease, prerelease_num) = \

ValueError: invalid version number '49.6.0.post20200814'

New code:

In [5]: LooseVersion('49.6.0.post20200814') > LooseVersion('20.2')
Out[5]: True
Nekmo commented 3 years ago

@UchihaSR try again using develop branch. This patch will be available in v0.7.1 release, thanks!