Giter Site home page Giter Site logo

sopel-ipython's Introduction

sopel-ipython

IPython console plugin for Sopel IRC bots

Requirements

sopel-ipython requires the ipython libraries to be installed on your system. Installing this plugin via the normal methods should automatically handle that for you.

Usage

Install the package from PyPI:

pip install sopel-ipython

Enable with the sopel-plugins enable ipython command, if your bot configuration requires it.

License

sopel-ipython is released under the Eiffel Forum License 2, the same license as Sopel itself. See LICENSE file for full text.

sopel-ipython's People

Contributors

dgw avatar exirel avatar

Watchers

 avatar  avatar

sopel-ipython's Issues

`sqlite3.ProgrammingError` at shutdown if `.console` was used

Logs for posterity. I haven't been able to reproduce this with IPython 8, even with the published sopel-ipython 0.0.2 release (uploaded before #2 disabled the console history).

Exception ignored in atexit callback: <bound method InteractiveShell.atexit_operations of <IPython.terminal.embed.InteractiveShellEmbed object at 0x7f0e2198c430>>
Traceback (most recent call last):
  File "/home/dgw/.local/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3908, in atexit_operations
    self.history_manager.end_session()
  File "/home/dgw/.local/lib/python3.10/site-packages/IPython/core/history.py", line 574, in end_session
    self.writeout_cache()
  File "/home/dgw/.local/lib/python3.10/site-packages/decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
  File "/home/dgw/.local/lib/python3.10/site-packages/IPython/core/history.py", line 58, in needs_sqlite
    return f(self, *a, **kw)
  File "/home/dgw/.local/lib/python3.10/site-packages/IPython/core/history.py", line 780, in writeout_cache
    self._writeout_input_cache(conn)
  File "/home/dgw/.local/lib/python3.10/site-packages/IPython/core/history.py", line 761, in _writeout_input_cache
    with conn:
sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 139698651924032 and this is thread id 139698756259840.
$ pip list | grep ipython
ipython                       7.34.0
sopel-ipython                 0.0.2

I think the best "fix" for this is to hold until Sopel 8.0 is finished, then release a new version of sopel-ipython with #2 reverted (turning history back on), support for Sopel<8 and Python<3.8 dropped, and requiring IPython>=8.

That's a lot of 8sā€¦ But turning off the console history was already just a kludge-y workaround, and there's no reason to lose that feature from the plugin permanently unless I can reproduce the error with Python 3.8+ and a current version of IPython.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.