Bug 9018 - Fix for Samba 4.0 beta 2 ntdb python module detection
Fix for Samba 4.0 beta 2 ntdb python module detection
Status: RESOLVED FIXED
Product: Samba 4.0
Classification: Unclassified
Component: Python
unspecified
All All
: P5 normal
: ---
Assigned To: Jelmer Vernooij
samba4-qa@samba.org
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-30 20:58 UTC by Pierre Lejeune
Modified: 2012-09-25 18:56 UTC (History)
0 users

See Also:


Attachments
Fix for ntdb python module (261 bytes, patch)
2012-06-30 20:58 UTC, Pierre Lejeune
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre Lejeune 2012-06-30 20:58:29 UTC
Created attachment 7680 [details]
Fix for ntdb python module

Samba 4.0 beta 2 doesn't find ntdb python module by issuing the following error :
>>> import ntdb
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: dynamic module does not define init function (initntdb)

It is due to a typo in lib/ntdb/pyntdb.c. The init function is actually named libtdb (historical?).

In attach is a patch fixing this bug.
Comment 1 Jelmer Vernooij 2012-09-25 18:56:47 UTC
Merged, thanks!