byt3bl33d3r / CrackMapExec

A swiss army knife for pentesting networks
BSD 2-Clause "Simplified" License
8.45k stars 1.64k forks source link

ImportError: No module named server #359

Closed samuelkneppel closed 4 years ago

samuelkneppel commented 4 years ago

OS Version:

vlgngrbrdmn@kali:~$ uname -a
Linux kali 5.5.0-kali2-amd64 #1 SMP Debian 5.5.17-1kali1 (2020-04-21) x86_64 GNU/Linux

Install method: vlgngrbrdmn@kali:~$ sudo apt install crackmapexec

Issue: I receive the following error when I run crackmapexec:

vlgngrbrdmn@kali:~$ crackmapexec 
Traceback (most recent call last):
  File "/usr/local/bin/crackmapexec", line 11, in <module>
    load_entry_point('crackmapexec==5.0.1.dev0', 'console_scripts', 'crackmapexec')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 489, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2852, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2443, in load
    return self.resolve()
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 2449, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python2.7/dist-packages/crackmapexec-5.0.1.dev0-py2.7.egg/cme/crackmapexec.py", line 14, in <module>
    from cme.servers.http import CMEServer
  File "/usr/local/lib/python2.7/dist-packages/gevent-20.4.0-py2.7-linux-x86_64.egg/gevent/builtins.py", line 96, in __import__
    result = _import(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/crackmapexec-5.0.1.dev0-py2.7.egg/cme/servers/http.py", line 1, in <module>
    import http.server
  File "/usr/local/lib/python2.7/dist-packages/gevent-20.4.0-py2.7-linux-x86_64.egg/gevent/builtins.py", line 96, in __import__
    result = _import(*args, **kwargs)
ImportError: No module named server

CME version is 5.0.1dev, as you can see in the error above.

Troubleshooting steps taken so far:

Has anyone seen this error before? Any help would be much appreciated!

n0bl1nk commented 4 years ago

https://github.com/byt3bl33d3r/CrackMapExec/issues/355#issuecomment-621382915 - Test last release

mpgn commented 4 years ago

Closing duplicate, please read the bug report template before submitting an issue