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

Issue with anaconda-navigator: WARNING linux_scaling.get_scaling_factor_using_dbus:27 #12133

Open
aquestionx opened this issue Nov 3, 2020 · 53 comments

Comments

@aquestionx
Copy link

Actual Behavior

A warning message appears in terminal after launch anaconda-navigator. "WARNING linux_scaling.get_scaling_factor_using_dbus:27 An exception occurred during fetching list of system display settings."
The maximize button is not in titlebar and it's impossible to maximize the window

Expected Behavior

There should be a maximize button in the titlebar

Steps to Reproduce

I just installed Anaconda3-2020.07-Linux-x86_64.sh on Linux Mint 19.3 Tricia with Cinnamon desktop. After installation, the first time I run anaconda-navigator from terminal, I encountered a problem "UnboundLocalError: local variable 'DISTRO_NAME' referenced before assignment". I fix that problem by run "conda update anaconda-navigator" in terminal. Now I can open Anaconda Navigator with the command "anaconda-navigator" but there is a warning in terminal: "WARNING linux_scaling.get_scaling_factor_using_dbus:27
An exception occurred during fetching list of system display settings."

Anaconda or Miniconda version:

Anaconda3-2020.07-Linux-x86_64.sh

Operating System:

Linux Mint 19.3 Tricia

conda info
PASTE OUTPUT HERE:$ conda info

     active environment : base
    active env location : /home/sam/anaconda3
            shell level : 1
       user config file : /home/sam/.condarc
 populated config files : /home/sam/.condarc
          conda version : 4.9.1
    conda-build version : 3.18.11
         python version : 3.8.3.final.0
       virtual packages : __glibc=2.27=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /home/sam/anaconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/sam/anaconda3/pkgs
                          /home/sam/.conda/pkgs
       envs directories : /home/sam/anaconda3/envs
                          /home/sam/.conda/envs
               platform : linux-64
             user-agent : conda/4.9.1 requests/2.24.0 CPython/3.8.3 Linux/5.4.0-52-generic linuxmint/19.3 glibc/2.27
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False


