Flora-Network / flora-dev-cli

flora-dev-cli (fd-cli) is command line interface software to interact with flora blockchain.
GNU General Public License v2.0
13 stars 22 forks source link

Keep getting unable to open database #11

Open glukkon24 opened 3 years ago

glukkon24 commented 3 years ago

If someone could please help me, I know I must be doing something wrong but not sure what. Will be more than happy to donate from recovered coins but not very skilled at code and this is what I am getting:

Traceback (most recent call last): File "/home/glukkon/fd-cli/venv/bin/fd-cli", line 33, in sys.exit(load_entry_point('fd-cli', 'console_scripts', 'fd-cli')()) File "/home/glukkon/fd-cli/fd_cli/fd_cli.py", line 220, in main fd_cli() File "/home/glukkon/fd-cli/venv/lib/python3.8/site-packages/click/core.py", line 829, in call return self.main(args, kwargs) File "/home/glukkon/fd-cli/venv/lib/python3.8/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/home/glukkon/fd-cli/venv/lib/python3.8/site-packages/click/core.py", line 1256, in invoke Command.invoke(self, ctx) File "/home/glukkon/fd-cli/venv/lib/python3.8/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, ctx.params) File "/home/glukkon/fd-cli/venv/lib/python3.8/site-packages/click/core.py", line 610, in invoke return callback(args, *kwargs) File "/home/glukkon/fd-cli/venv/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func return f(get_current_context(), args, **kwargs) File "/home/glukkon/fd-cli/fd_cli/fd_cli.py", line 40, in fd_cli ctx.obj['bc_db'] = fd_cli_db_get_connection(os.environ[FD_CLI_ENV_BC_DB_PATH]) File "/home/glukkon/fd-cli/fd_cli/fd_cli_db.py", line 7, in fd_cli_db_get_connection return sqlite3.connect( sqlite3.OperationalError: unable to open database file

PrEzi3 commented 3 years ago

wrong path in the variable. or no permissions... or whatever.