Message314556
It seems that the problem is that `_Py_InitializeEx_Private` calls `_Py_InitializeCore` and `_Py_InitializeMainInterpreter`. The first one calls at the end `initimport` that in turns calls `importlib._install_external_importers` that sets the PathFinder. Then, `_Py_InitializeMainInterpreter` calls `initexternalimport` that in turns calls again `importlib._install_external_importers` and therefore we end with two PathFinders in sys.meta_path.
I think the solution is removing the call to initexternalimport in `_Py_InitializeMainInterpreter` as it has been alreade initialized by `_Py_InitializeCore`. |
|
| Date |
User |
Action |
Args |
| 2018-03-27 22:21:59 | pablogsal | set | recipients:
+ pablogsal, brett.cannon, htgoebel, ncoghlan, ned.deily, eric.snow |
| 2018-03-27 22:21:59 | pablogsal | set | messageid: <[email protected]> |
| 2018-03-27 22:21:59 | pablogsal | link | issue33128 messages |
| 2018-03-27 22:21:59 | pablogsal | create | |
|