Yade run with "ImportError"

Asked by wangxiaoliang

Recently, I installed ubuntu 12.04, and installed Yade-trunk successfully
All the packages are installed, and make and make install both run successfully, though with some warning.
When I run Yade, there is error as shown below

./yade-2014-04-17.git-a2b6e69
Welcome to Yade 2014-04-17.git-a2b6e69
Traceback (most recent call last):
  File "./yade-2014-04-17.git-a2b6e69", line 125, in <module>
    import yade
  File "/home/mj/Yade/Yade-trunk/install/lib/i386-linux-gnu/yade-2014-04-17.git-a2b6e69/py/yade/__init__.py", line 65, in <module>
    import boot
ImportError: /home/mj/Yade/Yade-trunk/install/lib/i386-linux-gnu/yade-2014-04-17.git-a2b6e69/py/yade/qt/_GLViewer.so: undefined symbol: _ZN9QGLViewer28setPlayPathKeyboardModifiersE6QFlagsIN2Qt16KeyboardModifierEE

Has anybody met the same problem?

In addition, I installed Yade-1.07 and Yade-1.05 successfully, but when running, same error turns out

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Anton Gladky
Solved:
Last query:
Last reply:
Revision history for this message
wangxiaoliang (wangxiaoliang) said :
#1

Besides, I installed Yade 0.90.1, same errors happened when running yade
I think it should be duo to ubuntu or packages itself?

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

Did you install libqglviewer-qt4-dev like described here [1]?

[1] https://www.yade-dem.org/doc/installation.html#prerequisites

Anton

2014-04-19 14:36 GMT+02:00 wangxiaoliang <
<email address hidden>>:

> Question #247246 on Yade changed:
> https://answers.launchpad.net/yade/+question/247246
>
> wangxiaoliang posted a new comment:
> Besides, I installed Yade 0.90.1, same errors happened when running yade
> I think it should be duo to ubuntu or packages itself?
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
wangxiaoliang (wangxiaoliang) said :
#3

It works now. libqglviewer-qt4-dev package should be installed instead of libqglviewer-dev in Ubuntu 12.04 just as shown in the "warning" in installation page of Yade doc

Revision history for this message
wangxiaoliang (wangxiaoliang) said :
#4

Thanks Anton Gladky, that solved my question.