← Back to team overview

yade-dev team mailing list archive

[Bug 1604266] Re: yade not working prpoperly on Ubuntu/Kubuntu 16.04

 

Hi all,

here a follow up on this from my side and a "work-around". I know what's
causing the problem and it can be avoided

First of all, this is definitely not a Kubuntu specific problem. I could
not identify a specific pattern but I tried various distros on various
computers and the problem seems to be related to certain computers
(maybe graphic card/driver?).

Anyway, I could figure out what is causing the problem. It is related to
QT and not loading yade.qt.Controller() at start-up is solving the
problem. In order to deactivate this you have to manually modify your
yade executable script after install (e.g., /home/user/path-to-your-
local-yade-install/install/bin/yade... or /usr/bin/yade or
/usr/bin/yadedaily). Look for this line:

if (gui<>'none'): yade.qt.Controller()

It should be around line 174. Comment this line and safe the script.
Launch yade and it should work. In the ipython terminal you can now
press F12 to load the Controller and it will be fine.

Note that this means that you should not load the qt.Controller() in
your scripts either but rather do it once you are in the ipython
terminal.

I even thought about committing this fix, it just involves
commenting/deleting the same line in core/main/main.py.in but wasn't
sure if is in all our interests as some are not having this problem and
it would mean that the qt.Controller() is not loaded by default.

Let me know what you think or if anyone has deeper understanding on
what's going on. At least we know what is causing the problem and that
there is a workaround.

HTH
Klaus

-- 
You received this bug notification because you are a member of Yade
developers, which is subscribed to Yade.
https://bugs.launchpad.net/bugs/1604266

Title:
  yade not working prpoperly on Ubuntu/Kubuntu 16.04

Status in Yade:
  New

Bug description:
  Any version of yade (package, yadedaily, compiled) is giving problems
  on Ubuntu/Kubuntu 16.04. The ipython terminal shows a strange
  behaviour when starting yade with a script. In addition, yade might
  crash when doing some simple operations in the ipython command line.
  Also, using the Inspector does not work for the packaged version (it
  works for yadedaily and compiled). See discussions [1] and [2].
  Problem might be related to QT5 and IPyhton.

  [1] https://answers.launchpad.net/yade/+question/295951
  [2] https://answers.launchpad.net/yade/+question/295827

To manage notifications about this bug go to:
https://bugs.launchpad.net/yade/+bug/1604266/+subscriptions


References