Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libXrender.so.1 is required to display R plots inline #54

Closed
jfpuget opened this issue Oct 22, 2015 · 10 comments
Closed

libXrender.so.1 is required to display R plots inline #54

jfpuget opened this issue Oct 22, 2015 · 10 comments

Comments

@jfpuget
Copy link

jfpuget commented Oct 22, 2015

R plots such as the following only create a RPlots.pdf file in the working directory, then issue an error:

x<-1:10 plot(x)

output is:
Error in file(con, "rb"): cannot open the connection

Error in file(con, "rb"): cannot open the connection

Error in file(con, "rb"): cannot open the connection

Error in file(con, "rb"): cannot open the connection

plot without title

Installing the lib in the container with the following fixes the error

sudo apt-get install libxrender1

This issue is linked to #51

@parente
Copy link
Member

parente commented Oct 22, 2015

Need to resolve rebuild problem in #55 first. Then can fix this.

@jfpuget
Copy link
Author

jfpuget commented Oct 22, 2015

Sounds good.

@parente
Copy link
Member

parente commented Oct 22, 2015

It's actually installed in r-notebook (https://github.com/jupyter/docker-stacks/blob/master/r-notebook/Dockerfile#L13) and datascience-notebook. I'm guessing you're using all-spark-notebook where it's not.

@jfpuget
Copy link
Author

jfpuget commented Oct 22, 2015

Right, I should have said it was for all-spark-notebook.
It is good it is already installed in other images.

@parente
Copy link
Member

parente commented Oct 24, 2015

Merged and rebuilt. If you hit any other problems on the latest build, give a shout.

@parente parente closed this as completed Oct 24, 2015
@jfpuget
Copy link
Author

jfpuget commented Oct 24, 2015

Just tested and it works fine. Thanks for the quick build.

@diegocgaona
Copy link

I have the same error in a Linux AMI from Amazon in AWS.
I already installed libXrender.x86_64 and tried libXrender.i686, but without results. I see the error, and Jupyter generates a PDF in the directory.
I tried with ggplot() and plot()
Someone knows how to solve it?
Thanks!

@parente
Copy link
Member

parente commented Jan 14, 2016

@diegocgaona which stack image are you using?

@diegocgaona
Copy link

@parente Amazon Linux AMI 2015.09.1 (HVM), SSD Volume Type - ami-60b6c60a

@parente
Copy link
Member

parente commented Jan 14, 2016

I'm sorry, I meant which of the Docker container images in this repository are you using? If you're not using one of them, and are installing directly to the VM, then you need to replicate the Docker image contents, in particular the libxrender1 package installed here: https://github.com/jupyter/docker-stacks/blob/master/minimal-notebook/Dockerfile#L28

rochaporto pushed a commit to rochaporto/docker-stacks that referenced this issue Jan 23, 2019
Adding auth0 OAuthenticator implementation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants