[issue30873] `SystemError: returned NULL without setting an error` from importing _pickle on Windows

2017-07-10 Thread STINNER Victor
STINNER Victor added the comment: ppperry: First, please create a Python script and attach it to the issue, it would make it easier to reproduce the bug. Second, which Python version did you test? I tested 3.6 and master Git branches on Windows, and I'm unable to reproduce the bug. I'm able

[issue30873] `SystemError: returned NULL without setting an error` from importing _pickle on Windows

2017-07-08 Thread ppperry
Changes by ppperry : -- title: `SystemError: returned NULL without setting an error` from importing _pickle -> `SystemError: returned NULL without setting an error` from importing _pickle on Windows ___ Python tracker

[issue30873] `SystemError: returned NULL without setting an error` from importing _pickle

2017-07-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, this is Windows-only _imp.create_builtin(). -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker

[issue30873] `SystemError: returned NULL without setting an error` from importing _pickle

2017-07-08 Thread ppperry
ppperry added the comment: Interesting. For you, `_pickle` seems to be an extension module, which is thus trying to call `imp.create_dynamic`, whereas for me it is a builtin module. Perhaps that explains why you get a KeyError and I get a SystemError (my traceback ends with): File

[issue30873] `SystemError: returned NULL without setting an error` from importing _pickle

2017-07-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I get the following error on 3.7: $ ./python issue30873.py Traceback (most recent call last): File "issue30873.py", line 44, in exec("import _pickle", dct) File "", line 1, in File "/home/serhiy/py/cpython/Lib/importlib/_bootstrap.py", line 1059,

[issue30873] `SystemError: returned NULL without setting an error` from importing _pickle

2017-07-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue30873] `SystemError: returned NULL without setting an error` from importing _pickle

2017-07-07 Thread ppperry
Changes by ppperry : -- title: `SystemError: returned NULL without setting an error` from imp.create_builtin -> `SystemError: returned NULL without setting an error` from importing _pickle ___ Python tracker