Matthias Bussonnier added the comment:

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

----------
nosy: +mbussonn

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24268>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to