epinna / weevely3

Weaponized web shell
GNU General Public License v3.0
3.21k stars 605 forks source link

ImportError: cannot import name 'spawn' from 'distutils' (/usr/lib/python3.10/distutils/__init__.py) #179

Closed ita27rmp100 closed 7 months ago

ita27rmp100 commented 1 year ago

I watch a video about how to use weevely3 in order to exploit file upload vulnerable and I found this problem : Traceback (most recent call last):

File "/usr/bin/weevely", line 104, in

main(arguments)

File "/usr/bin/weevely", line 54, in main

modules.load_modules(session)

File "/usr/share/weevely/core/modules.py", line 22, in load_modules

module = __import__(

File "/usr/share/weevely/modules/file/mount.py", line 6, in

from distutils import spawn

ImportError: cannot import name 'spawn' from 'distutils' (/usr/lib/python3.10/distutils/init.py)

what's the problem ?

ZanyMonk commented 7 months ago

I can't reproduce. I'd say you have some problem with your Python libraries, or even your interpreter. Maybe restart the installation process from scratch.