Closed drj11 closed 10 years ago
:crying_cat_face:
You can now import scraperwiki
even if you can't write to the current directory (presumably as a result of the way .save()
works with SQLAlchemy).
No, it's that we defer opening the connection until first use, rather than doing it on module import, yay.
If I can't write to the current directory then
import scraperwiki
fails with a sqlite (!) error:This is horrible, and most unlibrary like.
It shouldn't try and open the sqlite file until it needs it.
We found this problem when deploying the newsreader website which being a good web server cannot write to its filesystem. It's loading
data-services-helpers
and it's not even usingimport scraperwiki
, it just gets sucked in bydata-services-helpers
.