unable to start device PNG

Issue #61 new
Former user created an issue

I am using version 3.5.0 with support for JPEG, PNG, TIFF, and other graphics formats:

$ R

R version 3.5.0 (2018-04-23) -- "Joy in Playing" Copyright (C) 2018 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details.

Natural language support but running in an English locale

R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R.

[Previously saved workspace restored]

capabilities() jpeg png tiff tcltk X11 aqua TRUE TRUE TRUE TRUE FALSE FALSE http/ftp sockets libxml fifo cledit iconv TRUE TRUE TRUE TRUE TRUE TRUE NLS profmem cairo ICU long.double libcurl TRUE FALSE TRUE FALSE TRUE TRUE

Running the following RepEx2 command "seqclust --tarean_mode LAS****.fas" produces and error:

... loading blast results loading blast results loading blast results creating graph creating graph graph layout calculation using OGDF & frucherman reingold graph layout calculation using OGDF & frucherman reingold exporting graph figureError in .External2(C_X11, paste0("png::", filename), g$width, g$height, : unable to start device PNG In addition: Warning message: In png(image_file, width = 900, height = 900, pointsize = 20) : unable to open connection to X11 display '' Process 58: Traceback (most recent call last): File "/sysapps/cluster/software/Anaconda/2.3.0Linux-x86_64/envs/2016-Q3-Python-3.5/lib/python3.5/site-packages/pyRserve/rparser.py", line 448, in parse rserve_err_msg = ERRORS[self.lexer.errCode] KeyError: 127

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/sysapps/cluster/software/Anaconda/2.3.0Linux-x86_64/envs/2016-Q3-Python-3.5/lib/python3.5/site-packages/pyRserve/rconn.py", line 170, in eval message = rparse(src, atomicArray=atomicArray) File "/sysapps/cluster/software/Anaconda/2.3.0Linux-x86_64/envs/2016-Q3-Python-3.5/lib/python3.5/site-packages/pyRserve/rparser.py", line 640, in rparse return rparser.parse() File "/sysapps/cluster/software/Anaconda/2.3.0Linux-x86_64/envs/2016-Q3-Python-3.5/lib/python3.5/site-packages/pyRserve/rparser.py", line 451, in parse self.lexer.errCode) pyRserve.rexceptions.REvalError: R evaluation error (code=127)

This command: "pip list | grep pyRserve" gives "pyRserve 0.9.1"

X11 works from inside R, so I assume it should NOT be a problem... Do you have any suggestions on how to fix this error? Thank you!

Comments (0)

  1. Log in to comment