[Xapian-tickets] [Xapian] #346: Python 3 support
Xapian
nobody at xapian.org
Wed Apr 29 15:04:46 BST 2009
#346: Python 3 support
-----------------------------+----------------------------------------------
Reporter: olly | Owner: richard
Type: defect | Status: new
Priority: normal | Milestone: 1.1.1
Component: Xapian-bindings | Version: SVN trunk
Severity: normal | Keywords:
Blockedby: | Platform: All
Blocking: |
-----------------------------+----------------------------------------------
Comment(by olly):
SVN trunk r12540 uses a newer SWIG and the bindings do now compile (at
least with the Python "3.0.1+" in Ubuntu jaunty. The testsuite fails
though.
The initial problem with that both smoketest3.py and pythontest3.py have
{{{from .testsuite import *}}} instead of {{{from testsuite import *}}}.
Fixing that, {{{make check VERBOSE=1}}}
gives me:
{{{
Running test: all... FAILED
smoketest3.py:35:<class 'TypeError'>: in method 'new_Stem', argument 1 of
type '
std::string const &'
33 expect(v2, v, "Unexpected version output")
34
-> 35 stem = xapian.Stem("english")
36 expect(str(stem), "Xapian::Stem(english)", "Unexpected
str(stem)")
37
Traceback (most recent call last):
File "/home/olly/svn/xapian/xapian-bindings/python/testsuite3.py", line
201, i
n runtest
test_fn()
File "/home/olly/svn/xapian/xapian-bindings/python/smoketest3.py", line
35, in
test_all
stem = xapian.Stem("english")
File "/home/olly/svn/xapian/xapian-bindings/python/xapian/__init__.py",
line 4
879, in __init__
}}}
--
Ticket URL: <http://trac.xapian.org/ticket/346#comment:4>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list