On 2020-04-29 05:51, Boyuan Yang wrote:
TL;DR: Let's drop package ibus-pinyin from Debian since it implicitly (build- )depends on the unmaintained python2. If we want to save it, considerable amount of work need to be done.
FWIW I want to mention that porting ibus-pinyin itself to py3 isn't very hard. I did that last year as an experiment:
https://launchpad.net/~gunnarhj/+archive/ubuntu/ibus-pinyin/+packages
But the main obstacle seems to be libpyzy, which I have never looked at.
--
Gunnar Hjalmarsson
https://launchpad.net/~gunnarhj
</div><br><div>Regards,</div><div><br></div>2020年4月29日(水) 15:06 Gunnar Hjalmarsson <<a href="mailto:gunnarhj@ubuntu.com">gunnarhj@ubuntu.com</a>>:<br>><br>> On 2020-04-29 05:51, Boyuan Yang wrote:<br>> > TL;DR: Let's droppackage ibus-pinyin from Debian since it implicitly<br>> > (build- )depends on the unmaintained python2. If we want to save it,<br>> > considerable amount of work need to be done.<br>><br>> FWIW I want to mention that porting ibus-
<br>><br>> But the main obstacle seems to be libpyzy, which I have never looked at.<br>><br>> --<br>> Gunnar Hjalmarsson<br>> <a href="https://launchpad.net/~gunnarhj">https://launchpad.net/~gunnarhj</a><br>><br><br><br>--<br>Kentaro Hayashi <<a href="mailto:kenhys@gmail.com">kenhys@gmail.com</a>></div>
TL;DR: Let's drop package ibus-pinyin from Debian since it implicitly
(build- )depends on the unmaintained python2. If we want to save it, considerable amount of work need to be done.
FYI: I may be wrong because I didn't know well, but It seems that
someone tried to port libpyzy scripts to python3.
https://github.com/pyzy/pyzy/pull/4
On 2020-04-29 08:37, Kentaro Hayashi wrote:
FYI: I may be wrong because I didn't know well, but It seems that
someone tried to port libpyzy scripts to python3.
https://github.com/pyzy/pyzy/pull/4
You are not wrong at all; the work has already been done, apparently.
I tested it successfully and committed it as a patch to our repo.
https://salsa.debian.org/input-method-team/libpyzy/-/commit/40dc6196
So it looks like ibus-pinyin can stay in the archive for now. :)
在 2020-05-03星期日的 00:13 +0200,Gunnar Hjalmarsson写道:
https://salsa.debian.org/input-method-team/libpyzy/-/commit/40dc6196
So it looks like ibus-pinyin can stay in the archive for now. :)
The package may not FTBFS, but the python script did not run successfully. There are trackbacks like this:
make[5]: Entering directory '/<<PKGBUILDDIR>>/data/db/android'
\
rm -f android.db; \
./create_db.py ./rawdict_utf16_65105_freq.txt | /usr/bin/sqlite3 android.db ||
\
( rm -f android.db ; exit 1 )
Traceback (most recent call last):
File "./create_db.py", line 83, in <module>
main()
File "./create_db.py", line 80, in main
create_db(sys.argv[1])
File "./create_db.py", line 51, in create_db
records = list(read_phrases(filename))
File "./create_db.py", line 19, in read_phrases
buf = file(filename).read()
NameError: name 'file' is not defined
I continued with more patching work to fix this certain issue https://salsa.debian.org/input-method-team/libpyzy/-/commit/736051f06ecb41aada4448f6b89413d5b18bfb46
but that is not quite complete; it's still raising exceptions elsewhere. I'd expect more help from others on making this script runnable.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 62:20:21 |
Calls: | 6,654 |
Files: | 12,200 |
Messages: | 5,331,626 |