conda list --show-channel-urls
PASTE OUTPUT HERE:$ conda list --show-channel-urls
# packages in environment at /home/sam/anaconda3:
#
# Name                    Version                   Build  Channel
_ipyw_jlab_nb_ext_conf    0.1.0                    py38_0    defaults
_libgcc_mutex             0.1                        main    defaults
alabaster                 0.7.12                     py_0    defaults
anaconda                  2020.07                  py38_0    defaults
anaconda-client           1.7.2                    py38_0    defaults
anaconda-navigator        1.10.0                   py38_0    defaults
anaconda-project          0.8.4                      py_0    defaults
argh                      0.26.2                   py38_0    defaults
asn1crypto                1.3.0                    py38_0    defaults
astroid                   2.4.2                    py38_0    defaults
astropy                   4.0.1.post1      py38h7b6447c_1    defaults
atomicwrites              1.4.0                      py_0    defaults
attrs                     19.3.0                     py_0    defaults
autopep8                  1.5.3                      py_0    defaults
babel                     2.8.0                      py_0    defaults
backcall                  0.2.0                      py_0    defaults
backports                 1.0                        py_2    defaults
backports.functools_lru_cache 1.6.1                      py_0    defaults
backports.shutil_get_terminal_size 1.0.0                    py38_2    defaults
backports.tempfile        1.0                        py_1    defaults
backports.weakref         1.0.post1                  py_1    defaults
beautifulsoup4            4.9.1                    py38_0    defaults
bitarray                  1.4.0            py38h7b6447c_0    defaults
bkcharts                  0.2                      py38_0    defaults
blas                      1.0                         mkl    defaults
bleach                    3.1.5                      py_0    defaults
blosc                     1.19.0               hd408876_0    defaults
bokeh                     2.1.1                    py38_0    defaults
boto                      2.49.0                   py38_0    defaults
bottleneck                1.3.2            py38heb32a55_1    defaults
brotlipy                  0.7.0           py38h7b6447c_1000    defaults
bzip2                     1.0.8                h7b6447c_0    defaults
ca-certificates           2020.6.24                     0    defaults
cairo                     1.14.12              h8948797_3    defaults
certifi                   2020.6.20                py38_0    defaults
cffi                      1.14.0           py38he30daa8_1    defaults
chardet                   3.0.4                 py38_1003    defaults
click                     7.1.2                      py_0    defaults
cloudpickle               1.5.0                      py_0    defaults
clyent                    1.2.2                    py38_1    defaults
colorama                  0.4.3                      py_0    defaults
conda                     4.9.1            py38h06a4308_0    defaults
conda-build               3.18.11                  py38_0    defaults
conda-env                 2.6.0                         1    defaults
conda-package-handling    1.7.2            py38h03888b9_0    defaults
conda-verify              3.4.2                      py_1    defaults
contextlib2               0.6.0.post1                py_0    defaults
cryptography              2.9.2            py38h1ba5d50_0    defaults
curl                      7.71.1               hbc83047_1    defaults
cycler                    0.10.0                   py38_0    defaults
cython                    0.29.21          py38he6710b0_0    defaults
cytoolz                   0.10.1           py38h7b6447c_0    defaults
dask                      2.20.0                     py_0    defaults
dask-core                 2.20.0                     py_0    defaults
dbus                      1.13.16              hb2f20db_0    defaults
decorator                 4.4.2                      py_0    defaults
defusedxml                0.6.0                      py_0    defaults
diff-match-patch          20200713                   py_0    defaults
distributed               2.20.0                   py38_0    defaults
docutils                  0.16                     py38_1    defaults
entrypoints               0.3                      py38_0    defaults
et_xmlfile                1.0.1                   py_1001    defaults
expat                     2.2.9                he6710b0_2    defaults
fastcache                 1.1.0            py38h7b6447c_0    defaults
filelock                  3.0.12                     py_0    defaults
flake8                    3.8.3                      py_0    defaults
flask                     1.1.2                      py_0    defaults
fontconfig                2.13.0               h9420a91_0    defaults
freetype                  2.10.2               h5ab3b9f_0    defaults
fribidi                   1.0.9                h7b6447c_0    defaults
fsspec                    0.7.4                      py_0    defaults
future                    0.18.2                   py38_1    defaults
get_terminal_size         1.0.0                haa9412d_0    defaults
gevent                    20.6.2           py38h7b6447c_0    defaults
glib                      2.65.0               h3eb4bd4_0    defaults
glob2                     0.7                        py_0    defaults
gmp                       6.1.2                h6c8ec71_1    defaults
gmpy2                     2.0.8            py38hd5f6e3b_3    defaults
graphite2                 1.3.14               h23475e2_0    defaults
greenlet                  0.4.16           py38h7b6447c_0    defaults
gst-plugins-base          1.14.0               hbbd80ab_1    defaults
gstreamer                 1.14.0               hb31296c_0    defaults
h5py                      2.10.0           py38h7918eee_0    defaults
harfbuzz                  2.4.0                hca77d97_1    defaults
hdf5                      1.10.4               hb1b8bf9_0    defaults
heapdict                  1.0.1                      py_0    defaults
html5lib                  1.1                        py_0    defaults
icu                       58.2                 he6710b0_3    defaults
idna                      2.10                       py_0    defaults
imageio                   2.9.0                      py_0    defaults
imagesize                 1.2.0                      py_0    defaults
importlib-metadata        1.7.0                    py38_0    defaults
importlib_metadata        1.7.0                         0    defaults
intel-openmp              2020.1                      217    defaults
intervaltree              3.0.2                      py_1    defaults
ipykernel                 5.3.2            py38h5ca1d4c_0    defaults
ipython                   7.16.1           py38h5ca1d4c_0    defaults
ipython_genutils          0.2.0                    py38_0    defaults
ipywidgets                7.5.1                      py_0    defaults
isort                     4.3.21                   py38_0    defaults
itsdangerous              1.1.0                      py_0    defaults
jbig                      2.1                  hdba287a_0    defaults
jdcal                     1.4.1                      py_0    defaults
jedi                      0.17.1                   py38_0    defaults
jeepney                   0.4.3                      py_0    defaults
jinja2                    2.11.2                     py_0    defaults
joblib                    0.16.0                     py_0    defaults
jpeg                      9b                   h024ee3a_2    defaults
json5                     0.9.5                      py_0    defaults
jsonschema                3.2.0                    py38_0    defaults
jupyter                   1.0.0                    py38_7    defaults
jupyter_client            6.1.6                      py_0    defaults
jupyter_console           6.1.0                      py_0    defaults
jupyter_core              4.6.3                    py38_0    defaults
jupyterlab                2.1.5                      py_0    defaults
jupyterlab_server         1.2.0                      py_0    defaults
keyring                   21.2.1                   py38_0    defaults
kiwisolver                1.2.0            py38hfd86e86_0    defaults
krb5                      1.18.2               h173b8e3_0    defaults
lazy-object-proxy         1.4.3            py38h7b6447c_0    defaults
lcms2                     2.11                 h396b838_0    defaults
ld_impl_linux-64          2.33.1               h53a641e_7    defaults
libarchive                3.4.2                h62408e4_0    defaults
libcurl                   7.71.1               h20c2e04_1    defaults
libedit                   3.1.20191231         h14c3975_1    defaults
libffi                    3.3                  he6710b0_2    defaults
libgcc-ng                 9.1.0                hdf63c60_0    defaults
libgfortran-ng            7.3.0                hdf63c60_0    defaults
liblief                   0.10.1               he6710b0_0    defaults
libllvm9                  9.0.1                h4a3c616_1    defaults
libpng                    1.6.37               hbc83047_0    defaults
libsodium                 1.0.18               h7b6447c_0    defaults
libspatialindex           1.9.3                he6710b0_0    defaults
libssh2                   1.9.0                h1ba5d50_1    defaults
libstdcxx-ng              9.1.0                hdf63c60_0    defaults
libtiff                   4.1.0                h2733197_1    defaults
libtool                   2.4.6                h7b6447c_5    defaults
libuuid                   1.0.3                h1bed415_2    defaults
libxcb                    1.14                 h7b6447c_0    defaults
libxml2                   2.9.10               he19cac6_1    defaults
libxslt                   1.1.34               hc22bd24_0    defaults
llvmlite                  0.33.0           py38hc6ec683_1    defaults
locket                    0.2.0                    py38_1    defaults
lxml                      4.5.2            py38hefd8a0e_0    defaults
lz4-c                     1.9.2                he6710b0_0    defaults
lzo                       2.10                 h7b6447c_2    defaults
markupsafe                1.1.1            py38h7b6447c_0    defaults
matplotlib                3.2.2                         0    defaults
matplotlib-base           3.2.2            py38hef1b27d_0    defaults
mccabe                    0.6.1                    py38_1    defaults
mistune                   0.8.4           py38h7b6447c_1000    defaults
mkl                       2020.1                      217    defaults
mkl-service               2.3.0            py38he904b0f_0    defaults
mkl_fft                   1.1.0            py38h23d657b_0    defaults
mkl_random                1.1.1            py38h0573a6f_0    defaults
mock                      4.0.2                      py_0    defaults
more-itertools            8.4.0                      py_0    defaults
mpc                       1.1.0                h10f8cd9_1    defaults
mpfr                      4.0.2                hb69a4c5_1    defaults
mpmath                    1.1.0                    py38_0    defaults
msgpack-python            1.0.0            py38hfd86e86_1    defaults
multipledispatch          0.6.0                    py38_0    defaults
navigator-updater         0.2.1                    py38_0    defaults
nbconvert                 5.6.1                    py38_0    defaults
nbformat                  5.0.7                      py_0    defaults
ncurses                   6.2                  he6710b0_1    defaults
networkx                  2.4                        py_1    defaults
nltk                      3.5                        py_0    defaults
nose                      1.3.7                    py38_2    defaults
notebook                  6.0.3                    py38_0    defaults
numba                     0.50.1           py38h0573a6f_1    defaults
numexpr                   2.7.1            py38h423224d_0    defaults
numpy                     1.18.5           py38ha1c710e_0    defaults
numpy-base                1.18.5           py38hde5b4d6_0    defaults
numpydoc                  1.1.0                      py_0    defaults
olefile                   0.46                       py_0    defaults
openpyxl                  3.0.4                      py_0    defaults
openssl                   1.1.1g               h7b6447c_0    defaults
packaging                 20.4                       py_0    defaults
pandas                    1.0.5            py38h0573a6f_0    defaults
pandoc                    2.10                          0    defaults
pandocfilters             1.4.2                    py38_1    defaults
pango                     1.45.3               hd140c19_0    defaults
parso                     0.7.0                      py_0    defaults
partd                     1.1.0                      py_0    defaults
patchelf                  0.11                 he6710b0_0    defaults
path                      13.1.0                   py38_0    defaults
path.py                   12.4.0                        0    defaults
pathlib2                  2.3.5                    py38_0    defaults
pathtools                 0.1.2                      py_1    defaults
patsy                     0.5.1                    py38_0    defaults
pcre                      8.44                 he6710b0_0    defaults
pep8                      1.7.1                    py38_0    defaults
pexpect                   4.8.0                    py38_0    defaults
pickleshare               0.7.5                 py38_1000    defaults
pillow                    7.2.0            py38hb39fc2d_0    defaults
pip                       20.1.1                   py38_1    defaults
pixman                    0.40.0               h7b6447c_0    defaults
pkginfo                   1.5.0.1                  py38_0    defaults
pluggy                    0.13.1                   py38_0    defaults
ply                       3.11                     py38_0    defaults
prometheus_client         0.8.0                      py_0    defaults
prompt-toolkit            3.0.5                      py_0    defaults
prompt_toolkit            3.0.5                         0    defaults
psutil                    5.7.0            py38h7b6447c_0    defaults
ptyprocess                0.6.0                    py38_0    defaults
py                        1.9.0                      py_0    defaults
py-lief                   0.10.1           py38h403a769_0    defaults
pycodestyle               2.6.0                      py_0    defaults
pycosat                   0.6.3            py38h7b6447c_1    defaults
pycparser                 2.20                       py_2    defaults
pycurl                    7.43.0.5         py38h1ba5d50_0    defaults
pydocstyle                5.0.2                      py_0    defaults
pyflakes                  2.2.0                      py_0    defaults
pygments                  2.6.1                      py_0    defaults
pylint                    2.5.3                    py38_0    defaults
pyodbc                    4.0.30           py38he6710b0_0    defaults
pyopenssl                 19.1.0                     py_1    defaults
pyparsing                 2.4.7                      py_0    defaults
pyqt                      5.9.2            py38h05f1152_4    defaults
pyrsistent                0.16.0           py38h7b6447c_0    defaults
pysocks                   1.7.1                    py38_0    defaults
pytables                  3.6.1            py38h9fd0a39_0    defaults
pytest                    5.4.3                    py38_0    defaults
python                    3.8.3                hcff3b4d_2    defaults
python-dateutil           2.8.1                      py_0    defaults
python-jsonrpc-server     0.3.4                      py_1    defaults
python-language-server    0.34.1                   py38_0    defaults
python-libarchive-c       2.9                        py_0    defaults
pytz                      2020.1                     py_0    defaults
pywavelets                1.1.1            py38h7b6447c_0    defaults
pyxdg                     0.26                       py_0    defaults
pyyaml                    5.3.1            py38h7b6447c_1    defaults
pyzmq                     19.0.1           py38he6710b0_1    defaults
qdarkstyle                2.8.1                      py_0    defaults
qt                        5.9.7                h5867ecd_1    defaults
qtawesome                 0.7.2                      py_0    defaults
qtconsole                 4.7.5                      py_0    defaults
qtpy                      1.9.0                      py_0    defaults
readline                  8.0                  h7b6447c_0    defaults
regex                     2020.6.8         py38h7b6447c_0    defaults
requests                  2.24.0                     py_0    defaults
ripgrep                   11.0.2               he32d670_0    defaults
rope                      0.17.0                     py_0    defaults
rtree                     0.9.4                    py38_1    defaults
ruamel_yaml               0.15.87          py38h7b6447c_1    defaults
scikit-image              0.16.2           py38h0573a6f_0    defaults
scikit-learn              0.23.1           py38h423224d_0    defaults
scipy                     1.5.0            py38h0b6359f_0    defaults
seaborn                   0.10.1                     py_0    defaults
secretstorage             3.1.2                    py38_0    defaults
send2trash                1.5.0                    py38_0    defaults
setuptools                49.2.0                   py38_0    defaults
simplegeneric             0.8.1                    py38_2    defaults
singledispatch            3.4.0.3                  py38_0    defaults
sip                       4.19.13          py38he6710b0_0    defaults
six                       1.15.0                     py_0    defaults
snappy                    1.1.8                he6710b0_0    defaults
snowballstemmer           2.0.0                      py_0    defaults
sortedcollections         1.2.1                      py_0    defaults
sortedcontainers          2.2.2                      py_0    defaults
soupsieve                 2.0.1                      py_0    defaults
sphinx                    3.1.2                      py_0    defaults
sphinxcontrib             1.0                      py38_1    defaults
sphinxcontrib-applehelp   1.0.2                      py_0    defaults
sphinxcontrib-devhelp     1.0.2                      py_0    defaults
sphinxcontrib-htmlhelp    1.0.3                      py_0    defaults
sphinxcontrib-jsmath      1.0.1                      py_0    defaults
sphinxcontrib-qthelp      1.0.3                      py_0    defaults
sphinxcontrib-serializinghtml 1.1.4                      py_0    defaults
sphinxcontrib-websupport  1.2.3                      py_0    defaults
spyder                    4.1.4                    py38_0    defaults
spyder-kernels            1.9.2                    py38_0    defaults
sqlalchemy                1.3.18           py38h7b6447c_0    defaults
sqlite                    3.32.3               h62c20be_0    defaults
statsmodels               0.11.1           py38h7b6447c_0    defaults
sympy                     1.6.1                    py38_0    defaults
tbb                       2020.0               hfd86e86_0    defaults
tblib                     1.6.0                      py_0    defaults
terminado                 0.8.3                    py38_0    defaults
testpath                  0.4.4                      py_0    defaults
threadpoolctl             2.1.0              pyh5ca1d4c_0    defaults
tk                        8.6.10               hbc83047_0    defaults
toml                      0.10.1                     py_0    defaults
toolz                     0.10.0                     py_0    defaults
tornado                   6.0.4            py38h7b6447c_1    defaults
tqdm                      4.47.0                     py_0    defaults
traitlets                 4.3.3                    py38_0    defaults
typing_extensions         3.7.4.2                    py_0    defaults
ujson                     1.35             py38h7b6447c_0    defaults
unicodecsv                0.14.1                   py38_0    defaults
unixodbc                  2.3.7                h14c3975_0    defaults
urllib3                   1.25.9                     py_0    defaults
watchdog                  0.10.3                   py38_0    defaults
wcwidth                   0.2.5                      py_0    defaults
webencodings              0.5.1                    py38_1    defaults
werkzeug                  1.0.1                      py_0    defaults
wheel                     0.34.2                   py38_0    defaults
widgetsnbextension        3.5.1                    py38_0    defaults
wrapt                     1.11.2           py38h7b6447c_0    defaults
wurlitzer                 2.0.1                    py38_0    defaults
xlrd                      1.2.0                      py_0    defaults
xlsxwriter                1.2.9                      py_0    defaults
xlwt                      1.3.0                    py38_0    defaults
xmltodict                 0.12.0                     py_0    defaults
xz                        5.2.5                h7b6447c_0    defaults
yaml                      0.2.5                h7b6447c_0    defaults
yapf                      0.30.0                     py_0    defaults
zeromq                    4.3.2                he6710b0_2    defaults
zict                      2.0.0                      py_0    defaults
zipp                      3.1.0                      py_0    defaults
zlib                      1.2.11               h7b6447c_3    defaults
zope                      1.0                      py38_1    defaults
zope.event                4.4                      py38_0    defaults
zope.interface            4.7.1            py38h7b6447c_0    defaults
zstd                      1.4.5                h0b5b093_0    defaults

