-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
config option for disabling history store #2276
Comments
allow disabling SQLite history * adds HistoryAccessor.disabled configurable for turning off the SQLite history * also provides connection_options configurable dict for relaying kwargs to sqlite3.connect. This is a just-in-case measure, but I think valuable if people have a reason to adjust the SQLite connection flags. Mainly for use in situations where threading or filesystem issues can cause problems for sqlite, e.g. embedding in django. closes #2276
* adds HistoryAccessor.disabled configurable for turning off the SQLite history * also provides connection_options configurable dict for relaying kwargs to sqlite3.connect. This is a just-in-case measure, but I think valuable if people have a reason to adjust the SQLite connection flags. Mainly for use in situations where threading or filesystem issues can cause problems for sqlite, e.g. embedding in django. closes ipython#2276
@shabble |
Check this out...... |
My problem is just as same as yours. I finally figured it out that it's the "ipdb" package used in my django project that caused this. Try to remove any package that using ipython, hope it can help : ) |
* adds HistoryAccessor.disabled configurable for turning off the SQLite history * also provides connection_options configurable dict for relaying kwargs to sqlite3.connect. This is a just-in-case measure, but I think valuable if people have a reason to adjust the SQLite connection flags. Mainly for use in situations where threading or filesystem issues can cause problems for sqlite, e.g. embedding in django. closes ipython#2276
allow disabling SQLite history * adds HistoryAccessor.disabled configurable for turning off the SQLite history * also provides connection_options configurable dict for relaying kwargs to sqlite3.connect. This is a just-in-case measure, but I think valuable if people have a reason to adjust the SQLite connection flags. Mainly for use in situations where threading or filesystem issues can cause problems for sqlite, e.g. embedding in django. closes ipython#2276
I am using ipython within the django runserver app, which has a feature to auto-reload when it detects changes to project files. Every time this happens, however, it throws a number of exceptions seemingly stemming from ipython trying to save history to an sqlite database from multiple threads.
An excerpt of the error is as follows:
My understanding is that this is caused by the sqlite history store used by ipython is getting upset due to the threading model of the django server code. Oddly, the same error occurs even when using a single threaded runserver (
./manage.py runserver --nothreading
)On the suggestion of @minrk in #ipython freenode irc channel, I tried:
c.HistoryManager.hist_file = ':memory:'
, but this does not fix the problem. They suggested I write this up as a ticket with the probable solution being to have an option of disabling the history store altogether. This is probably similar to #909 which handles the case of sqlite being entirely unavailable.Thanks.
The text was updated successfully, but these errors were encountered: