#23412: Unable to import django.forms.util.ValidationError
-------------------------------+--------------------
Reporter: george_edison | Owner: nobody
Type: Bug | Status: new
Component: Forms | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
I ran the following commands on a completely clean installation of Ubuntu
Server 14.04.1:
{{{
apt-get install python-pip
pip install Django
}}}
I then opened the Python interpreter and ran the following commands:
{{{
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from django import forms
>>> forms.util.ValidationError
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'util'
}}}
It would appear that {{{django.forms.util}}} is missing. This is very odd
since I can confirm that the relevant file does indeed exist:
{{{
# cd /usr/local/lib/python2.7/dist-packages/django/forms
# ls
extras formsets.py forms.pyc models.py util.pyc widgets.py
fields.py formsets.pyc __init__.py models.pyc utils.py widgets.pyc
fields.pyc forms.py __init__.pyc util.py utils.pyc
}}}
I have confirmed this error on two other machines running Ubuntu 14.04.
According to the contents of the file, the module is set to be removed in
Django 1.9, so it should still work in Django 1.7.
--
Ticket URL: <https://code.djangoproject.com/ticket/23412>
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/056.069b8b513fe3a88f079f5f8215ea4c57%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.