Jordan Cook

Results 195 comments of Jordan Cook

That's fair. I'll try to clarify that in the docs some more. > does not equal segfault Your traceback looks like a regular python exception from the `sqlite3` standard library...

Ah! You're right, now I see it. Looks like that's happening in [`sqlite3_last_insert_rowid()`](https://github.com/sqlite/sqlite/blob/8c411f7fceffe287b5f94cf449550ee5d6c11601/src/main.c#L1120-L1128). Full trace: ```c #0 0x00007ffff4a68824 in sqlite3_last_insert_rowid () from /lib/x86_64-linux-gnu/libsqlite3.so.0 #1 0x00007ffff4b44bcf in _pysqlite_query_execute (self=self@entry=0x7ffff49b2a40, multiple=multiple@entry=0, operation=operation@entry=0x7ffff4c3af10,...

Thanks for the details. > `Unable to deserialize response: a bytes-like object is required, not 'NoneType'` In most cases this is something you can ignore. This usually happens after upgrading...

> sqlite3.InterfaceError: bad parameter or other API misuse I believe this issue has been fixed in main. While the root cause is still unknown, it was related to changes to...

> So far, both solutions make me sad Hah, I feel the same way. Your solution 1 is basically what I had in mind, but there may be ways to...

You can use either the first positional argument (`cache_name`): ```py CachedSession('/tmp/bar.sqlite', backend='sqlite') ``` Or `db_path`: ```py CachedSession(db_path='/tmp/bar.sqlite', backend='sqlite' ) ``` But not both. `cache_name` has a different meaning for each...

At minimum, it needs to dynamically detect the current site-packages dir. Example one-liner: ```sh python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())" ```

> Small changes in the setup like removing the Union in segfault.py, not assigning global variables, or not using imports in the first place but rather putting everything into one...

Here are requests-cache's serialization modules that make use of `attrs` + `cattrs`, for reference: https://github.com/requests-cache/requests-cache/tree/main/requests_cache/serializers For this library, I would opt to keep things a bit simpler since we don't...