#1 by mwridley
Hello all, I am trying to test out my collaborator's oTree code (which is in a shared folder). When I go into the folder and run -otree devserver-, I get this error message: "oTree has been updated. Please delete your database (db.sqlite3)". I am wary of deleting db.sqlite3 because the folder's shared - what if deleting db.sqlite3 messes things up for my collaborator? I believe my collaborator can run everything fine on his computer so I feel like the problem must be on my computer and not really with the database. I thought perhaps it was a version conflict so I checked the oTree version in requirements.txt and ran -pip install oTree==5.0.0- to install that same version on my computer. But it didn't work; same error message when I run -otree devserver. If anyone had any other ideas I'd be very grateful. Thank you so much, Matthew
#2
by
BonnEconLab
Why don’t you simply rename the db.sqlite3 file temporarily and then rename it back after you’re done? Or move the file temporarily to a different folder and move it back after you’re done? That being said, as long as you and your collaborator have not collected any real data, nothing bad will happen from deleting the db.sqlite3 file. If you have run oTree in that shared folder and your database contains data that must not be lost, then definitely back up that file.
#3 by mwridley
Thanks, after posting the message I actually thought of that myself and tried it but just got another error, so it must be some other problem. Like I said in my first message, I suspect the problem is on my computer and not really with the database. I understand that you'd probably need more specifics to help further so I'll just close out this thread and work on it myself. I was only asking the original question in case this was some known issue with an easy answer. I don't want to waste your time.