#30647: [FATAL] FileNotFoundError with runserver command inside Docker container
-------------------------------------+-------------------------------------
     Reporter:  steinbachr           |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Uncategorized        |                  Version:  2.2
     Severity:  Normal               |               Resolution:
     Keywords:  docker docker-       |             Triage Stage:
  compose autoreload                 |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Carlton Gibson):

 First glance, this looks like some Docker weirdness:

 {{{
   File "/usr/local/lib/python3.6/site-
 packages/django/utils/translation/reloader.py", line 16, in
 watch_for_translation_changes
     absolute_path = path.absolute()
   File "/usr/local/lib/python3.6/pathlib.py", line 1129, in absolute
     obj = self._from_parts([os.getcwd()] + self._parts, init=False)
 FileNotFoundError: [Errno 2] No such file or directory
 }}}

 That's a standard library call raising the error, so why's that not
 working?

 @steinbachr it would be helpful if you could put a breakpoint in there and
 try to work out exactly what's going on. (That call should work. Why isn't
 it? Is there an obvious something that would?)

 Why the ''regression'' between 2.1 and 2.2? We were using `os.path`
 previously I guess... Still, this should be something that works, so a bit
 more digging is needed.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30647#comment:2>
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/068.bef8533fbaa1d31a96e42e8b5529788f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to