unable to load PythonInR

Create issue
Issue #7 new
Former user created an issue

Under windows 10, R 3.3, Anaconda, python 3.5. refresh install,

install.packages was successful, but loading failed. Any idea why?

library(PythonInR) Error : .onLoad failed in loadNamespace() for 'PythonInR', details: call: grepl(dllName, dir(pyHome), fixed = TRUE) error: invalid 'pattern' argument Error: package or namespace load failed for ‘PythonInR’

Comments (2)

  1. Florian Schwendinger repo owner

    Thats hard to say from here, the error definitely occurs when PythonInR tries to detect the settings for your Python version.

    Did you provide an pythonExePath to pyConnect? And or Python registered in the path?

    What should always work is when you do something like the following with your settings.

    PythonInR:::pyConnectWinDll(dllName="python27.dll", dllDir=NULL,
         majorVersion=2, pythonHome="C:\\Python27",  pyArch="32bit")
  2. Kristian Buchardt

    I have the same problem, Windows 7, Microsoft R Open Version and Python 3.6.

    Your suggested solution/workaround works for me though:

    PythonInR:::pyConnectWinDll(dllName="python36.dll", dllDir=NULL, majorVersion=3, pythonHome="c:/Program Files/Python36",  pyArch="64bit")
  3. Log in to comment