Message244008
Hi,
Since the last few patches related to this, I seem to have an issue with `Python/importdl.c:get_encoded_name` (I guess) sometime returning the name with a leading dot. This lead to `PyInit_.modulename` being searched which fails.
My C-foo is extremely low, but changing [1] to `lastdot+1`
seem to do the trick for me (hence above supposition).
More especially in my case compiling Cython `failed to import Cython: dynamic module does not define module export function (PyInit_.Scanning)`, from `import Cython.Compiler.Scanning` I suppose. While it seem to does that ok with the `+1`.
I haven't found any related issues, and my read of pep 489 made me think this was not meant to change, Though I doubt my fix is correct.
Sorry if duplicate or already fixed, I searched as I could but did not found anything.
Thanks.
[1] https://hg.python.org/cpython/rev/e729b946cc03#l29.59 |
|
Date |
User |
Action |
Args |
2015-05-24 23:36:15 | mbussonn | set | recipients:
+ mbussonn, ncoghlan, larry, petr.viktorin, BreamoreBoy, python-dev, eric.snow, zach.ware, steve.dower |
2015-05-24 23:36:15 | mbussonn | set | messageid: <1432510575.59.0.605854932086.issue24268@psf.upfronthosting.co.za> |
2015-05-24 23:36:15 | mbussonn | link | issue24268 messages |
2015-05-24 23:36:15 | mbussonn | create | |
|