Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
Ask Question
Want to improve this question?
Add details and clarify the problem by
editing this post
.
Closed
3 years ago
.
This post was edited and submitted for review
7 months ago
and failed to reopen the post:
Original close reason(s) were not resolved
I ran into this error after executing
python manage.py runserver
. This was just after pulling the repository after not having worked on it in a while. I tried checking to see that I had the dependencies installed and that my virtual environment was active and I still get the error.
The last line of the error (also the title of the question) is
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: '<frozen importlib._bootstrap>'
See the screenshot below:
I am new to Django so I have no idea what the cause of this error is.
–
I had the same issue here. After having suffering for a few hours stuck, I figured out the reason. It's very basic.
We forgot to run the migrate commands.
To fix, run the below commands in order:
python manage.py migrate
python manage.py makemigrations
python manage.py migrate
While the error notification is not relavance but this fix the error anyway :v.
You can read further information about migration Here.
The same issue is also occurred when someone misspell filename, directory name or app name... for example when someone create an app by the name of users and then he/she want to enlist the app in the INSTALLED_APPS List available in the setting.py file in misspell way like ............ users.app.UsersConfig instead of users.apps.UsersConfig
–
–
I am sensing that you are trying to import bootstrap files for your website.This can be conveniently done by adding the hyperlink from the bootstrap cdn on your base template.
Also you can download the boostrap package and copy the css and js files under the static folder in your project.
–
In my case, I was missing the \
when using multiple lines to import:
from .models import Country, State, Locality, Address,\
PercentageAmount, Condominium, Condominium_expenses_report,\
FunctionalUnit, Percentage, FunctionalUnit_expenses_report,\
Expense, Bill, Judgment, Insurance, Concept