@RobJacobson
Copy link

RobJacobson commented Nov 3, 2020

I am encountering exactly the same issue when starting Anaconda Navigator:

WARNING linux_scaling.get_scaling_factor_using_dbus:27 An exception occurred during fetching list of system display settings.

When this happens, (a) I can't maximize or resize the Anaconda Navigator window, and (b) the content within the Anaconda Navigator window is twice as large as it should be (large fonts, large graphics). This is shown in the attached screenshot.

This occurs after installing Anaconda3-2020.07-Linux-x86_64.sh on Linux Mint 20. My laptop has a 4K (Hi-DPI) display. In the Display control panel, I have "User Interface Scale" set to "automatic (2x)."

Details below. Thanks!

AnacondaNavigator


     active environment : base
    active env location : /home/rob/anaconda3
            shell level : 1
       user config file : /home/rob/.condarc
 populated config files : /home/rob/.condarc
          conda version : 4.9.1
    conda-build version : 3.18.11
         python version : 3.8.3.final.0
       virtual packages : __glibc=2.31=0
                          __unix=0=0
                          __archspec=1=x86_64
       base environment : /home/rob/anaconda3  (writable)
           channel URLs : https://repo.anaconda.com/pkgs/main/linux-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/linux-64
                          https://repo.anaconda.com/pkgs/r/noarch
          package cache : /home/rob/anaconda3/pkgs
                          /home/rob/.conda/pkgs
       envs directories : /home/rob/anaconda3/envs
                          /home/rob/.conda/envs
               platform : linux-64
             user-agent : conda/4.9.1 requests/2.24.0 CPython/3.8.3 Linux/5.4.0-52-generic linuxmint/20 glibc/2.31
                UID:GID : 1000:1000
             netrc file : None
           offline mode : False

@RobJacobson
Copy link

RobJacobson commented Nov 4, 2020

An update: In the screenshot above, Navigator seems to be rendering itself at 4x zoom. This would be consistent with "2x automatic" zoom in the system settings, and an additional 2x zoom within Navigator itself.

I tried disabling the "enable high-DPI scaling" setting in Navigator's Preferences menu. The result is that Navigator renders itself without any scaling -- i.e., at 1x scale. In the screenshot below, the text is so small that it's almost illegible on a high-DPI monitor. It's the opposite problem as before! 😀

Ideally, Navigator shouldn't need its own setting to "enable high-DPI scaling." Instead, it would just recognize the "2x automatic" scaling in the system settings and render itself appropriately (like most Linux apps).

Anaconda 2

@Lotus815
Copy link

Lotus815 commented Dec 5, 2020

I confirm this problem.

  • Anaconda3-2020.11-Linux-x86_64.sh
  • Kubuntu 20.04
  • 27" UHD display, scaling 100%, font dpi set to 163 dpi (results in correct "scaling")

@kevinjlope
Copy link

kevinjlope commented Jan 2, 2021

Confirmo este problema

  • Anaconda3-2020.11-Linux-x86_64.sh
  • Linux Lite 5.4

@LeGuenYannick
Copy link

LeGuenYannick commented Jan 4, 2021

Same problem with Linux Mint,
Change in ~/.anaconda/navigator/anaconda-navigator.ini :
<enable_high_dpi_scaling = True> to <enable_high_dpi_scaling = False>
and now it's ok.

@Lotus815
Copy link

Lotus815 commented Jan 4, 2021

Same problem with Linux Mint,
Change in ~/.anaconda/navigator/anaconda-navigator.ini :
<enable_high_dpi_scaling = True> to <enable_high_dpi_scaling = False>
and now it's ok.

Doesn't work for me. (Kubuntu 20.04 #12133 (comment))

@kevinjlope
Copy link

Same problem with Linux Mint,
Change in ~/.anaconda/navigator/anaconda-navigator.ini :
<enable_high_dpi_scaling = True> to <enable_high_dpi_scaling = False>
and now it's ok.

Thanks! works in Linux Lite 5.4

@m-bellv
Copy link

m-bellv commented Jan 5, 2021

I'm having a similar error but get the code WARNING linux_scaling.get_primary_monitor_name:50 An exception occurred during fetching list of active monitors. Setting <enable_high_dpi_scaling = False> did not resolve this. Using Anaconda3-2020.11. linux-64

@mc510
Copy link

mc510 commented Jan 9, 2021

Debian Buster, same error message

@WyzrdX
Copy link

WyzrdX commented Jan 13, 2021

WARNING linux_scaling.get_scaling_factor_using_dbus:27 An exception occurred during fetching list of system display settings.

Same issue Manjaro KDE with 4k or 1080P monitors but I can Maximize and Minimize so no noticeable issues

<enable_high_dpi_scaling = False> does not work

@CodeDecodeDev
Copy link

I am having same issue on Kubuntu 20.04, for me it does not even open.

@Rhodnius
Copy link

Reporting here the same problem in Linux Mint 20.1

@Rhodnius
Copy link

I waited to open the navigator and it took 13 minutes to open.

When it happened I also saw these errors:

WARNING linux_scaling.get_scaling_factor_using_dbus:27
An exception occurred during fetching list of system display settings.

<urlopen error [Errno -2] Name or service not known>
2021-01-22 19:00:30,247 - ERROR client_api._get_api_info:665
HTTPSConnectionPool(host='api.anaconda.org', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fc400057df0>: Failed to establish a new connection: [Errno -2] Name or service not known'))

2021-01-22 19:00:30,251 - ERROR download_api._download:231
HTTPSConnectionPool(host='www.anaconda.com', port=443): Max retries exceeded with url: /api/videos (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fc402715940>: Failed to establish a new connection: [Errno -2] Name or service not known'))

2021-01-22 19:00:30,251 - ERROR download_api._download:231
HTTPSConnectionPool(host='www.anaconda.com', port=443): Max retries exceeded with url: /api/webinars (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fc40270b640>: Failed to establish a new connection: [Errno -2] Name or service not known'))

2021-01-22 19:00:30,251 - ERROR download_api._download:231
HTTPSConnectionPool(host='www.anaconda.com', port=443): Max retries exceeded with url: /api/events (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fc400116460>: Failed to establish a new connection: [Errno -2] Name or service not known'))

@ozwiz
Copy link

ozwiz commented Jan 25, 2021

I had the same warning in Linux Mint 20:
"WARNING linux_scaling.get_scaling_factor_using_dbus:27
An exception occurred during fetching list of system display settings"
But the navigator window opened immediately and I can scale it anyway I want.
But the warning appears every time I start the navigator

@melissarib
Copy link

I'm having the same problem with anaconda on Linux Mint 20.
Anaconda3-2020.11 64 bits.

WARNING linux_scaling.get_scaling_factor_using_dbus:27
An exception occurred during fetching list of system display settings.

Also, the navigator has stopped working too. The logo no longer appears on the startup screen and the program does not load.

@NikitaNikitchenko
Copy link

I'm having the same problem with anaconda on Linux Mint 20.
Anaconda3-2020.11 64 bits.

WARNING linux_scaling.get_scaling_factor_using_dbus:27 An exception occurred during fetching list of system display settings.

Also, the navigator has stopped working too. The logo no longer appears on the startup screen and the program does not load.

The same issue on Linux Mint 20

@ramo0n
Copy link

ramo0n commented Mar 8, 2021

What about this bug?

WARNING linux_scaling.get_scaling_factor_using_dbus:27
An exception occurred during fetching list of system display settings.

This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

Navigator not started.
KDE neon 5.21

.log: ../anaconda3/lib/python3.8/site-packages/anaconda_navigator/utils/linux_scaling.py", "message": "An exception occurred during fetching list of system display settings.

@aaxbas
Copy link

aaxbas commented Mar 11, 2021

Same problem, Ubuntu 18.04 64bit using i3wm. This #12133 (comment) has fixed it for me.

WARNING linux_scaling.get_scaling_factor_using_dbus:27
An exception occurred during fetching list of system display settings.

@Arsfano
Copy link

Arsfano commented Mar 14, 2021

Same problem in Ubuntu 16.04(installation :Anaconda3-2020.11-Linux-x86_64.sh)

"WARNING linux_scaling.get_scaling_factor_using_dbus:27
An exception occurred during fetching list of system display settings."

@joravp
Copy link

joravp commented Mar 17, 2021

Similar (non-solved) problem with scaling: no scaling on high-DPI screen at all (everything is tiny),

"~$ anaconda-navigator" from terminal:
"WARNING linux_scaling.get_scaling_factor_using_dbus:27
An exception occurred during fetching list of system display settings."

"~$ QT_SCALE_FACTOR=2 anaconda-navigator": same issue
Swtich between "enable_high_dpi_scaling = True" or "enable_high_dpi_scaling = False" in ~/.anaconda/navigator/anaconda-navigator.ini ( #12133 (comment)) has no effect, as well as choice in Preferences

Linux Mint 19.3 (Mate)
Anaconda3-2020.11-Linux-x86_64.sh

@kodaz1
Copy link

kodaz1 commented Apr 9, 2021

Hi
i m having the same issue on Fedora 33 witn anaconda 3 - 2020.11

WARNING linux_scaling.get_scaling_factor_using_dbus:39
Can't detect system scaling factor settings for primary monitor

regards

This solution works for me :
https://askubuntu.com/questions/1252036/zoom-and-anaconda-navigator-have-weird-scaling

Go to preferences of anaconda-navigator and uncheck "Enable High DPI Scaling"
If the preferences window was too big to save/apply the changes using the GUI.

Then, follow the following steps:

open preference file sudo nano ~/.anaconda/navigator/anaconda-navigator.ini
update enable_high_dpi_scaling = False
restart anaconda-navigator

Many thanks

@mit2021
Copy link

mit2021 commented Apr 12, 2021

confirm the same problem:

Anaconda3-2020.11-Linux-x86_64.sh
centos8 (kernel version : 4.18.0-240.22.1.el8_3.x86_64)

2021-04-12 02:57:38,070 - WARNING linux_scaling.get_scaling_factor_using_dbus:27
An exception occurred during fetching list of system display settings.

QStandardPaths: wrong ownership on runtime directory /run/user/1000, 1000 instead of 0
qt.qpa.screen: QXcbConnection: Could not connect to display 
Could not connect to any X display.

@arima0k
Copy link

arima0k commented Apr 28, 2021

Same:
conda version : 4.10.1
conda-build version : 3.20.5
python version : 3.8.5.final.0

@viratpanot
Copy link

I am encountering exactly the same issue when starting Anaconda Navigator:

WARNING linux_scaling.get_scaling_factor_using_dbus:27 An exception occurred during fetching list of system display settings.

This is shown in the attached screenshot. when this happens, there is some delay in resizing of window.

Screenshot from 2021-05-11 10-57-14

@arousta
Copy link

arousta commented May 14, 2021

For me the fonts are so small. None of the above worked.
Installer: Anaconda3-2020.11-Linux-x86_64.sh
OS: Linux Mint 19.3

@sari-saba-sadiya
Copy link

Same issue, I get "An exception occurred during fetching list of active monitors" and anaconda navigator doesn't open.
anacondaException

@Roger-Heathcote
Copy link

Ubuntu 20.04 Desktop x64
Anaconda3-2021.05-Linux-x86_64.sh

1 x 4K + 2 x full HD screens.

Navigator starts and displays at a good size but UI is prone to freezing up. I get this message in the console at startup, not sure if the freezing is related or not.

@LuciusSomberlas
Copy link

What about this bug?

WARNING linux_scaling.get_scaling_factor_using_dbus:27
An exception occurred during fetching list of system display settings.

This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "".

Navigator not started.
KDE neon 5.21

.log: ../anaconda3/lib/python3.8/site-packages/anaconda_navigator/utils/linux_scaling.py", "message": "An exception occurred during fetching list of system display settings.

also had the same issue, i did the below update and problem was solved
conda update anaconda-navigator

@johnny-brav0
Copy link

johnny-brav0 commented Jul 2, 2021

Hi everyone, I have the same issue with Mint 20.1, but I have a temporary solution for this. For those who aren't able to move or resize the window, do this:

Right Click on Title Bar and select move
Now with out clicking anywhere, just drag the cursor and the window should start to move
Plus you can now resize the window by dragging from the borders

I hope it helps :)

@Dentier
Copy link

Dentier commented Aug 29, 2021

Same problem with Linux Mint,
Change in ~/.anaconda/navigator/anaconda-navigator.ini :
<enable_high_dpi_scaling = True> to <enable_high_dpi_scaling = False>
and now it's ok.

works fine in linux mint 20.2 thanks

@sjah8
Copy link

sjah8 commented Sep 16, 2021

Same problem with Linux Mint 20.2 when running in console. What I've done since day one is running anaconda-navigator from /home/my_home_folder/anaconda3/bin/ (double click on file) and it works fine.

@giuliotal
Copy link

Same issue, I get "An exception occurred during fetching list of active monitors" and anaconda navigator doesn't open.
anacondaException

Same here, conda 4.10.3. Did you find a solution?

@venkatace
Copy link

While starting Anaconda Navigator, use this command with reduced dpi scaling
QT_SCALE_FACTOR=1 anaconda-navigator

@mtesseracttech
Copy link

Same problem with Linux Mint, Change in ~/.anaconda/navigator/anaconda-navigator.ini : <enable_high_dpi_scaling = True> to <enable_high_dpi_scaling = False> and now it's ok.

This fixed it for me as well, though that said, it still gives:

WARNING linux_scaling.get_scaling_factor_using_dbus:31
An exception occurred during fetching list of system display settings.

But after that the application does start as it should.

@fsc137
Copy link

fsc137 commented Mar 3, 2022

On Ubuntu 20, getting these messages when starting up with up-to-date anaconda install, but after the messages navigator starts and works just fine. I've got a 4K monitor (only one, but it is sometimes treated as two side-by-side monitors).

k5:~$ anaconda-navigator
2022-03-03 11:04:55,983 - WARNING linux_scaling.get_primary_monitor_name:61
Can't detect primary monitor.

2022-03-03 11:05:12,910 - ERROR ads._log_errors:22
Tried to load advertisement image from https://optimise2.assets-servd.host/voracious-blesbok/production/api/navigator/Navigator-Commercialv6.png?w=315&auto=compress%2Cformat&fit=crop&dm=1643727003&s=77c3c1e618c897e6f1b9081f29103c53. Data is not fetched with status 522

@stevevanhoyweghen
Copy link

stevevanhoyweghen commented Apr 12, 2022

Similar issue on Linux Mint.
Kernel: 5.13.0-39-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.2.7
wm: muffin dm: LightDM Distro: Linux Mint 20.3 Una base: Ubuntu 20.04 focal

Error message
2022-04-12 20:24:12,635 - WARNING linux_scaling.get_scaling_factor_using_dbus:31
An exception occurred during fetching list of system display settings.

2022-04-12 20:24:29,498 - ERROR ads._log_errors:23
Tried to load advertisement image from https://optimise2.assets-servd.host/voracious-blesbok/production/api/navigator/Navigator-Commercialv6.png?w=315&auto=compress%2Cformat&fit=crop&dm=1643727003&s=77c3c1e618c897e6f1b9081f29103c53. Data is not fetched with status 522

Works as expected with ~/.anaconda/navigator/anaconda-navigator.ini : <enable_high_dpi_scaling = False

@KaynaL-MT
Copy link

KaynaL-MT commented Jul 6, 2022

Having similar issues. My computer is a MacBook Pro and connecting via SSH into Linux Server.
<<Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-121-generic x86_64)>>

conda info -- see image below

Trying to launch the GUI from the server gives me this error:
anaconda-navigator

2022-07-06 11:51:12,962 - WARNING linux_scaling.get_scaling_factor_using_dbus:32
An exception occurred during fetching list of system display settings.

qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.
<<<
Screen Shot 2022-07-06 at 11 50 12 AM

@mbbagherieh
Copy link

mbbagherieh commented Jul 25, 2022

Almost a similar problem in Opensuse Leap.
Anaconda-navigator is updated to V.2.2.0

(base) mb@localhost:~> anaconda-navigator 2022-07-25 05:19:36,324 - WARNING linux_scaling.get_scaling_factor_using_dbus:32 An exception occurred during fetching list of system display settings. No protocol specified qt.qpa.screen: QXcbConnection: Could not connect to display :0.0 Could not connect to any X display.
As suggested in another post, when I first type xhost +, this is the output:
No protocol specified access control disabled, clients can connect from any host
Now if I run anaconda-navigator, I will get
2022-07-25 09:55:29,997 - WARNING linux_scaling.get_scaling_factor_using_dbus:32 An exception occurred during fetching list of system display settings.
and the program tries to start but freezes at startup. Please see the attached fig.
Any idea how to solve this?
Regards
Screenshot_2022-07-25_10-05-03
Screenshot_2022-07-25_10-23-41

@feng823
Copy link

feng823 commented Jul 27, 2022

Same problem with Linux Mint, Change in ~/.anaconda/navigator/anaconda-navigator.ini : <enable_high_dpi_scaling = True> to <enable_high_dpi_scaling = False> and now it's ok.

It works for me. Thank you.

@MarceluitNL
Copy link

I'm on Anaconcda 2.3.2, enable_high_dpi_scaling = True works for me.

@aCandidoP
Copy link

export DISPLAY=:0.0

@null-12
Copy link

null-12 commented Oct 6, 2023

export DISPLAY=:0.0

It's work for me,thanks

@Maoniandong
Copy link

Almost a similar problem in Opensuse Leap. Anaconda-navigator is updated to V.2.2.0

(base) mb@localhost:~> anaconda-navigator 2022-07-25 05:19:36,324 - WARNING linux_scaling.get_scaling_factor_using_dbus:32 An exception occurred during fetching list of system display settings. No protocol specified qt.qpa.screen: QXcbConnection: Could not connect to display :0.0 Could not connect to any X display. As suggested in another post, when I first type xhost +, this is the output: No protocol specified access control disabled, clients can connect from any host Now if I run anaconda-navigator, I will get 2022-07-25 09:55:29,997 - WARNING linux_scaling.get_scaling_factor_using_dbus:32 An exception occurred during fetching list of system display settings. and the program tries to start but freezes at startup. Please see the attached fig. Any idea how to solve this? Regards Screenshot_2022-07-25_10-05-03 Screenshot_2022-07-25_10-23-41

excuse, have you solved this problem ? I just meeting the same truble, and change the 'enable_high_dpi_scaling = False' not works for me, thanks

@null-12
Copy link

null-12 commented Dec 11, 2023 via email

@Maoniandong
Copy link

Having similar issues. My computer is a MacBook Pro and connecting via SSH into Linux Server. <<Welcome to Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-121-generic x86_64)>>

conda info -- see image below

Trying to launch the GUI from the server gives me this error: anaconda-navigator

2022-07-06 11:51:12,962 - WARNING linux_scaling.get_scaling_factor_using_dbus:32 An exception occurred during fetching list of system display settings.

qt.qpa.screen: QXcbConnection: Could not connect to display Could not connect to any X display. <<< Screen Shot 2022-07-06 at 11 50 12 AM
excuse, have you solved this problem ? I just meeting the same truble, and change the 'enable_high_dpi_scaling = False' not works for me, thanks
20231211094226

@null-12
Copy link

null-12 commented Jan 9, 2024 via email

@i-oc
Copy link

i-oc commented Jan 9, 2024

I have a similar issue in wsl-ubuntu2204 where when I open anaconda-navigator(version 2.5.1) it prompts "-WARNING linux_scaling.get_scaling_factor_using_dbus:32
An exception occurred during fetching list of system display settings.”
Then I use anaconda-navigator --debug display
Screenshot 2024-01-09 233702
and the not open.
What should I do?

@LynnSunXMU
Copy link

For someone experience similar problem particularly there is something wrong with the window. Try setting your resolution from 2K to 1080P. It worked for me to correct the window yet the warning still pops up.

@null-12
Copy link

null-12 commented Feb 15, 2024 via email

@adrian-drifter
Copy link

I'm having the exact same issue, with the added that it never opens, it keeps loading forever.

I eventually found a quick workaround.

so, remember this error message: File "/home/your_user/anaconda3/lib/python3.11/site-packages/anaconda_navigator/widgets/lists/apps.py", line 201, in init
icon_height //= self.pixmap.width()
ZeroDivisionError: integer division or modulo by zero

I quit literally went to the file, to that line and added an "+10" to the divisor, saved it. And reopen the navigator, it works perfectly fine now.

Notice the + 10 was arbitrary, I think it can be any number, just so the divisor isn't zero.

@null-12
Copy link

null-12 commented Mar 4, 2024 via email

@lusidespyder
Copy link

lusidespyder commented Mar 18, 2024

I'm having the same error message when I open anaconda from my terminal but not the window's size problem.
When I open jupyter, the kernel just dies and I can't do anything
None of the solutions above worked

@oldmanjk
Copy link

Incompetence

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests