[Django] #25246: Python 3 error in runserver when a directory is missing __init__.py

35 views
Skip to first unread message

Django

unread,
Aug 7, 2015, 3:24:23 PM8/7/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+--------------------
Reporter: jessamynsmith | Owner: nobody
Type: Bug | Status: new
Component: Uncategorized | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
Using Python 3.4.2
One app directory is missing a number of files, including __init__.py
This results in an error when trying to run any manage.py command.
It seems odd that the app directory is showing up multiple times in the
path, and that duplication seems to cause issues for Django.

Here is an example traceback:

(testenv)~/Development/testenv-dev/testenv$ python manage.py runserver
Traceback (most recent call last):
File "/Users/jessamyn/.virtualenvs/testenv/lib/python3.4/site-
packages/django/apps/config.py", line 100, in create
entry = module.default_app_config
AttributeError: 'module' object has no attribute 'default_app_config'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/Users/jessamyn/.virtualenvs/testenv/lib/python3.4/site-
packages/django/core/management/__init__.py", line 385, in
execute_from_command_line
utility.execute()
File "/Users/jessamyn/.virtualenvs/testenv/lib/python3.4/site-
packages/django/core/management/__init__.py", line 354, in execute
django.setup()
File "/Users/jessamyn/.virtualenvs/testenv/lib/python3.4/site-
packages/django/__init__.py", line 21, in setup
apps.populate(settings.INSTALLED_APPS)
File "/Users/jessamyn/.virtualenvs/testenv/lib/python3.4/site-
packages/django/apps/registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "/Users/jessamyn/.virtualenvs/testenv/lib/python3.4/site-
packages/django/apps/config.py", line 103, in create
return cls(entry, module)
File "/Users/jessamyn/.virtualenvs/testenv/lib/python3.4/site-
packages/django/apps/config.py", line 41, in __init__
self.path = self._path_from_module(app_module)
File "/Users/jessamyn/.virtualenvs/testenv/lib/python3.4/site-
packages/django/apps/config.py", line 70, in _path_from_module
"with a 'path' class attribute." % (module, paths))
django.core.exceptions.ImproperlyConfigured: The app module <module
'emptyapp' (namespace)> has multiple filesystem locations
(['/Users/jessamyn/Development/testenv-dev/testenv/emptyapp',
'/Users/jessamyn/Development/testenv-dev/testenv/emptyapp',
'/Users/jessamyn/Development/testenv-dev/testenv/emptyapp']); you must
configure this app with an AppConfig subclass with a 'path' class
attribute.

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

Django

unread,
Aug 7, 2015, 3:27:01 PM8/7/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+------------------------------------

Reporter: jessamynsmith | Owner: nobody
Type: Bug | Status: new
Component: Core (Other) | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* needs_better_patch: => 0
* component: Uncategorized => Core (Other)
* needs_tests: => 0
* needs_docs: => 0
* stage: Unreviewed => Accepted


Old description:

New description:

--

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

Django

unread,
Aug 7, 2015, 3:29:05 PM8/7/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+------------------------------------

Reporter: jessamynsmith | Owner: nobody
Type: Bug | Status: new
Component: Core (Other) | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by carljm):

I don't know how or why a Python 3 namespace package would end up with a
`__path__` containing the same directory multiple times (seems like a bug
in Python, if someone is able to track down the cause), but regardless
Django may as well be robust against it. We should just de-dupe
`__path__`, probably by converting to a set, in
`AppConfig._path_to_module`.

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

Django

unread,
Aug 8, 2015, 8:55:00 AM8/8/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+--------------------------------------
Reporter: jessamynsmith | Owner: caioariede
Type: Bug | Status: assigned

Component: Core (Other) | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* owner: nobody => caioariede
* status: new => assigned


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

Django

unread,
Aug 16, 2015, 5:21:20 PM8/16/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+--------------------------------------
Reporter: jessamynsmith | Owner: caioariede
Type: Bug | Status: assigned
Component: Core (Other) | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by caioariede):

I couldn't reproduce this issue.

jessamynsmith - could you please provide more information on how to
reproduce it?

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

Django

