#30921 closed Bug (duplicate)
_DeadlockError is raised when using StatReloader.
Reported by: | Man Python | Owned by: | nobody |
---|---|---|---|
Component: | Utilities | Version: | 2.2 |
Severity: | Normal | Keywords: | makemigrations migrate WindowsError |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
There is many issues around this type error:
WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect: '<frozen importlib._bootstrap>'
https://stackoverflow.com/questions/56166319/python-django-error-oserror-winerror-123-the-filename-directory-name-or-vol
https://github.com/pytest-dev/pytest-django/issues/641
https://stackoverflow.com/questions/57108779/how-to-solve-oserror-winerror-123-the-filename-directory-name-or-volume-lab
Most of issues don't have any solutions and are not solved and no any sense sugestions.
What I discover..
This is happen when we often doing makemigrations and migrate with variable way as
makemigrations myapp
and migrate
or
makemigrations myapp
and migrate myapp
or
makemigrations
and migrate myapp
or
makemigrations
and migrate
The change db from sqlite to mysql and in diffrent way made this same bug.
Some times python -mpip install --force-reinstall -I django
solved error, in other situations not.. don't know why and what is relation in this, but reading sugestions 2 times this helped me, and in next progress of project not.
The cmd python manage.py runserver
doing this error, but e.q. this same cmd via Visual Studio Code not return this errors
https://github.com/microsoft/ptvsd/issues/1866
Adding parameter python manage.py runserver --nothreading
still this same error but python manage.py runserver --noreload
ommiting error in case that working with this mode in dev is not comfy.
Coz VSC has some bug in debug around static then must fighting with this all. Django made me sad :(
Change History (4)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
Component: | Migrations → Utilities |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Summary: | WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect: '<frozen importlib._bootstrap>' → WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect. |
Duplicate of #30352.
comment:3 by , 5 years ago
Summary: | WindowsError: [Error 123] The filename, directory name, or volume label syntax is incorrect. → _DeadlockError is raised when using StatReloader. |
---|
comment:4 by , 5 years ago
I deleted all _pycache_ dirs with files .pyc and first time runserver was ok, after ctr+c and next try the error back.
Example of log