To all R users Good afternoon Has anyone used the reticulate package with python3 within the MSYS2 (windows) environment ??? With the python2 version works without problems. But my goal is to use PyGI (Gtk3) which is officially supported on windows only by MSYS2. Thanks in advance for any help! Cleber Borges ######################## > system("where python") C:\Python27_64bit\python.exe [1] 0 > system("C:/msys64/mingw64/bin/python.exe -V") Python 3.7.4 [1] 0 > system("C:/Python27_64bit/python.exe -V") Python 2.7.10 [1] 0 > Sys.setenv(RETICULATE_PYTHON = "C:/msys64/mingw64/bin" ) > library( reticulate ) > py_discover_config() python:???????? C:/msys64/mingw64/bin/python.exe libpython:????? python37.dll pythonhome:???? C:/building/msys64/mingw64 version:??????? 3.7.4 (default, Aug 15 2019, 18:17:27)? [GCC 9.2.0 64 bit (AMD64)] Architecture:?? 64bit numpy:?????????? [NOT FOUND] NOTE: Python version was forced by RETICULATE_PYTHON > py_available( TRUE ) [1] FALSE > py_available(? ) [1] FALSE > os <- import("os") Error in py_initialize(config$python, config$libpython, config$pythonhome,? : ? python37.dll - N?o foi poss?vel encontrar o m?dulo especificado. > >
On Sat, 14 Sep 2019 15:18:54 -0300 Cleber Borges <cleber.borges at ufla.br> wrote:> python37.dll - N?o foi poss?vel encontrar o m?dulo especificado.This might mean that python37.dll depends on another DLL which could not be found. You might have to add C:/msys64/mingw64/bin/ and/or another directory to the PATH environment variable to make it work. Use Dependency Walker [*] or a similar tool to find out which DLLs python37.dll depends on. Alternatively, use Sysinternals Process Monitor [**] to see which files does it try to open before a `reticulate` call fails. -- Best regards, Ivan [*] http://dependencywalker.com/ [**] https://docs.microsoft.com/en-us/sysinternals/downloads/procmon
Hello Ivan Krylov and all users, I think I understand your observation but there is no file named by python37.dll on the computer. It may be as static build inside python3.exe but if so should not give this error? Thank you Cleber Borges Em 15/09/2019 09:04, Ivan Krylov escreveu:> On Sat, 14 Sep 2019 15:18:54 -0300 > Cleber Borges <cleber.borges at ufla.br> wrote: > >> python37.dll - N??o foi poss??vel encontrar o m??dulo especificado. > This might mean that python37.dll depends on another DLL which could not > be found. You might have to add C:/msys64/mingw64/bin/ and/or another > directory to the PATH environment variable to make it work. Use > Dependency Walker [*] or a similar tool to find out which DLLs > python37.dll depends on. > > Alternatively, use Sysinternals Process Monitor [**] to see which files > does it try to open before a `reticulate` call fails. >