unread,
Aug 16, 2015, 6:13:53 PM8/16/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+--------------------------------------
Reporter: jessamynsmith | Owner: caioariede
Type: Bug | Status: assigned
Component: Core (Other) | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by jessamynsmith):

Replying to [comment:4 caioariede]:


> I couldn't reproduce this issue.
>
> jessamynsmith - could you please provide more information on how to
reproduce it?

Here is a repository which replicates the issue:

https://github.com/jessamynsmith/django-error-python3

--
Ticket URL: <https://code.djangoproject.com/ticket/25246#comment:5>

Django

unread,
Aug 20, 2015, 10:11:34 PM8/20/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+--------------------------------------
Reporter: jessamynsmith | Owner: caioariede
Type: Bug | Status: assigned
Component: Core (Other) | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by caioariede):

This is odd.

Seems to be related to this bug in Python:
http://bugs.python.org/issue19469

Could you please give the output for the following commands?

{{{
python --version
python -c 'import no_init; print(no_init.__path__)'
}}}

Thanks!

--
Ticket URL: <https://code.djangoproject.com/ticket/25246#comment:6>

Django

unread,
Aug 21, 2015, 2:15:11 PM8/21/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+--------------------------------------
Reporter: jessamynsmith | Owner: caioariede
Type: Bug | Status: assigned
Component: Core (Other) | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by jessamynsmith):

$ python --version
Python 3.4.2
$ python -c 'import no_init; print(no_init.__path__)'
_NamespacePath(['/Users/jessamyn/Development/django_error_py3/django_error_py3/no_init',
'/Users/jessamyn/Development/django_error_py3/django_error_py3/no_init'])

--
Ticket URL: <https://code.djangoproject.com/ticket/25246#comment:7>

Django

unread,
Aug 21, 2015, 2:24:58 PM8/21/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+--------------------------------------
Reporter: jessamynsmith | Owner: caioariede
Type: Bug | Status: assigned
Component: Core (Other) | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by carljm):

@caioariede I don't think we need or want an end-to-end test for this that
tries to recreate the actual Python bug using a real package (it seems
it's platform-specific). It would be sufficient to just add a unit test
using a fake module object with a `__path__` attribute containing dupes,
and add the de-duping logic in `_path_from_module` as mentioned above, and
reference the Python bug url in a comment.

--
Ticket URL: <https://code.djangoproject.com/ticket/25246#comment:8>

Django

unread,
Aug 21, 2015, 2:44:46 PM8/21/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+--------------------------------------
Reporter: jessamynsmith | Owner: caioariede
Type: Bug | Status: assigned
Component: Core (Other) | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by caioariede):

Replying to [comment:8 carljm]:


> @caioariede I don't think we need or want an end-to-end test for this
that tries to recreate the actual Python bug using a real package (it
seems it's platform-specific). It would be sufficient to just add a unit
test using a fake module object with a `__path__` attribute containing
dupes, and add the de-duping logic in `_path_from_module` as mentioned
above, and reference the Python bug url in a comment.

Yes, I will do. Seems to be related to Python 3.4.2 (I want to check), I
couldn't reproduce it with 3.4.3.

--
Ticket URL: <https://code.djangoproject.com/ticket/25246#comment:9>

Django

unread,
Aug 21, 2015, 4:50:52 PM8/21/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+--------------------------------------
Reporter: jessamynsmith | Owner: caioariede
Type: Bug | Status: assigned
Component: Core (Other) | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by timgraham):

If it's fixed in 3.4.3, then I suggest to close as "won't fix" as we only
officially support the latest micro release of each Python series.

--
Ticket URL: <https://code.djangoproject.com/ticket/25246#comment:10>

Django

unread,
Aug 21, 2015, 4:53:37 PM8/21/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+--------------------------------------
Reporter: jessamynsmith | Owner: caioariede
Type: Bug | Status: assigned
Component: Core (Other) | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by carljm):

Yes, I agree with Tim -- if it's fixed in 3.4.3 then we don't need to do
anything.

--
Ticket URL: <https://code.djangoproject.com/ticket/25246#comment:11>

Django

unread,
Aug 23, 2015, 8:09:40 PM8/23/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+--------------------------------------
Reporter: jessamynsmith | Owner: caioariede
Type: Bug | Status: assigned
Component: Core (Other) | Version: master

Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* has_patch: 0 => 1
* version: 1.7 => master


