Spyder's Warning: “Session/line number not unique in database”

筅森魡賤 提交于 2019-12-06 08:48:35

问题


When I am programming in Spyder it happens from time to time that I get an error message like this:

ERROR! Session/line number was not unique in database. History logging moved to new session

I never really bothered with it, because I couldn't see any effect it had on the outcome of my code. However, just to be sure, I'd like to know what exactly it means, for which reasons this error tends to occur and whether/how I should fix it. Google wasn't a great help for that matter, but from naive observation, I have the hunch that it is related to printing things to the console.


回答1:


(Spyder maintainer here) It seems this error occurs when IPython fails to write cached entries to its history database. You can find it in this file.



来源:https://stackoverflow.com/questions/35986087/spyders-warning-session-line-number-not-unique-in-database

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!