#24290: postgres_tests fail ungracefully if psycopg2 isn't installed
-------------------------------------+-------------------------------------
     Reporter:  aaugustin            |                    Owner:
         Type:                       |  joelburton
  Cleanup/optimization               |                   Status:  assigned
    Component:  contrib.postgres     |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:  1.8                  |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by claudep):

 Also encountered:
 {{{
   File "/home/claude/virtualenvs/djangogit/local/lib/python2.7/site-
 packages/django/contrib/postgres/forms/ranges.py", line 1, in <module>
     from psycopg2.extras import DateRange, DateTimeTZRange, NumericRange
 ImportError: cannot import name DateRange
 }}}
 {{{
 >>> psycopg2.__version__
 '2.4.5 (dt dec mx pq3 ext)'
 }}}
 It might also depend on installed PostgreSQL extensions.

--
Ticket URL: <https://code.djangoproject.com/ticket/24290#comment:4>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.cfafc795276aa25ee66d663f616b8b5b%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to