Latest Yade Installation Fron Source

Asked by Hadda

Hello,

I recently installed yade (2016-06-26) from source on ubuntu 16.04 (Xenial Xerus) AMD64.
cmake and make both finished without errors, but I have a problem with the graphical interface: it shows up but seems not to work properly.

For example:

- when I click on the blue links which are supposed to provide help in the browser I get this message error in the terminal
'module' object has no attribute 'QWebView'

- when I try to save from the graphical interface, I get this message error in the terminal
output stream error

I went back to check the cmake output, and found these messages which may be linked to such malfunctioning:

-- Found unsuitable Qt version "5.5.1" from /usr/bin/qmake

-- The imported target "vtkRenderingPythonTkWidgets" references the file
   "/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.2/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtk" references the file
   "/usr/bin/vtk"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-6.2/VTKTargets.cmake"
but not all the files it references.

The *.so file seems like no longer exixts in ubuntu 16.04

Have anyone experienced the same problem after the installation of yade on Xenial? do you think such malfunctioning will disappear if the system were to be -i386?

Any help you could provide for this request would be appreciated.

Nejib

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
Anton Gladky (gladky-anton) said :
#1

Hi,

first of all please try to install Yade from packages (sudo apt-get
install yade) and check, whether it works for you.

Cheers
Anton

Revision history for this message
Hadda (hadda) said :
#2

Hi Anton,

I just installed Yade from packages and had the same problems with the graphical interface I described earlier.

Nejib

________________________________
From: <email address hidden> <email address hidden> on behalf of Anton Gladky <email address hidden>
Sent: Thursday, June 30, 2016 1:27:40 PM
To: Nejib Hadda
Subject: Re: [Question #295827]: Latest Yade Installation Fron Source

Your question #295827 on Yade changed:
https://answers.launchpad.net/yade/+question/295827

    Status: Open => Answered

Anton Gladky proposed the following answer:
Hi,

first of all please try to install Yade from packages (sudo apt-get
install yade) and check, whether it works for you.

Cheers
Anton

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/yade/+question/295827/+confirm?answer_id=0

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/yade/+question/295827

You received this question notification because you asked the question.

Revision history for this message
Hadda (hadda) said :
#3

Hi,

I tried the latest git version (04/July/2006) and I got this error message when I launched yade:

Welcome to Yade 2016-07-04.git-3125bc6
TCP python prompt on localhost:9000, auth cookie `seyacd'
XMLRPC info provider on http://localhost:21000
Traceback (most recent call last):
  File "./yade-2016-07-04.git-3125bc6", line 289, in <module>
    import yade.qt
  File "/home/aurora/software/install/lib/x86_64-linux-gnu/yade-2016-07-04.git-3125bc6/py/yade/qt/__init__.py", line 16, in <module>
    from PyQt5 import QtWebKit, QtWebKitWidgets
ImportError: cannot import name QtWebKit

Nejib

Revision history for this message
Klaus Thoeni (klaus.thoeni) said :
#4

Hi,

look as well at my question here [1]. You need to install python-pyqt5.qtwebkit and it should work. I guess you might get the same behaviour with yade doing strange things when launching scripts. Let us know.

Cheers
Klaus

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

Revision history for this message
Hadda (hadda) said :
#5

Hi,

The installation of python-pyqt5.qtwebkit solved just one of the issues I reported: the GUI help is not showing.

I still cannot load/save from the GUI:

Load error message: Simulation file to load doesn't exist: (u'/home/aurora/Desktop/state_0.yade', u'Yade simulations (*.xml *.xml.bz2 *.xml.gz *.yade *.yade.gz *.yade.bz2)')

Save error message: output stream error

I can load/save from the terminal or using a *.py script.

Nejib

Revision history for this message
Anton Gladky (gladky-anton) said :
#6

Hi Nejib,

this commit [1] should fix the problem. Thanks for finding
this.

[1]
https://github.com/yade/trunk/commit/a105b9fcc060bf2a81d96d316d203dfe63cd1446

Cheers

Anton

Revision history for this message
Hadda (hadda) said :
#7

Hi Anton,

Thank you, the issues I mentioned are fixed in the last commit.

However, just to let you know, the strange terminal behaviour described by Klaus when a script is launched persists (strange Ipython command line header, exit/crash on running simple command lines ... )

Nejib

Can you help with this problem?

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

To post a message you must log in.