[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Dropping ibus-pinyin (or salvaging libpyzy)?


在 2020-05-03星期日的 00:13 +0200,Gunnar Hjalmarsson写道:
> 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. :)

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>
  File "./create_db.py", line 80, in main
  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 
but that is not quite complete; it's still raising exceptions elsewhere. I'd
expect more help from others on making this script runnable.

Boyuan Yang

Attachment: signature.asc
Description: This is a digitally signed message part

Reply to: