ContinuumIO / anaconda-issues

Anaconda issue tracking
646 stars 220 forks source link

Problems running RStudio #8571

Closed dchiu911 closed 6 years ago

dchiu911 commented 6 years ago

Actual Behavior

After installing rstudio with conda install -c r rstudio, I try to run rstudio from the terminal but get

QXcbConnection: Could not connect to display 
Aborted

Following #1806, I added to my PATH via export QT_QPA_PLATFORM="offscreen" but get a bunch of the following errors

QFontDatabase: Cannot find font directory /home/dchiu/miniconda3/lib/fonts - is Qt installed correctly?

Following this recommendation, I added to my PATH via export QT_QPA_FONTDIR="/usr/share/fonts" but get the following errors

This plugin does not support propagateSizeHints()
This plugin does not support raise()

I also get the same errors even if I follow recommendations in #6990 and using a separate environment.

Expected Behavior

Rstudio 1.1.383 should run

Steps to Reproduce

Typing rstudio at fresh terminal or after source activate rstudio

Anaconda or Miniconda version:
Operating System:
conda info
     active environment : None
            shell level : 0
       user config file : /home/dchiu/.condarc
 populated config files : /home/dchiu/.condarc
          conda version : 4.4.10
    conda-build version : not installed
         python version : 3.6.3.final.0
       base environment : /home/dchiu/miniconda3  (writable)
           channel URLs : https://conda.anaconda.org/bioconda/linux-64
                          https://conda.anaconda.org/bioconda/noarch
                          https://conda.anaconda.org/r/linux-64
                          https://conda.anaconda.org/r/noarch
                          https://repo.continuum.io/pkgs/main/linux-64
                          https://repo.continuum.io/pkgs/main/noarch
                          https://repo.continuum.io/pkgs/free/linux-64
                          https://repo.continuum.io/pkgs/free/noarch
                          https://repo.continuum.io/pkgs/r/linux-64
                          https://repo.continuum.io/pkgs/r/noarch
                          https://repo.continuum.io/pkgs/pro/linux-64
                          https://repo.continuum.io/pkgs/pro/noarch
                          https://conda.anaconda.org/conda-forge/linux-64
                          https://conda.anaconda.org/conda-forge/noarch
          package cache : /home/dchiu/miniconda3/pkgs
                          /home/dchiu/.conda/pkgs
       envs directories : /home/dchiu/miniconda3/envs
                          /home/dchiu/.conda/envs
               platform : linux-64
             user-agent : conda/4.4.10 requests/2.18.4 CPython/3.6.3 Linux/3.10.0-693.2.2.el7.x86_64 centos/7 glibc/2.17
                UID:GID : 1076:100
             netrc file : None
           offline mode : False
