[Django] #20475: DeprecationWarning: django.utils.hashcompat is deprecated

33 views
Skip to first unread message

Django

unread,
May 21, 2013, 1:23:15 PM5/21/13
to django-...@googlegroups.com
#20475: DeprecationWarning: django.utils.hashcompat is deprecated
-------------------------------+---------------------
Reporter: caumons | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.5
Severity: Normal | Keywords: warning
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+---------------------
When using Django 1.5 I could saw some deprecation warnings like this one:

{{{
/usr/local/lib/python2.7/dist-packages/django/utils/hashcompat.py:9:
DeprecationWarning: django.utils.hashcompat is deprecated; use hashlib
instead DeprecationWarning)
}}}

When I updated to 1.5.1 I expected that this'd have been fixed, but it
isn't.

I'm not using this library directly in my code, so I guess there is/are
some old deprecated imports in Django that should be changed.

P.S. I'm using the following 3rd party apps: 'captcha', 'gravatar',
'transmeta', 'south', 'wysihtml5'

--
Ticket URL: <https://code.djangoproject.com/ticket/20475>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 21, 2013, 2:08:02 PM5/21/13
to django-...@googlegroups.com
#20475: DeprecationWarning: django.utils.hashcompat is deprecated
-------------------------------+--------------------------------------
Reporter: caumons | Owner: nobody
Type: Bug | Status: closed
Component: Uncategorized | Version: 1.5
Severity: Normal | Resolution: invalid

Keywords: warning | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by charettes):

* status: new => closed
* needs_docs: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_better_patch: => 0


Comment:

Looking at
[http://ci.djangoproject.com/job/Django%201.5/database=sqlite3,python=python2.7/lastBuild/console
the latest CI build] of the 1.5.x branch it looks like this warning is not
raised.

I guess one of your 3rd party apps is using the deprecated
`django.utils.hashcompat` module.

To track down which one is the culprit you should try running your
testsuite or your development server (or a command that triggers this
warning) while setting python warning control to the error level and study
the traceback: e.g. `python -Werror ./manage.py runserver`. This should
point you to module referencing `django.utils.hashcompat`.

You can then notify the author or the app of this issue and even write a
patch to get rid of this pesky warning.

--
Ticket URL: <https://code.djangoproject.com/ticket/20475#comment:1>

Django

unread,
Sep 4, 2013, 11:34:34 AM9/4/13
to django-...@googlegroups.com
#20475: DeprecationWarning: django.utils.hashcompat is deprecated
-------------------------------+--------------------------------------
Reporter: caumons | Owner: nobody
Type: Bug | Status: closed
Component: Uncategorized | Version: 1.5
Severity: Normal | Resolution: invalid

Keywords: warning | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------

Comment (by sharkwang@…):

File "C:\Users\...\AppData\Roaming\Python\Python27\site-packages\django_py
odbc\creation.py", line 3, in <module>
from django.utils.hashcompat import md5_constructor
File "C:\Users\...\AppData\Roaming\Python\Python27\site-
packages\django\ut
ils\hashcompat.py", line 9, in <module>
DeprecationWarning)


DeprecationWarning: django.utils.hashcompat is deprecated; use hashlib
instead

--
Ticket URL: <https://code.djangoproject.com/ticket/20475#comment:2>

Django

unread,
Sep 4, 2013, 1:01:24 PM9/4/13
to django-...@googlegroups.com
#20475: DeprecationWarning: django.utils.hashcompat is deprecated
-------------------------------+--------------------------------------
Reporter: caumons | Owner: nobody
Type: Bug | Status: closed
Component: Uncategorized | Version: 1.5
Severity: Normal | Resolution: invalid

Keywords: warning | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------

Comment (by mjtamlyn):

The warning is being raised by code in django-pyodbc. This is the package
which needs updating.

--
Ticket URL: <https://code.djangoproject.com/ticket/20475#comment:3>

Django

unread,
Sep 4, 2013, 1:14:50 PM9/4/13
to django-...@googlegroups.com
#20475: DeprecationWarning: django.utils.hashcompat is deprecated
-------------------------------+--------------------------------------
Reporter: caumons | Owner: nobody
Type: Bug | Status: closed
Component: Uncategorized | Version: 1.5
Severity: Normal | Resolution: invalid

Keywords: warning | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------

Comment (by aaugustin):

Hence this isn't a bug in Django.

--
Ticket URL: <https://code.djangoproject.com/ticket/20475#comment:4>

Reply all
Reply to author
Forward
0 new messages