← Back to team overview

yade-dev team mailing list archive

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

 

Hi Anton,

thanks for having a look at this. Nevertheless, this should not be
restricted to Kubuntu. In fact, I can reproduce the exactly same
behaviour in Ubuntu and 3 more users have confirmed the problem on
Ubuntu. Ubuntu and Kubuntu use the same packages/library versions so
this makes also sense.

The IPython version from packages is 2.4.1 and as Vaclav pointed out it
does not support QT5. Installing IPython 5.0.0 with pip however does not
solve the problem. The strange terminal behaviour is gone but the GUI is
not working properly (it only works in "idle" mode, i.e., after pressing
Ctrl+D). The warnings when launching yade with IPython 5.0.0 are as
follows:

Welcome to Yade 1.20.0 
TCP python prompt on localhost:9000, auth cookie `cuasek'
XMLRPC info provider on http://localhost:21000
QSettings::value: Empty key passed
QSettings::value: Empty key passed
/home/yade/.local/lib/python2.7/site-packages/IPython/config.py:13: ShimWarning: The `IPython.config` package has been deprecated. You should import from traitlets.config instead.
  "You should import from traitlets.config instead.", ShimWarning)
/home/yade/.local/lib/python2.7/site-packages/IPython/core/interactiveshell.py:440: UserWarning: As of IPython 5.0 `PromptManager` config will have no effect and has been replaced by TerminalInteractiveShell.prompts_class
  warn('As of IPython 5.0 `PromptManager` config will have no effect'
[[ ^L clears screen, ^U kills line. F12 controller, F11 3d view (use h-key for showing help), F10 both, F9 generator, F8 plot. ]]

In [1]:


BTW, I tried to compile with QT4 by installing corresponding packages and USE_QT5=0. Configuration and compilation was smooth. However, when launching yade it crashes:

Welcome to Yade 2016-07-09.git-9003796 
TCP python prompt on localhost:9000, auth cookie `escsay'
XMLRPC info provider on http://localhost:21000
Traceback (most recent call last):
  File "./yade-2016-07-09.git-9003796", line 281, in <module>
    import yade.qt # this yade.qt is different from the one that comes with qt3
  File "/home/yade/YADE/source-code/install/lib/x86_64-linux-gnu/yade-2016-07-09.git-9003796/py/yade/qt/__init__.py", line 15, in <module>
    from yade.qt.Inspector import *
  File "/home/yade/YADE/source-code/install/lib/x86_64-linux-gnu/yade-2016-07-09.git-9003796/py/yade/qt/Inspector.py", line 3, in <module>
    from PyQt5.QtCore import *
RuntimeError: the PyQt5.QtCore and PyQt4.QtCore modules both wrap the QObject class
*** Error in `/usr/bin/python': free(): invalid pointer: 0x00007f38a12c67c0 ***

It looks like it's still accessing some qt5 libs.

Would appreciate if we could solve the issue either way (qt4 or qt5).

Cheers
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