Warning / Error when testing with W flag

64 views
Skip to first unread message

Daniel Grace

unread,
Nov 18, 2014, 4:01:22 AM11/18/14
to django...@googlegroups.com
Hi,
I get another warning / error with a test command as follows:
>python -W error manage.py test flow
Traceback (most recent call last):
  File "manage.py", line 8, in <module>
    from django.core.management import execute_from_command_line
  File "C:\landy\lib\site-packages\django\core\management\__init__.py", line 8,
in <module>
    from django.apps import apps
  File "C:\landy\lib\site-packages\django\apps\__init__.py", line 1, in <module>

    from .config import AppConfig   # NOQA
  File "C:\landy\lib\site-packages\django\apps\config.py", line 5, in <module>
    from django.utils.module_loading import module_has_submodule
  File "C:\landy\lib\site-packages\django\utils\module_loading.py", line 4, in <
module>
    import imp
  File "C:\Python34\lib\imp.py", line 32, in <module>
    PendingDeprecationWarning)
PendingDeprecationWarning: the imp module is deprecated in favour of importlib;
see the module's documentation for alternative uses

Any ideas?

Thanks

Carl Meyer

unread,
Nov 19, 2014, 10:15:00 AM11/19/14
to django...@googlegroups.com
Hi Daniel,
This is an issue that needs to be fixed in Django; see
https://code.djangoproject.com/ticket/21628

Until it is fixed in Django, I'm afraid there's not much you can do
about it other than ignore these warnings for now.

Carl

signature.asc

Collin Anderson

unread,
Nov 21, 2014, 5:20:43 PM11/21/14
to django...@googlegroups.com
It looks like it's fixed for python 3.4 on master (the fix will eventually be in django 1.8)
Reply all
Reply to author
Forward
0 new messages