conda list --show-channel-urls
# packages in environment at /home/dchiu/miniconda3:
#
# Name                    Version                   Build  Channel
_r-mutex                  1.0.0               anacondar_1    r
anaconda-client           1.6.9                    py36_0    defaults
anaconda-navigator        1.7.0                    py36_0    defaults
anaconda-project          0.8.2            py36h44fb852_0    defaults
appdirs                   1.4.3                    py36_0    defaults
asn1crypto                0.23.0           py36h4639342_0    defaults
bleach                    2.1.2                    py36_0    defaults
bzip2                     1.0.6                h9a117a8_4    defaults
ca-certificates           2017.08.26           h1d4fec5_0    anaconda
cairo                     1.14.12              h77bcde2_0    defaults
certifi                   2018.1.18                py36_0    anaconda
cffi                      1.11.2           py36h2825082_0    defaults
chardet                   3.0.4            py36h0f667ec_1    defaults
click                     6.7              py36h5253387_0    defaults
clyent                    1.2.2            py36h7e57e65_1    defaults
conda                     4.4.10                   py36_0    anaconda
conda-env                 2.6.0                h36134e3_1    defaults
cryptography              2.1.4            py36hd09be54_0    defaults
curl                      7.58.0               h84994c4_0    defaults
cyrus-sasl                2.1.26               h1dd3434_1    defaults
dbus                      1.12.2               hc3f9b76_1    defaults
decorator                 4.2.1                    py36_0    defaults
entrypoints               0.2.3            py36h1aec115_2    defaults
expat                     2.2.5                he0dffb1_0    defaults
flask                     0.12.2           py36hb24657c_0    defaults
font-ttf-dejavu-sans-mono 2.37                 h6964260_0    defaults
font-ttf-inconsolata      2.001                hcb22688_0    defaults
font-ttf-source-code-pro  2.030                h7457263_0    defaults
font-ttf-ubuntu           0.83                 h8b1ccd4_0    defaults
fontconfig                2.12.4               h88586e7_1    defaults
fonts-anaconda            1                    h8fa9717_0    defaults
freetype                  2.8                  hab7d2ae_1    defaults
glib                      2.53.6               h5d9569c_2    defaults
gmp                       6.1.2                h6c8ec71_1    defaults
graphite2                 1.3.10               hf63cedd_1    defaults
gsl                       2.2.1                h0c605f7_3    defaults
gst-plugins-base          1.12.4               h33fb286_0    defaults
gstreamer                 1.12.4               hb53b477_0    defaults
harfbuzz                  1.7.4                hc5b324e_0    defaults
html5lib                  1.0.1            py36h2f9c1c0_0    defaults
icu                       58.2                 h9c2bf20_1    defaults
idna                      2.6              py36h82fb2a8_1    defaults
intel-openmp              2018.0.0             hc7b2577_8    defaults
ipykernel                 4.8.0                    py36_0    defaults
ipython                   6.2.1            py36h88c514a_1    defaults
ipython_genutils          0.2.0            py36hb52b0d5_0    defaults
itsdangerous              0.24             py36h93cc618_1    defaults
jedi                      0.11.1                   py36_0    defaults
jinja2                    2.10             py36ha16c418_0    defaults
jpeg                      9b                   h024ee3a_2    defaults
jsonschema                2.6.0            py36h006f8b5_0    defaults
jupyter_client            5.2.2                    py36_0    defaults
jupyter_core              4.4.0            py36h7c827e3_0    defaults
krb5                      1.14.2               hcdc1b81_6    defaults
libcurl                   7.58.0               h1ad7b7a_0    defaults
libedit                   3.1                  heed3624_0    defaults
libffi                    3.2.1                hd88cf55_4    defaults
libgcc                    7.2.0                h69d50b8_2    defaults
libgcc-ng                 7.2.0                h7cc24e2_2    defaults
libgfortran               3.0.0                         1    defaults
libgfortran-ng            7.2.0                h9f7466a_2    defaults
libntlm                   1.4                  h14c3975_2    defaults
libpng                    1.6.34               hb9fc6fc_0    defaults
libsodium                 1.0.15               hf101ebd_0    defaults
libssh2                   1.8.0                h9cfc8f7_4    defaults
libstdcxx-ng              7.2.0                h7a57d05_2    defaults
libtiff                   4.0.9                h28f6b97_0    defaults
libuuid                   1.0.3                h1bed415_2    defaults
libxcb                    1.12                 hcd93eb1_4    defaults
libxml2                   2.9.7                h26e45fe_0    defaults
markupsafe                1.0              py36hd9260cd_1    defaults
mistune                   0.8.3                    py36_0    defaults
mkl                       2018.0.1             h19d6760_4    defaults
nbconvert                 5.3.1            py36hb41ffb7_0    defaults
nbformat                  4.4.0            py36h31c9010_0    defaults
ncurses                   6.0                  h9df7e31_2    defaults
notebook                  5.4.0                    py36_0    defaults
numpy                     1.12.1           py36he24570b_1    defaults
olefile                   0.45.1                   py36_0    defaults
openssl                   1.0.2n               hb7f436b_0    anaconda
pandas                    0.19.2              np112py36_1    defaults
pandoc                    1.19.2.1             hea2e7c5_1    defaults
pandocfilters             1.4.2            py36ha6701b7_1    defaults
pango                     1.41.0               hd475d92_0    defaults
parso                     0.1.1            py36h35f843b_0    defaults
pcre                      8.41                 hc27e229_1    defaults
pexpect                   4.3.1                    py36_0    defaults
pickleshare               0.7.4            py36h63277f8_0    defaults
pillow                    5.0.0            py36h3deb7b8_0    defaults
pip                       9.0.1            py36h6c6f9ce_4    defaults
pixman                    0.34.0               hceecf20_3    defaults
prompt_toolkit            1.0.15           py36h17d85b1_0    defaults
psutil                    5.4.3            py36h14c3975_0    defaults
ptyprocess                0.5.2            py36h69acd42_0    defaults
pycosat                   0.6.3            py36h0a5515d_0    defaults
pycparser                 2.18             py36hf9f622e_1    defaults
pygments                  2.2.0            py36h0d3125c_0    defaults
pyopenssl                 17.5.0           py36h20ba746_0    defaults
pyqt                      5.6.0            py36h0386399_5    defaults
pysocks                   1.6.7            py36hd97a5b1_1    defaults
python                    3.6.3                h6c0c0dc_5    defaults
python-dateutil           2.6.1            py36h88d3b88_1    defaults
pytz                      2017.3           py36h63b9c63_0    defaults
pyyaml                    3.12             py36hafb9ca4_1    defaults
pyzmq                     16.0.3           py36he2533c7_0    defaults
qt                        5.6.2               h974d657_12    anaconda
qtpy                      1.3.1            py36h3691cc8_0    defaults
r-assertthat              0.2.0            r342h06193eb_0    r
r-backports               1.1.1            r342h9a9f1f2_0    r
r-base                    3.4.2                haf99962_0    r
r-base64enc               0.1_3            r342h7c929ec_4    r
r-bh                      1.65.0_1         r342h2d7c2ce_0    r
r-bindr                   0.1              r342hdee8079_0    r
r-bindrcpp                0.2              r342h4ea5b31_0    r
r-bit                     1.1_12           r342h7a05cba_0    r
r-bit64                   0.9_7            r342hcc44603_0    r
r-bitops                  1.0_6            r342hd891396_4    r
r-blob                    1.1.0            r342hf606c5c_0    r
r-boot                    1.3_20           r342ha5ac741_0    r
r-broom                   0.4.2            r342h90c284a_0    r
r-caret                   6.0_77           r342h201f268_0    r
r-catools                 1.17.1           r342hf01772b_4    r
r-cellranger              1.1.0            r342h51baf57_0    r
r-class                   7.3_14           r342h4797347_4    r
r-cluster                 2.0.6            r342hcb72a25_0    r
r-codetools               0.2_15           r342hc9ffb9b_0    r
r-colorspace              1.3_2            r342h81b277d_0    r
r-config                  0.2              r342hcf13b6a_0    r
r-crayon                  1.3.4            r342h0ed458a_0    r
r-curl                    3.0              r342hba591e3_0    r
r-cvst                    0.2_1            r342h830f301_0    r
r-data.table              1.10.4_1         r342h3908b10_0    r
r-dbi                     0.7              r342h835dbd3_0    r
r-dbplyr                  1.1.0            r342h3750f00_0    r
r-ddalpha                 1.3.1            r342hd2d3f94_0    r
r-deoptimr                1.0_8            r342h996e1ad_0    r
r-dichromat               2.0_0            r342h341c752_4    r
r-digest                  0.6.12           r342hee14287_0    r
r-dimred                  0.1.0            r342hb158d3e_0    r
r-dplyr                   0.7.4            r342hee63e26_0    r
r-drr                     0.0.2            r342h0fe108c_0    r
r-essentials              1.7.0            r342hf65ed6a_0    r
r-evaluate                0.10.1           r342hb679cc2_0    r
r-forcats                 0.2.0            r342h5fcb364_0    r
r-foreach                 1.4.3            r342h49221b0_4    r
r-foreign                 0.8_69           r342hbd6b6bb_0    r
r-formatr                 1.5              r342h0e06a18_0    r
r-ggplot2                 2.2.1            r342h8b6cf70_0    r
r-gistr                   0.4.0            r342h5cd5773_0    r
r-glmnet                  2.0_13           r342h0aac7f1_0    r
r-glue                    1.1.1            r342h3154e12_0    r
r-gower                   0.1.2            r342h54e18f5_0    r
r-gtable                  0.2.0            r342h8e3b2c8_0    r
r-haven                   1.1.0            r342h8909e7d_0    r
r-hexbin                  1.27.1           r342h72fd8d9_4    r
r-highr                   0.6              r342h2351100_0    r
r-hms                     0.3              r342ha729a9b_0    r
r-htmltools               0.3.6            r342h4080c21_0    r
r-htmlwidgets             0.9              r342h7fcc9b6_0    r
r-httpuv                  1.3.5            r342ha5ddd88_0    r
r-httr                    1.3.1            r342h7aba7de_0    r
r-ipred                   0.9_6            r342h7d58d5b_0    r
r-irdisplay               0.4.4            r342hc31a1b2_0    r
r-irkernel                0.8.9            r342hfe3cb8f_0    r
r-iterators               1.0.8            r342h4caec00_4    r
r-jsonlite                1.5              r342hf92f79e_0    r
r-kernlab                 0.9_25           r342hd770e69_0    r
r-kernsmooth              2.23_15          r342hdc3efa4_4    r
r-knitr                   1.17             r342h6500ef9_0    r
r-labeling                0.3              r342h7c30189_4    r
r-lattice                 0.20_35          r342h0f762c2_0    r
r-lava                    1.5.1            r342h598eca9_0    r
r-lazyeval                0.2.0            r342h346dbdc_0    r
r-lubridate               1.6.0            r342h47739ec_0    r
r-magrittr                1.5              r342h895a831_4    r
r-maps                    3.2.0            r342h79c810f_0    r
r-markdown                0.8              r342h4cc6e3e_0    r
r-mass                    7.3_47           r342hd8605c9_0    r
r-matrix                  1.2_11           r342h3a55fe1_0    r
r-mgcv                    1.8_22           r342h176cc83_0    r
r-mime                    0.5              r342h01856a9_0    r
r-miniui                  0.1.1            r342h33c7739_0    r
r-mnormt                  1.5_5            r342he1a489d_0    r
r-modelmetrics            1.1.0            r342h5a23eb1_0    r
r-modelr                  0.1.1            r342heb933ea_0    r
r-mongolite               1.2              r342hdcf03d2_0    r
r-munsell                 0.4.3            r342h79883fb_0    r
r-nlme                    3.1_131          r342h7f704e8_0    r
r-nnet                    7.3_12           r342ha98c111_0    r
r-numderiv                2016.8_1         r342h12eb246_0    r
r-odbc                    1.1.2            r342hf7c7794_0    r
r-openssl                 0.9.7            r342h1e3c16d_0    r
r-packrat                 0.4.8_1          r342h7bab2f7_0    r
r-pbdzmq                  0.2_6            r342h934a24f_0    r
r-pkgconfig               2.0.1            r342h5d9b92e_0    r
r-pki                     0.1_5.1          r342hba91d42_0    r
r-plogr                   0.1_1            r342h6d7f4c2_0    r
r-plyr                    1.8.4            r342h876901b_0    r
r-prodlim                 1.6.1            r342hd95c883_0    r
r-profvis                 0.3.3            r342h36dbb6c_0    r
r-pryr                    0.1.2            r342hf3bf84b_0    r
r-psych                   1.7.8            r342h1e2dc86_0    r
r-purrr                   0.2.3            r342h7916a1c_0    r
r-quantmod                0.4_11           r342h9c9c021_0    r
r-r6                      2.2.2            r342hcc750b5_0    r
r-randomforest            4.6_12           r342h41e62a9_4    r
r-rappdirs                0.3.1            r342h03ed50e_0    r
r-rbokeh                  0.5.0            r342h257354a_0    r
r-rcolorbrewer            1.1_2            r342h0dda8fb_0    r
r-rcpp                    0.12.13          r342h9f83869_0    r
r-rcpproll                0.2.2            r342hdd0cc16_0    r
r-rcurl                   1.95_4.8         r342hecb3894_0    r
r-readr                   1.1.1            r342hb25467c_0    r
r-readxl                  1.0.0            r342h1e5739b_0    r
r-recipes                 0.1.0            r342h0924b81_0    r
r-recommended             3.4.2                h1751db4_0    r
r-rematch                 1.0.1            r342he3f91f1_0    r
r-repr                    0.12.0           r342hde08b23_0    r
r-reshape2                1.4.2            r342h2e254a0_0    r
r-rjava                   0.9_9            r342h9890981_0    r
r-rjdbc                   0.2_5            r342he0388cf_0    r
r-rjsonio                 1.3_0            r342h5685322_4    r
r-rlang                   0.1.2            r342hc878738_0    r
r-rmarkdown               1.6              r342hacd9e3e_2    r
r-robustbase              0.92_7           r342h6021a74_0    r
r-rpart                   4.1_11           r342hd35cc14_0    r
r-rprojroot               1.2              r342hd69aa9e_0    r
r-rsconnect               0.8.5            r342h3a8d77b_0    r
r-rstudioapi              0.7              r342hedff9e9_0    r
r-rvest                   0.3.2            r342h8e81af5_0    r
r-scales                  0.5.0            r342h876bdd3_0    r
r-selectr                 0.3_1            r342hd6c1ff9_0    r
r-sfsmisc                 1.1_1            r342hadb04b4_0    r
r-shiny                   1.0.5            r342hc0a01ce_0    r
r-sourcetools             0.1.6            r342h519fec0_0    r
r-sparklyr                0.6.3            r342hac80a45_0    r
r-spatial                 7.3_11           r342hff2a1d0_4    r
r-stringi                 1.1.6            r342hf484d3e_0    r
r-stringr                 1.2.0            r342h701d218_0    r
r-survival                2.41_3           r342hac888f2_0    r
r-tibble                  1.3.4            r342h041fa31_0    r
r-tidyr                   0.7.1            r342h1bc61e7_0    r
r-tidyselect              0.2.2            r342h04f720c_0    r
r-tidyverse               1.1.1            r342hf9e2102_0    r
r-timedate                3012.100         r342h48d2e88_4    r
r-ttr                     0.23_2           r342hf82c04a_0    r
r-uuid                    0.1_2            r342h1393287_4    r
r-viridislite             0.2.0            r342h3706391_0    r
r-withr                   2.0.0            r342hfa1897f_0    r
r-xml2                    1.1.1            r342h3ff9a91_0    r
r-xtable                  1.8_2            r342hb75f6e7_0    r
r-xts                     0.10_0           r342h17852d6_4    r
r-yaml                    2.1.14           r342h72d8650_0    r
r-zoo                     1.8_0            r342h9faeba2_0    r
readline                  7.0                  ha6073c6_4    defaults
requests                  2.18.4           py36he2e5f8d_1    defaults
rstudio                   1.1.383              h2c9cdda_2    r
ruamel_yaml               0.11.14          py36ha2fb22d_2    defaults
scikit-learn              0.19.1           py36h7aa7ec6_0    defaults
scipy                     1.0.0            py36hbf646e7_0    defaults
send2trash                1.4.2                    py36_0    defaults
setuptools                36.5.0           py36he42e2e1_0    defaults
simplegeneric             0.8.1                    py36_2    defaults
sip                       4.18.1           py36h51ed4ed_2    defaults
six                       1.11.0           py36h372c433_1    defaults
sqlite                    3.20.1               hb898158_2    defaults
terminado                 0.8.1                    py36_1    defaults
testpath                  0.3.1            py36h8cadb63_0    defaults
tk                        8.6.7                hc745277_3    defaults
tornado                   4.5.3                    py36_0    defaults
traitlets                 4.3.2            py36h674d592_0    defaults
unixodbc                  2.3.4                hc36303a_1    defaults
urllib3                   1.22             py36hbe7ace6_0    defaults
vispr                     0.4.14                   py36_1    bioconda
wcwidth                   0.1.7            py36hdf4376a_0    defaults
webencodings              0.5.1            py36h800622e_1    defaults
werkzeug                  0.14.1                   py36_0    defaults
wheel                     0.30.0           py36hfd4bba0_1    defaults
xz                        5.2.3                h55aa19d_2    defaults
yaml                      0.1.7                had09818_2    defaults
zeromq                    4.2.2                hbedb6e5_2    defaults
zlib                      1.2.11               ha838bed_2    defaults
mingwandroid commented 6 years ago

Are you running from within a desktop environment here?

dchiu911 commented 6 years ago

No, from a computing node using ssh

mingwandroid commented 6 years ago

But RStudio is a graphical IDE. It has no use over a terminal, unless you are using X forwarding over SSH.

What are you hoping for here?

mingwandroid commented 6 years ago

Closing due to lack of feedback and apparent misunderstanding of what RStudio is/does.

ruyuanzhang commented 6 years ago

Same issue here. Can not use matplotlib. Report the same error.

callumparr commented 5 years ago

am using X-forwarding doesn't work

privefl commented 4 years ago

Same error here. Also using ssh -X.

Bigsealion commented 2 years ago

I have the exact same problem (same warning and error) as you and tried the same solution steps

Finally, I found my own problem, and written here for reference only.

A long time ago, I added a line: export QT_QPA_PLATFORM='offscreen' in environment variable file ~/.bashrc

After I delete this line, I can successfully open Rstudio.