#477 closed defect (fixed)
"from xapian import *" in Python raises AttributeError
| Reported by: | Michel Pelletier | Owned by: | Richard Boulton |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.2.1 |
| Component: | Xapian-bindings | Version: | 1.2.0 |
| Severity: | minor | Keywords: | |
| Cc: | Blocked By: | ||
| Blocking: | Operating System: | All |
Description (last modified by )
>>> from xapian import * Traceback (most recent call last): File "<console>", line 1, in <module> AttributeError: 'module' object has no attribute 'Document_unserialise' >>>
This appears to be because this name is exported by the module's __all__ but does not actually exist in the module itself:
>>> 'Document_unserialise' in xapian.__all__ True >>> hasattr(xapian, 'Document_unserialise') False >>>
Attachments (1)
Change History (6)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
| Version: | → 1.1.4 |
|---|
I also neglected to mention this is xapian 1.1.4. I will try to verify on 1.2
comment:3 by , 16 years ago
| Component: | Other → Xapian-bindings |
|---|---|
| Description: | modified (diff) |
| Milestone: | → 1.2.1 |
| Owner: | changed from to |
| Version: | 1.1.4 → 1.2.0 |
I see this with trunk, by patching smoketest with the attached patch.
Richard?
Note:
See TracTickets
for help on using tickets.

Sorry for the poor formatting. I should have previewed first: