Erf je me fais avoir à chaque fois ! 😅
SQLite sur ma machine est compilé avec le support des fonctions mathématiques donc mon code fonctionne chez moi... Puis quand je le mets sur mon serveur ça marche plus par ce que le SQLite n'a pas les fonctions...
[#]SQLite #Python
=> More informations about this toot | More toots from FLOZz@mastodon.social
Heureusement on peut vérifier la présence d'une fonction et si elle manque on peut la binder sur la fonction Python correspondante ! 😁️
[#]SQLite #Python
=> View attached media | View attached media
=> More informations about this toot | More toots from FLOZz@mastodon.social
Voilà, c'est corrigé sur la branche master \o/
→ https://github.com/flozz/daily-mix/commit/fbd1d53234da913ffb3e405b81ca20030a4a81bf
=> More informations about this toot | More toots from FLOZz@mastodon.social
@FLOZz
Alternatively, you could use Roger Binns' APSW, so you can use a self-compiled SQLite library.
The blurbs: "APSW glues together the complete SQLite C API and Python’s C API, staying up to date with both SQLite and Python.". "Use APSW when you want to use SQLite fully, and have an improved developer experience. See more about the differences between APSW and sqlite3."
https://rogerbinns.github.io/apsw/about.html#apsw-and-sqlite-versions
=> More informations about this toot | More toots from knu@toot.community
@knu
FLOZz Daily Mix, the project I am currently working on, has no dependency (in the exception of Python itself) and I think it is better to keep it dependency-free.
But it is good to know that APSW exists, it may be useful to me on some other projects :D
=> More informations about this toot | More toots from FLOZz@mastodon.social
@FLOZz
👍
=> More informations about this toot | More toots from knu@toot.community This content has been proxied by September (ba2dc).Proxy Information
text/gemini