Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot create databse #35

Open
Parshuram2 opened this issue Sep 24, 2019 · 6 comments
Open

Cannot create databse #35

Parshuram2 opened this issue Sep 24, 2019 · 6 comments

Comments

@Parshuram2
Copy link

The create database command python3 jok3r.py db gives the following error
Traceback (most recent call last):

File "jok3r.py", line 44, in init
controller.run()
File "/root/jok3r/lib/controller/MainController.py", line 23, in run
}.get(self.arguments.mode)(self.arguments, self.settings, self.sqlsess).run()
File "/root/jok3r/lib/controller/DbController.py", line 68, in init
del cmd2.Cmd.do_load
AttributeError: do_load

@Marduky
Copy link

Marduky commented Oct 11, 2019

i have the same problem

@dtql
Copy link

dtql commented Nov 20, 2019

I faced the same issue. My guess is the cmd2 built-in commands do not exist. You can fix it by commenting or deleting lines 68 and 70 for "jok3r/DbController.py".

The 2 lines you need to comment/delete:
del cmd2.Cmd.do_load
del cmd2.Cmd.do_pyscript

@hansbonini
Copy link

Install package dependency cmd2 via python pip or python-cmd2 via your OS package manager

@b15h0p
Copy link

b15h0p commented Mar 20, 2020

Comment/delete lines in "/root/jok3r/lib/controller/DbController.py" as dtql mentioned above is what resolved this issue.

@ashishp99
Copy link

I faced the same issue. My guess is the cmd2 built-in commands do not exist. You can fix it by commenting or deleting lines 68 and 70 for "jok3r/DbController.py".

The 2 lines you need to comment/delete:
del cmd2.Cmd.do_load
del cmd2.Cmd.do_pyscript

yes your trick working bro.... thank you so much ....

@TofuWand
Copy link

TofuWand commented Oct 28, 2023

The solution that worked for some of you didn't work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants