Opened 16 years ago

Last modified 16 years ago

#8978 closed

python manage.py dbshell unhelpful error when postgresql-client not installed — at Initial Version

Reported by: Aaron C. de Bruyn Owned by: nobody
Component: Core (Management commands) Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

If you try to start a dbshell and don't have the postgresql client installed, you get an unhelpful error message:

aaron@hoth:~/code/sfd$ ./manage.py dbshell
Traceback (most recent call last):

File "./manage.py", line 11, in <module>

execute_manager(settings)

File "/usr/lib/python2.5/site-packages/django/core/management/init.py", line 340, in execute_manager

utility.execute()

File "/usr/lib/python2.5/site-packages/django/core/management/init.py", line 295, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)

File "/usr/lib/python2.5/site-packages/django/core/management/base.py", line 77, in run_from_argv

self.execute(*args, options.dict)

File "/usr/lib/python2.5/site-packages/django/core/management/base.py", line 96, in execute

output = self.handle(*args, options)

File "/usr/lib/python2.5/site-packages/django/core/management/base.py", line 178, in handle

return self.handle_noargs(options)

File "/usr/lib/python2.5/site-packages/django/core/management/commands/dbshell.py", line 10, in handle_noargs

connection.client.runshell()

File "/usr/lib/python2.5/site-packages/django/db/backends/postgresql/client.py", line 17, in runshell

os.execvp('psql', args)

File "/usr/lib/python2.5/os.py", line 353, in execvp

_execvpe(file, args)

File "/usr/lib/python2.5/os.py", line 389, in _execvpe

func(fullname, *argrest)

OSError: [Errno 2] No such file or directory

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top