[issue36716] Embedded Python fails to import module files with version_platform extensions

2019-05-02 Thread Eric Cosatto
Eric Cosatto added the comment: I'm closing the issue, see my previous post. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.pyth

[issue36716] Embedded Python fails to import module files with version_platform extensions

2019-05-02 Thread Eric Cosatto
Eric Cosatto added the comment: Problem solved: Running the following code in the CommandLine Python and in the C++ embedded python clarified the problem: import importlib.machinery print(importlib.machinery.all_suffixes()) CommandLine Python: > ['.py', '.py

[issue36716] Embedded Python fails to import module files with version_platform extensions

2019-04-25 Thread Eric Cosatto
Eric Cosatto added the comment: Hi, I have a full install of Python from the installer in: C:\Program Files\Python37 Then, I added libraries using pip. Everything works fine from the command line Python. Then, I build my C++ application with VisualStudio and link to the Python DLLs. I start

[issue36716] Embedded Python fails to import module files with version_platform extensions

2019-04-24 Thread Eric Cosatto
Eric Cosatto added the comment: Yes, and note that the command line python works fine. -- ___ Python tracker <https://bugs.python.org/issue36716> ___ ___ Pytho

[issue36716] Embedded Python fails to import module files with version_platform extensions

2019-04-24 Thread Eric Cosatto
New submission from Eric Cosatto : I have an application with embedded python. When trying to import numpy, or any other module that was installed by pip, it fails with error 'ModuleNotFoundError("No module named ...")'. Yet, on the command line python, all works fine. T