Comment:

Cannot reproduce it with Python 3.4.2 too. I'm assuming this bug is still
alive in Python 3.x

Pull request: https://github.com/django/django/pull/5182

--
Ticket URL: <https://code.djangoproject.com/ticket/25246#comment:12>

Django

unread,
Aug 24, 2015, 8:32:04 AM8/24/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+--------------------------------------
Reporter: jessamynsmith | Owner: caioariede
Type: Bug | Status: assigned
Component: Core (Other) | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by timgraham):

Jessamyn, it looks like you are on Mac. How did you install Python on your
machine? I also haven't been able to reproduce the problem on Python 3.4.0
and Ubuntu 14.04. Can you test the proposed patch?

--
Ticket URL: <https://code.djangoproject.com/ticket/25246#comment:13>

Django

unread,
Aug 29, 2015, 1:36:40 PM8/29/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+--------------------------------------
Reporter: jessamynsmith | Owner: caioariede
Type: Bug | Status: assigned
Component: Core (Other) | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by jessamynsmith):

Replying to [comment:13 timgraham]:


> Jessamyn, it looks like you are on Mac. How did you install Python on
your machine? I also haven't been able to reproduce the problem on Python
3.4.0 and Ubuntu 14.04. Can you test the proposed patch?

Sorry, I tried to reply to this previously and it looks as if my reply was
lost. I installed Python using homebrew. I have not had a chance to try to
get 3.4.0. I had the issue on 3.4.2 and not on 3.4.3. I will try to get a
chance to test the patch later today.

--
Ticket URL: <https://code.djangoproject.com/ticket/25246#comment:14>

Django

unread,
Aug 29, 2015, 4:12:12 PM8/29/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+--------------------------------------
Reporter: jessamynsmith | Owner: caioariede
Type: Bug | Status: assigned
Component: Core (Other) | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by jessamynsmith):

I can confirm that the proposed patch fixes the issue.

--
Ticket URL: <https://code.djangoproject.com/ticket/25246#comment:15>

Django

unread,
Aug 31, 2015, 8:55:06 AM8/31/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+--------------------------------------
Reporter: jessamynsmith | Owner: caioariede
Type: Bug | Status: assigned
Component: Core (Other) | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by timgraham):

Are you saying that the issue is fixed on Python 3.4.3 or that you didn't
have a chance to test there?

--
Ticket URL: <https://code.djangoproject.com/ticket/25246#comment:16>

Django

unread,
Aug 31, 2015, 12:41:56 PM8/31/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+--------------------------------------
Reporter: jessamynsmith | Owner: caioariede
Type: Bug | Status: assigned
Component: Core (Other) | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by jessamynsmith):

Replying to [comment:16 timgraham]:


> Are you saying that the issue is fixed on Python 3.4.3 or that you
didn't have a chance to test there?

I tested using python 3.4.3

--
Ticket URL: <https://code.djangoproject.com/ticket/25246#comment:17>

Django

unread,
Aug 31, 2015, 12:51:05 PM8/31/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+--------------------------------------
Reporter: jessamynsmith | Owner: caioariede
Type: Bug | Status: assigned
Component: Core (Other) | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by caioariede):

I'm on Mac and I couldn't reproduce this issue with 3.4.2 or 3.4.3.

The Python bug report says it even affects Python 3.5.

--
Ticket URL: <https://code.djangoproject.com/ticket/25246#comment:18>

Django

unread,
Aug 31, 2015, 12:59:25 PM8/31/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+--------------------------------------
Reporter: jessamynsmith | Owner: caioariede
Type: Bug | Status: assigned
Component: Core (Other) | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by timgraham):

Jessamyn, it'd be great if you could provide a test case for the
[http://bugs.python.org/issue19469 Python bug] or at least nail down the
reason why you can reproduce the problem but no one else who has tried
can. I'm a bit reluctant to commit the patch until we figure that out.

--
Ticket URL: <https://code.djangoproject.com/ticket/25246#comment:19>

Django

unread,
Aug 31, 2015, 1:03:09 PM8/31/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+--------------------------------------
Reporter: jessamynsmith | Owner: caioariede
Type: Bug | Status: assigned
Component: Core (Other) | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by jessamynsmith):

