#8978: python manage.py dbshell unhelpful error when postgresql-client not
installed
-----------------------------+----------------------------------------------
 Reporter:  darkpixel        |       Owner:  nobody    
   Status:  new              |   Milestone:            
Component:  django-admin.py  |     Version:  1.0       
 Keywords:                   |       Stage:  Unreviewed
Has_patch:  0                |  
-----------------------------+----------------------------------------------
 If you try to start a dbshell and don't have the postgresql client
 installed, you get an unhelpful error message:

 [EMAIL PROTECTED]:~/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

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8978>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to