python 3.7 missing curses
Updating to Sailfish 3.1 I wondering where is curses support for python3.7, as that worked before the update ? I'm not fully familar with that stuff, but when starting a python scripton on a terminal with
import ncurses
inside, it blames me with
ModuleNotFoundError: no Module named _curses
And yes in fact there is no lib under /usr/lib/python3.7/lib-dynload/_curses*.so...
Does this depends on
https://git.merproject.org/mer-core/python3/commit/75b9baf29d79660c61c59c628f90d4a2c083401c ?
What must i do to get this working?
Cheers.
From my understanding, the commit you pointed indeed removed curses for GPLv3 reasons. It happened the same for sqlite, and to keep curses support, I created a separated package for the command line tool. Maybe something similar can be done in Python to package curses module in a separated package. If you need, I can help you proposing a MR.
Damien Caliste ( 2019-09-12 16:45:32 +0200 )editWhat do you mean with "for GPLv3 reasons"?
Mario ( 2019-09-12 20:38:15 +0200 )editMaybe @Andy Branson can correct me if I'm wrong, but I think that Jolla is providing SailfishOS as a commercial product without root access. But if you distribute GPLv3 software you need to provide a way to change the GPLv3 software with another version. Without root, this is hardly tractable (with a sudo why not), but surely something that the Jolla's contractor don't want to happen. So Jolla don't want to have GPLv3 software in the common distribution. Readline is now GPLv3 and all readline enabled features have been removed.
The solution we found for sqlite3 CLI was to provide the CLI in a separated package that is not distributed by default, but can be instalable with pkcon in the version available to the community on Jolla1, JollaC or Sony ports. I'm suggesting to do the same for curses module in Python.
Damien Caliste ( 2019-09-12 21:54:46 +0200 )editAllright, this only means that Jolla says more and more Goodbye to Opensource. Then let's wait and donate for Maemo Leste - and hope it will be soonly available for a few more phones! But nevertheless howto solve this problem for the rest of the day by using the developer mode:
Cheers
itsNotMe ( 2019-09-13 08:58:54 +0200 )edit@itsNotMe, I don't think this change anything to the open source status of SailfishOS. The community version that is officialy hosted on Jolla's servers can still provide GPLv3 packages, like the already mentioned sqlite CLI package.
The trouble is that they didn't care enough when removing readline dependencies. I'm using sqlite CLI regularly so I noticed the change and contributed to have it as a separated package. I'm not using Python on the phone, so I didn't notice. But it's open source (yes it is), having it in the main repo is just a matter of contributing a bit.
Damien Caliste ( 2019-09-13 09:47:58 +0200 )edit