building problems

4 views
Skip to first unread message

okido

unread,
Jun 20, 2009, 5:00:51 AM6/20/09
to tagaini-jisho
I tried to build 0.2.2 from src with openSuse 11.1 and python 2.6.
When building the db I got following message:

dev@linux:~/tagainijisho-0.2.2> python builddb.py
error: must supply either home or prefix/exec-prefix -- not both
Building JMdict database
Creating JMdict DB...
Traceback (most recent call last):
File "builddb.py", line 241, in <module>
buildDatabases()
File "builddb.py", line 139, in buildDatabases
buildJMdict()
File "builddb.py", line 118, in buildJMdict
jmdict.createDB(jmdictDB, jmdictdata)
File "src/python/jmdict.py", line 413, in createDB
db = pysqlite2.connect(dbFile)
AttributeError: 'module' object has no attribute 'connect'
dev@linux:~/tagainijisho-0.2.2>

Any suggestion welcome, Okido

Alexandre Courbot

unread,
Jun 20, 2009, 6:40:04 AM6/20/09
to tagain...@googlegroups.com
> dev@linux:~/tagainijisho-0.2.2> python builddb.py
> error: must supply either home or prefix/exec-prefix -- not both
> Building JMdict database

Mmm, looks like it fails to compile the python SQLite wrapper. After
searching, it appears that it should be fixed by changing line 102 of
builddb.py, which currently looks like:

os.system("python setup.py -q install --home=install
--install-purelib=install --install-platlib=install")

Just change "--home" to "--prefix" and it should work.

Thanks for reporting - and my apologies for the inconvenience, as one
of the first users to compile the software you have to go through
these disagreements. But it helps making Tagaini more solid! ;)

Also, as soon as I have enough time to invest in order to understand
how the OpenSUSE's build service works, binary packages should also be
available for OpenSUSE and Fedora.

Alex.

okido

unread,
Jun 20, 2009, 12:37:26 PM6/20/09
to tagaini-jisho
Thanks Alexandre,

The db are build now, got two messages that are unclear for me:

1.
[jmdict] 30000 entries processed
Entry 1388600: stagr found 0 potential results!
[jmdict] 40000 entries processed

2.
[jmdict] 130000 entries processed
Entry 2441290: re_restr found 0 potential results!
[jmdict] Inserting JLPT levels...

Have a nice day, Okido

Alexandre Courbot

unread,
Jun 20, 2009, 9:27:44 PM6/20/09
to tagain...@googlegroups.com
Hi,

> [jmdict] 30000 entries processed
> Entry 1388600: stagr found 0 potential results!
> [jmdict] 40000 entries processed
>
> 2.
> [jmdict] 130000 entries processed
> Entry 2441290: re_restr found 0 potential results!
> [jmdict] Inserting JLPT levels...

These are minor inconsistencies in the JMdict and are not related to
Tagaini. You may ignore them safely. After that, all you have to do is
'qmake && make' and you can run the tagainijisho binary that appears
at the end of the process! :)

Alex.

Reply all
Reply to author
Forward
0 new messages