Connecting to DISPLAY at Yade startup failed

Asked by Henry

Hi all,
    I have complied Yade on Ubuntu17.1 successfully. However, when I run the examples some errors happened.

@ubuntu:~/Opensources/Yade/examples/tetra$ yade twoTetras.py
Welcome to Yade 2018-01-25.git-719987b
Warning: no X rendering available (see https://bbs.archlinux.org/viewtopic.php?id=13189)
TCP python prompt on localhost:9001, auth cookie `cksuye'
XMLRPC info provider on http://localhost:21001
Running script twoTetras.py
Traceback (most recent call last):
  File "/usr/local/bin/yade", line 182, in runScript
    execfile(script,globals())
  File "twoTetras.py", line 14, in <module>
    from yade import qt,plot
  File "/usr/local/lib/x86_64-linux-gnu/yade-2018-01-25.git-719987b/py/yade/qt/__init__.py", line 9, in <module>
    raise ImportError(msg)
ImportError: Connecting to DISPLAY at Yade startup failed, unable to activate the qt5 interface.
[[ ^L clears screen, ^U kills line. F8 plot. ]]

Thank a lot!
Best regard,

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Robert Caulk (rcaulk) said :
#1

Hello Henry,

Firstly, why are you compiling from sources? Is there a specific reason for it? It is much easier to install from packages using sudo apt-get install yade or yadedaily [1]. If you have a good reason for installing from sources then consider installing on a LTS version of Ubuntu like 14.04, 16.04 (or 18.04 in a month or two). Finally, if you need it compiled from sources on 17.10, then you need to show us the output of cmake -DCMAKE_INSTALL_PREFIX=../yourinstallDir ../yourtrunkDir so we can see which libraries are found and which ones are not.

Additionally, you might consider looking on this forum to find people who have had the same problem as you. A brief search of "no x rendering available" yields [2][3]. Please try these solutions and let us know if they work or not.

Cheers,

Robert

[1]https://yade-dem.org/doc/installation.html#packages
[2]https://answers.launchpad.net/yade/+question/280831
[3]https://lists.launchpad.net/yade-dev/msg12450.html

Can you help with this problem?

Provide an answer of your own, or ask Henry for more information if necessary.

To post a message you must log in.