source_python and py_config crashes

Open
#348 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
anaconda, python, r

Research direction

Begin by reproducing source_python() and py_config() on Windows 7 x64 with the reported Anaconda environment and Python DLL error. No source file or test is named; done means identifying the compatibility failure and adding a verified fix or documented resolution for this configuration.

Written by the indexing model from the issue text.

Description

Hi,

I am running on windows 7 X64 machine, and when I run source_pyhton fiunction and py_config, I get an error:

py_config() Error in py_initialize(config$python, config$libpython, config$pythonhome, : C:/ProgramData/Anaconda3/envs/r-reticulate/python37.dll - The specified procedure could not be found.
--

There is also a pop up window that says:
The procedure entry point ucrbase.abort could not be located in the dynamic link library api-ms-win-crt-runtime-l1-1-0.dll

Below is the configuration I have:

Sys.getenv()
ALLUSERSPROFILE C:\ProgramData
APPDATA C:\Users\root\AppData\Roaming
CLICOLOR_FORCE 1
CLIENTNAME RONI
CommonProgramFiles C:\Program Files\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME KXH
ComSpec C:\Windows\system32\cmd.exe
DISPLAY :0
FP_NO_HOST_CHECK NO
GFORTRAN_STDERR_UNIT -1
GFORTRAN_STDOUT_UNIT -1
HOME C:/Users/root/Documents
HOMEDRIVE C:
HOMEPATH \Users\root
LOCALAPPDATA C:\Users\root\AppData\Local
LOGONSERVER \KXH
MSYS2_ENV_CONV_EXCL R_ARCH
NUMBER_OF_PROCESSORS 8
OS Windows_NT
PATH C:\ProgramData\Anaconda3\envs\r-reticulate;C:\ProgramData\Anaconda3\envs\r-reticulate\Scripts;C:\ProgramData\Anaconda3\envs\r-reticulate\Library\bin;C:\ProgramData\Anaconda3\envs\r-reticulate;C:\ProgramData\Anaconda3\envs\r-reticulate\Scripts;C:\ProgramData\Anaconda3\envs\r-reticulate\Library\bin;C:\ProgramData\Anaconda3\envs\r-reticulate;C:\ProgramData\Anaconda3\envs\r-reticulate\Scripts;C:\ProgramData\Anaconda3\envs\r-reticulate\Library\bin;C:\ProgramData\Anaconda3;C:\ProgramData\Anaconda3\Scripts;C:\ProgramData\Anaconda3\Library\bin;C:\Program
Files\R\R-3.5.1\bin\x64;C:\ProgramData\Oracle\Java\javapath;c:\Rtools\bin;c:\Rtools\gcc-4.6.3\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program
Files (x86)\Windows Kits\8.0\Windows Performance Toolkit;C:\Program Files\Microsoft SQL
Server\110\Tools\Binn
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE AMD64
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 45 Stepping 7, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 2d07
ProgramData C:\ProgramData
ProgramFiles C:\Program Files
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PSModulePath C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC C:\Users\Public
R_ARCH /x64
R_COMPILED_BY gcc 4.9.3
R_DOC_DIR C:/PROGRA1/R/R-351.1/doc
R_HOME C:/PROGRA1/R/R-351.1
R_LIBS_USER C:/Users/root/Documents/R/win-library/3.5
R_USER C:/Users/root/Documents
RMARKDOWN_MATHJAX_PATH C:/Program Files/RStudio/resources/mathjax-26
RS_LOCAL_PEER \.\pipe\40607-rsession
RS_RPOSTBACK_PATH C:/Program Files/RStudio/bin/rpostback
RS_SHARED_SECRET 63341846741
RSTUDIO 1
RSTUDIO_CONSOLE_COLOR 256
RSTUDIO_CONSOLE_WIDTH 80
RSTUDIO_MSYS_SSH C:/Program Files/RStudio/bin/msys-ssh-1000-18
RSTUDIO_PANDOC C:/Program Files/RStudio/bin/pandoc
RSTUDIO_SESSION_PORT 40607
RSTUDIO_USER_IDENTITY root
RSTUDIO_WINUTILS C:/Program Files/RStudio/bin/winutils
SESSIONNAME RDP-Tcp#0
SystemDrive C:
SystemRoot C:\Windows
TEMP C:\Users\root\AppData\Local\Temp
TERM xterm-256color
TMP C:\Users\root\AppData\Local\Temp
USERDOMAIN KXH
USERNAME root
USERPROFILE C:\Users\root
VS110COMNTOOLS C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools
windir C:\Windows
windows_tracing_flags 3
windows_tracing_logfile C:\BVTBin\Tests\installpackage\csilogfile.log

Dominant language
R
Stars
1.8k
Forks
349
Avg merge
5h 13m
Merged PRs (30d)
4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rstudio/reticulate

All issues in rstudio/reticulate

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.