dhondta / dronesploit

Drone pentesting framework console

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fresh install through pip3 throws errors on startup.

amritabithi opened this issue · comments

Hello,

I just installed dronesploit using the "pip3 install dronesploit" command on a new installation of Ubuntu 20 and am getting the following exception, I have tried with and without sudo privileges, and wanted to post the error here in case it is a new issue.

Thanks!

amrita@localhost:~$ dronesploit
Traceback (most recent call last):
  File "/home/amrita/.local/bin/dronesploit", line 5, in <module>
    from dronesploit.__main__ import main
  File "/home/amrita/.local/lib/python3.8/site-packages/dronesploit/__init__.py", line 3, in <module>
    from sploitkit import FrameworkConsole
  File "/home/amrita/.local/lib/python3.8/site-packages/sploitkit/__init__.py", line 11, in <module>
    from .core import *
  File "/home/amrita/.local/lib/python3.8/site-packages/sploitkit/core/__init__.py", line 1, in <module>
    from .console import *
  File "/home/amrita/.local/lib/python3.8/site-packages/sploitkit/core/console.py", line 13, in <module>
    from prompt_toolkit.application.current import get_app_session
ImportError: cannot import name 'get_app_session' from 'prompt_toolkit.application.current' (/usr/lib/python3/dist-packages/prompt_toolkit/application/current.py)
amrita@localhost:~$
commented

Hi @amritabithi
Thank you for mentioning this. I was busy on another project at the time when you reported this. I will try to have a look at this very soon. Apparently something deprecated in a recent version of prompt_toolkit.

commented

@amritabithi
Did you pip install --upgrade prompt_toolkit ?
You can also pip install -upgrade dronesploit.
Does it still give any error ?

@amritabithi Did you pip install --upgrade prompt_toolkit ? You can also pip install -upgrade dronesploit. Does it still give any error ?

No problem about being busy I appreciate the response as always, I was able to fix my installation using the "pip install --upgrade prompt_toolkit" , and now remember having done that before.

As a test I uninstalled everyting including prompt_toolkit and did a brand new install of dronesploit, and I still had to seperately do the prompt_toolkit install still to run, just FYI in case that is supposed to install along with the dronesploit installer.

Thanks again!

commented

Hi @amritabithi
Can you pip show prompt_toolkit to get the updated version ? I can pin the version in sploitkit to solve this, I guess.

I think the core problem was that pip needed to be upgraded and the cache cleaned, I am assuming from having the old python2 stuff that comes with the linux distribution, I posted a more detailed description of what I did this time to get it working here, although the core issue did seem to be pip was outdated and the cache was letting python think it had the latest versions of dependencies -

Here is the link to my other post:
#34 (comment)