jupyter-xeus / xeus-sql

Jupyter kernel for SQL databases
https://xeus-sql.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
165 stars 22 forks source link

Kernel crashes with `terminate called after throwing an instance of 'char const*'` #60

Closed yuvipanda closed 2 years ago

yuvipanda commented 2 years ago

@jameshowison is using this kernel for some of his classes, connecting to postgres over localhost. However, kernels are often crashing, and looking at the logs shows this error message:

`terminate called after throwing an instance of 'char const*'``

Doesn't actually tell us what was the value of the error message, nor a traceback - which I'm guessing will help us see what is actually happening.

https://github.com/2i2c-org/infrastructure/issues/968 has more context.

JohanMabille commented 2 years ago

xeus-sql only throws a string here so I guess the issue is that it could not load the database.

I will add better error handling though, maybe this can be thrown by a dependency of xeus-sql.

JohanMabille commented 2 years ago

@yuvipanda @jameshowison I've just tagged a release, I'm preparing the conda package, it should be available in a few hours.

yuvipanda commented 2 years ago

@JohanMabille yay, thank you :)

yuvipanda commented 2 years ago

@JohanMabille I see xeus-sql 0.1.5 in https://anaconda.org/conda-forge/xeus-sql but my builds are still failing (https://github.com/2i2c-org/utexas-image/runs/5302618142?check_suite_focus=true) with the version not being found. Do you know if this is a cache issue?

JohanMabille commented 2 years ago

Yes sometimes it can take a while before the package is replicated on all the mirrors. EDIT: the package is still not available for me.

yuvipanda commented 2 years ago

@JohanMabille i think it's done now!