Replying to [comment:19 timgraham]:


> Jessamyn, it'd be great if you could provide a test case for the
[http://bugs.python.org/issue19469 Python bug] or at least nail down the
reason why you can reproduce the problem but no one else who has tried
can. I'm a bit reluctant to commit the patch until we figure that out.

So manage.py in that repo runs fine for the rest of you, using python 3.x
and django 1.8 on OS X?

--
Ticket URL: <https://code.djangoproject.com/ticket/25246#comment:20>

Django

unread,
Aug 31, 2015, 1:03:58 PM8/31/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+--------------------------------------
Reporter: jessamynsmith | Owner: caioariede
Type: Bug | Status: assigned
Component: Core (Other) | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by caioariede):

Yes, it runs fine for me. Using either 3.4.2 and 3.4.3 on OSX.

--
Ticket URL: <https://code.djangoproject.com/ticket/25246#comment:21>

Django

unread,
Aug 31, 2015, 1:06:13 PM8/31/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+--------------------------------------
Reporter: jessamynsmith | Owner: caioariede
Type: Bug | Status: assigned
Component: Core (Other) | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by carljm):

Personally I think we should just commit the patch. It's harmless,
correct, improves robustness, and it has zero downside.

--
Ticket URL: <https://code.djangoproject.com/ticket/25246#comment:22>

Django

unread,
Aug 31, 2015, 3:01:22 PM8/31/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+--------------------------------------
Reporter: jessamynsmith | Owner: caioariede
Type: Bug | Status: assigned
Component: Core (Other) | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by timgraham):

I'm not entirely opposed, but I think it would nice not to commit a patch
that references a Python bug which is closed as "cannot reproduce" which
seems to be where that bug is headed unless it gets some help. Of course,
if we cannot understand the issue any better, we can just remove the
ticket reference in our patch.

--
Ticket URL: <https://code.djangoproject.com/ticket/25246#comment:23>

Django

unread,
Aug 31, 2015, 3:33:26 PM8/31/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------+--------------------------------------
Reporter: jessamynsmith | Owner: caioariede
Type: Bug | Status: assigned
Component: Core (Other) | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

Comment (by jessamynsmith):

Replying to [comment:23 timgraham]:


> I'm not entirely opposed, but I think it would nice not to commit a
patch that references a Python bug which is closed as "cannot reproduce"
which seems to be where that bug is headed unless it gets some help. Of
course, if we cannot understand the issue any better, we can just remove
the ticket reference in our patch.

I'm not sure what else to investigate. My system:
OS X 10.10.5
Using Terminal.app with bash
Python 3.4.3 installed using homebrew
virtualenv==13.0.3
virtualenvwrapper==4.3.3.dev34

I just tested and the old code also fails without using virtualenv. I
wonder why it doesn't fail on others' machines.

--
Ticket URL: <https://code.djangoproject.com/ticket/25246#comment:24>

Django

unread,
Sep 2, 2015, 3:23:40 PM9/2/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------------+-------------------------------------

Reporter: jessamynsmith | Owner:
| caioariede
Type: Bug | Status: assigned
Component: Core (Other) | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

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

* stage: Accepted => Ready for checkin


Comment:

All right, I guess we just merge the patch and move on to more important
things.

--
Ticket URL: <https://code.djangoproject.com/ticket/25246#comment:25>

Django

unread,
Sep 2, 2015, 3:28:04 PM9/2/15
to django-...@googlegroups.com
#25246: Python 3 error in runserver when a directory is missing __init__.py
-------------------------------------+-------------------------------------
Reporter: jessamynsmith | Owner:
| caioariede
Type: Bug | Status: closed

Component: Core (Other) | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: assigned => closed
* resolution: => fixed


Comment:

In [changeset:"6a98396b9da56bf5eb1c94e037b844eb9bdd1a45" 6a98396]:
{{{
#!CommitTicketReference repository=""
revision="6a98396b9da56bf5eb1c94e037b844eb9bdd1a45"
Fixed #25246 -- Guarded against duplicate paths in AppConfig.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25246#comment:26>

Reply all
Reply to author
Forward
0 new messages