Yade Installation Process

Asked by Felipe

Hello guys,

I have found some issues after i installed the new Ubuntu version on my computer.

I'm using the UBUNTU 16.10 and also the packages are Yakkety.

So, When i run the program, i am finding this error below:

"Welcome to Yade 2017.01a-1-g8b81444~yakkety
TCP python prompt on localhost:9000, auth cookie `kydseu'
XMLRPC info provider on http://localhost:21000
Traceback (most recent call last):
  File "/usr/bin/yadedaily", line 294, in <module>
    import yade.qt
  File "/usr/lib/x86_64-linux-gnu/yadedaily/py/yade/qt/__init__.py", line 16, in <module>
    from PyQt5 import QtWebKit, QtWebKitWidgets
ImportError: cannot import name QtWebKit
"

Do someone know how to solve this problem? What is it going on?

Thanks for advance.

Best Regards

Felipe

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
Klaus Thoeni (klaus.thoeni) said :
#1

Hi,

the error indicates that qtwebkit is not installed on your machine. Try installing the package python-pyqt5.qtwebkit, it should solve the problem.

HTH
Klaus

Revision history for this message
Felipe (felipetthadeu) said :
#2

Hello Klaus,

I have tested your recommendation and looks like to solve it.

However, when i run the program, the yade didnt import files from import, like the command below:
O.bodies.append(ymport.stl(mesh1+'.stl',wire=True,material='caixasup'))

So, the Yade still was not working correctly. Do you have any idea whty it dont import the files? Sounds like regarding the YADE installation because when i was using the Ubuntu 14.10, i have not seen this error yet.

Thanks.

Best Regards,

Felipe

Revision history for this message
Robert Caulk (rcaulk) said :
#3

Can you copy the error message that you receive when it tries to import the file?

First, make sure mesh1.stl is in the same folder as your script. Then try adding quotes around mesh1?
O.bodies.append(ymport.stl('mesh1'+'.stl',wire=True,material='caixasup'))

Revision history for this message
Felipe (felipetthadeu) said :
#4

Hello Robert,

As you have asked me, i am sharing the error message below.

WARN /data/trunk/pkg/common/KinematicEngines.cpp:20 action: The list of ids is empty! Can't move any body.

Also, i have checked either the commands and folder as my script. Everything is the same location.

Due to this information, do you have any idea what is happening? May i have to install any more package?

thanks for advance.

Best regards,

Felipe

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

That's just mean that the list of the bodies which you want to move is empty. Please provide your script.

If you have such a line:
O.bodies.append(ymport.stl('mesh1'+'.stl',wire=True,material='caixasup'))

without assigned it to the variable, you will loose the imported ids.
You want to have something like this:

ids = O.bodies.append(ymport.stl('mesh1'+'.stl',wire=True,material='caixasup'))

ids will be a list of imported bodies, which you need to path to kinematic engine.

Regards

Revision history for this message
Felipe (felipetthadeu) said :
#6

Hello Anton,

As you have requested me, i am sharing the short script below.

#!/usr/bin/python
# -*- coding: utf-8 -*-

from yade.pack import *
from yade import pack,export,qt
from yade import plot
from yade import ymport

#Def of the material which will be used
O.materials.append(FrictMat(density=8803,young=2e7,poisson=1,frictionAngle=.3,label='caixasup'))#kg/m³; Pa(N/m²);
O.materials.append(FrictMat(density=12815,young=2e7,poisson=1,frictionAngle=.3,label='caixainf'))#kg/m³; Pa(N/m²);
O.materials.append(FrictMat(density=.200,young=2e3,poisson=0.3,frictionAngle=0.3,label='spheres'))#kg/m³; Pa(N/m²);

porosity = 0.55

mesh1 = 'caixa_superior_100mm_ascii'
mesh2 = 'caixa_inferior_100mm_ascii'
mesh3 = 'peso1'
rod1 = O.bodies.append(ymport.stl(mesh1+'.stl',wire=True,material='caixasup'))
rod2 = O.bodies.append(ymport.stl(mesh2+'.stl',wire=True,material='caixainf'))

upBox = box( center=(0,210,0), extents=(35,1,35) ,fixed=True,wire=False,material='peso')

p1=O.bodies.append([upBox])

If you need anything else, let me know to provide you.

Best Regards,

Felipe

Revision history for this message
Jan Stránský (honzik) said :
#7

Hi Felipe,
could you please put the .stl files somewhere to the internet and send us
the link so we can test the script completely?
Thanks
Jan

Revision history for this message
Felipe (felipetthadeu) said :
#8

Hello Jan,

I have created a folder on the Dropbox.

the link is https://www.dropbox.com/sh/5xfofzw7rs0w7dw/AAD_YwtOMRgYKhAVXcnp7tYya?dl=0

Really thanks for your attention.

Best Regards.

Felipe

Revision history for this message
Jan Stránský (honzik) said :
#9

Hi Felipe,
thanks for the source codes, I have tried them and had no problem. Do you
have any problem with them, or was is a different script?
cheers
Jan

Revision history for this message
Felipe (felipetthadeu) said :
#10

Hello Jan,

I am using the same script that have shared with you.

When i was using the Ubuntu 14.10 with YADE (package = xenial), i did not have any problem.

After needed to update the software (Ubuntu 14.10 to 16.10) wiht YADE (package = yakkety), i have been finding some problem to run the same script.

I am supposed to yade installation is the main problem in this case. Maybe i have to update some package to solve it but i really dont know.

thanks,

Felipe

Revision history for this message
Felipe (felipetthadeu) said :
#11

This is the error for the script shared:

ERROR /data/trunk/pkg/dem/STLImporter.cpp:23 import: Can't open file: caixa_inferior_100mm_ascii.stl

Best regards,

felipe

Revision history for this message
Robert Caulk (rcaulk) said :
#12

I ran your scripts on Xenial without issue.

I would try to reinstall yade if I were you.

Revision history for this message
Launchpad Janitor (janitor) said :
#13

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Felipe (felipetthadeu) said :
#14

Hello guys,

Regarding the last update, we have reinstalled either Ubuntu and Yade programs due to trying solving the problems.

However, we still have problems with import stl files. Also, we opened a new questions about this topic.

https://answers.launchpad.net/yade/+question/537735 (Luis barbosa).

Thanks for advance.

Cheeres,

Felipe

Revision history for this message
Jérôme Duriez (jduriez) said :
#15

Hello,

Please never do this again: changing the text of a significantly discussed question. Now, the current question and passed answers (such as Klaus's one #1), obviously do not match anymore, making this whole thread useless...

 In some ideal world, Launchpad Q&A would not only help one particular user facing one particular problem, but instead would also help other users facing the same problem and curious enough to browse archives before asking a new question....

Please help the YADE community having clear question archives, and the YADE community will try to provide you with clear answers. :-)

Revision history for this message
Felipe (felipetthadeu) said :
#16

Hello Jerome,

Really sorry for any inconvenient that was caused.

I still opened again the question to get sharing the link to another issue which was related it.

I learned this lesson and i will do my best to help Yade community.

Again, sorry for that.

Best Regards,

Felipe

Can you help with this problem?

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

To post a message you must log in.