Timothy Mcwilliams
Timothy Mcwilliams

Reputation: 316

rPython can't find Pandas

I seem to be having trouble with running a python app on my shiny server with rPython.

I set my python sys path,

Sys.setenv(PATH = paste("/Users/timmcwilliams/anaconda2/bin/", Sys.getenv("PATH"),sep=":"))

Then I checked if it worked with,

  system("python --version")

Python 2.7.14 :: Anaconda, Inc.

Finally, I also check my PATH,

 Sys.getenv("PATH")
[1] "/Users/timmcwilliams/anaconda2/bin/:/Users/timmcwilliams/anaconda2/bin/:/Users/timmcwilliams/anaconda2/bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin"

So, I figured it worked correctly. But it seems to not have worked.

runApp('app')

Listening on http://127.0.0.1:4062
Warning: Error in python.exec: No module named pandas
Stack trace (innermost first):
    39: python.exec
    38: python.load
    37: server [/Users/timmcwilliams/Code/Scripts/search-microwave/app/server.R#10]
     1: runApp
Error in python.exec(code, get.exception) : No module named pandas

But I have pandas installed. I am really not sure why this is happening. Both python versions are the same 2.7.14 and I am positive I have Pandas installed because I use it on daily.

Upvotes: 0

Views: 101

Answers (0)

Related Questions