-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[development] Error when running loaddata: no such table: projects_project__old #5385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Like you mention, this is a bug in django not from read the docs. You need to downgrade your sqlite version. I'm using this in fedora 29 |
@stsewd Do you know off-hand of any workaround people are using on Mac OS? My system sqlite version is 3.22, but python ships with 3.26 and I can't find any method to change that version on Mac |
I'm using both Python and sqlite from homebrew and I was able to just switch to the older version of sqlite.
After running that, I saw the following:
|
@davidfischer thanks I'll try that out -- haven't tried switching readline yet |
Hey, I am not able to figure it out yet. I use ubuntu. My SQLite version is 3.27.2. Beginner to SQL, how do I fix this issue? |
@geekRishabhjain you need sqlite < 3.26, check https://docs.readthedocs.io/en/stable/development/install.html#requirements |
I can't find any method for ubuntu. Can anyone please tell me any terminal command to install an older version of sqlite? And how to set my django project to use it instead of the former |
Running into some issues when setting up the application locally. I'm running:
After installing dependencies and migrating the database, I get this error when running
python manage.py loaddata
:I've done some digging, and it seems potentially related to this issue with django. However, people commenting on that issue have said that their code worked with Django 1.11, so it's not clear why it would be breaking with this version
The root cause supposedly has to do with a change when going from sqlite 2.5.0 -> 2.6.0, but changing the sqlite version that python uses seems to be quite complicated and I haven't been able to downgrade it.
So far, I've tried manually editing the sqlite3/schema.rb file with django in my virtualenv to include the code in the PR which fixed Django, but that didn't fix my code
Right now, I'm in the middle of upgrading django locally to see if I can get the loaddata command to work then.Still fails even if I upgrade my local django version. Is there anything else I should try?Let me know if I can provide any more information
The text was updated successfully, but these errors were encountered: