error building tegaki-wagomu

77 views
Skip to first unread message

ru...@yahoo.com

unread,
Sep 27, 2011, 10:57:59 PM9/27/11
to Tegaki Handwriting Recognition Project
Hi, I am trying tegaki for the first time and it is working fine with
the zinnia engine and models.

But when I tried to build the wagomu engine, the following badness
happened:

$ cd tegaki-wagomu-0.3.1
$ python setup.py build
Traceback (most recent call last):
File "setup.py", line 40, in <module>
version = getversion(),
File "setup.py", line 14, in getversion
f = open(path)
IOError: [Errno 2] No such file or directory: '/home/rurpy/tegaki-
wagomu-0.3.1/tegakiwagomu.py'

and indeed, in the directory only the following files are present

PKG-INFO README setup.py wagomu.cpp wagomu.i wagomu.py

What am I missing?

Mathieu Blondel

unread,
Sep 28, 2011, 1:59:41 AM9/28/11
to tegak...@googlegroups.com
On Wed, Sep 28, 2011 at 11:57 AM, ru...@yahoo.com <ru...@yahoo.com> wrote:

> What am I missing?

The file was missing from the tarball, plain and simple :-( I've
re-uploaded it. Can you retry and tell me if it works now? Thanks a
lot for reporting!

Mathieu

ru...@yahoo.com

unread,
Oct 5, 2011, 8:41:32 PM10/5/11
to Tegaki Handwriting Recognition Project
On Sep 27, 11:59 pm, Mathieu Blondel <math...@mblondel.org> wrote:
> The file was missing from the tarball, plain and simple :-( I've
> re-uploaded it. Can you retry and tell me if it works now? Thanks a
> lot for reporting!

Sorry for the late response, got sidetracked with other things...
Thanks for the fix. tegaki-wagomu built and installed without
errors but now when I start tegaki (tegaki-recognise -s) which
was working, I get:

Traceback (most recent call last):
File "/usr/local/bin/tegaki-recognize", line 181, in <module>
TegakiRecognize(options).run()
File "/usr/local/bin/tegaki-recognize", line 77, in __init__
self._create_window()
File "/usr/local/bin/tegaki-recognize", line 105, in _create_window
rw = SimpleRecognizerWidget()
File "/usr/lib/python2.7/site-packages/tegakigtk/recognizer.py",
line 244, in __init__
RecognizerWidgetBase.__init__(self)
File "/usr/lib/python2.7/site-packages/tegakigtk/recognizer.py",
line 55, in __init__
self._load_preferences()
File "/usr/lib/python2.7/site-packages/tegakigtk/recognizer.py",
line 62, in _load_preferences
self.set_selected_model(pm["GENERAL"]["SELECTED_MODEL"])
File "/usr/lib/python2.7/site-packages/tegakigtk/recognizer.py",
line 225, in set_selected_model
r_name, model_name, meta = Recognizer.get_all_available_models()
[i]
File "/usr/lib/python2.7/site-packages/tegaki/recognizer.py", line
99, in get_all_available_models
for r_name, klass in
Recognizer.get_available_recognizers().items():
File "/usr/lib/python2.7/site-packages/tegaki/recognizer.py", line
65, in get_available_recognizers
cls._load_available_recognizers()
File "/usr/lib/python2.7/site-packages/tegaki/recognizer.py", line
82, in _load_available_recognizers
module = imp.load_source(module_name, f)
File "/usr/share/tegaki/engines/tegakiwagomu.py", line 28, in
<module>
from tegaki.recognizer import Results, Recognizer, RecognizerError
ImportError: cannot import name Results

I haven't looked for the problem at all yet so maybe its something
obvious I screwed up but thought I post it in case not.

ru...@yahoo.com

unread,
Oct 14, 2011, 7:06:14 PM10/14/11
to Tegaki Handwriting Recognition Project
No suggestions?

Mathieu Blondel

unread,
Oct 15, 2011, 1:51:13 AM10/15/11
to tegak...@googlegroups.com
I think the problem comes from the fact that I rebuilt the archive
from the git version, which depends on new features in tegaki-python.
When I get time, I will rebuild the archive and make sure the version
is correct (0.3.1). In the meantime, you can fix the problem by
installing the git version of tegaki-python and tegaki-pygtk.

Mathieu

ru...@yahoo.com

unread,
Oct 20, 2011, 6:07:09 PM10/20/11
to Tegaki Handwriting Recognition Project
That worked fine, thank you.
Reply all
Reply to author
Forward
0 new messages