-
-
Notifications
You must be signed in to change notification settings - Fork 174
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
SQLite & Python working together on OSX #11
Comments
easiest fix is to just build the |
I believe standard practice would be to include the .sql file to build the database (created using The sql script exists here: https://github.com/swcarpentry/sql-novice-survey/blob/gh-pages/code/gen-survey-database.sql |
So you're saying I created the most convoluted solution to this possible? :) You're totally right, you can generate a working .db in the way you describe - I never saw that before. Actually, I think there's some confusion surrounding loading databases, since every time I've seen / taught this lesson, I've seen it done differently. Thanks @acabunoc, I'll close this and #12 and put some clarifying comments in the notes. |
You may still run into the same problem building the db this way! Double check first :) |
looks ok to me. |
…ctions Update link to instructions
The python script at the top of the programming lesson fails for me, with the complaint
A little googling suggests that python 2.7 uses some ancient sqlite version, that doesn't play nice with more recent ones; there are some suggestions on how to fix this on windows here and here, and something about coping with this in a virtualenv here, but this wasn't helpful to the casual OSX-using pythonista.
Does anyone know how to make Python 2.7 and SQL play nice together on OSX 10.9.5?
The text was updated successfully, but these errors were encountered: