Can not find python module on shiny
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 1.8k
- Forks
- 349
- Avg merge
- 5h 13m
- Merged PRs (30d)
- 4
Description
I use the following code in ubuntu 14.04
library(reticulate)
use_python("/usr/lib/python3.5",requred=T)
np<-import("numpy")
It work perfectly when I using Rstudio.
But when I deploy my app on shinyserver, it keep showing "No module named numpy"
I'm pretty sure my python version when I using Rstudio is 3.5.2, but I can not know what my python version when my app running on shiny-server, I wonder if the error occured because my shiny use python2.7 as environment, and I haven't install numpy on the environment?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the shiny-server deployment context and compare the Python selected by use_python("/usr/lib/python3.5") with the runtime environment. Then check how np$import("numpy") resolves there; done means the import succeeds when the app runs under shiny-server.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, r
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100