#25862: LazyObject doesn't support multiprocessing on Python 2
------------------------------+------------------------------------
     Reporter:  codingjoe     |                    Owner:  nobody
         Type:  Bug           |                   Status:  new
    Component:  Core (Other)  |                  Version:  master
     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 claudep):

 * stage:  Unreviewed => Accepted


Old description:

> I don't really want to bug anyone with python 2.7, for I couldn't care
> less. But, I stumbled upon something rather odd.
>
> Easiest is to just check out the error on travis including the stack
> trace:
> https://travis-ci.org/codingjoe/django-stdimage/builds/94713726
>
> Everything works fine in Python 3, the attribute is available, as it
> should. It it's an instance attribute and properly set in the `__init__`
> method:
> https://github.com/django/django/blob/master/django/core/files/storage.py#L169-L172
>
> I guess the error is here:
> https://github.com/django/django/blob/master/django/utils/_os.py#L24-L32
>
> I'm not sure tho, because the method must return at least `None`,
> therefore I don't see how the attribute error is being raised.

New description:

 **Initial summary: AttributeError: 'FileSystemStorage' object has no
 attribute 'location'**

 I don't really want to bug anyone with python 2.7, for I couldn't care
 less. But, I stumbled upon something rather odd.

 Easiest is to just check out the error on travis including the stack
 trace:
 https://travis-ci.org/codingjoe/django-stdimage/builds/94713726

 Everything works fine in Python 3, the attribute is available, as it
 should. It it's an instance attribute and properly set in the `__init__`
 method:
 
https://github.com/django/django/blob/master/django/core/files/storage.py#L169-L172

 I guess the error is here:
 https://github.com/django/django/blob/master/django/utils/_os.py#L24-L32

 I'm not sure tho, because the method must return at least `None`,
 therefore I don't see how the attribute error is being raised.

--

--
Ticket URL: <https://code.djangoproject.com/ticket/25862#comment:5>
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.6853f640d7ca817bb465c208acd5bf26%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to