Ubuntu 12.10

Asked by Henry

Dear all,
    I'm trying to install Yade 0.90.3 on Ubunt 12.10.
    Everything is ok. However I can't run it successfully.
    Error messages are:

  Welcome to Yade 0.90.3
Segmentation fault (core dumped)

What's wrong? Thanks a lot!
Henry

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,

please, try to install Yade from packages and tell us, whether it works:

https://answers.launchpad.net/yade/+faq/1727
https://answers.launchpad.net/yade/+faq/1789

Cheers,

Anton

Revision history for this message
Kneib François (francois-kneib) said :
#2

Hi Anton,

I've got the same error, only on 12.10. Here is the complete error message :

franz@XPS15z:~/yade/bins/bin$ ./yade
Welcome to Yade 2013-03-04.git-d574863
Traceback (most recent call last):
  File "./yade", line 101, in <module>
    import yade
  File "/home/franz/yade/bins/lib/yade/py/yade/__init__.py", line 67, in <module>
    import system
  File "/home/franz/yade/bins/lib/yade/py/yade/system.py", line 10, in <module>
    from yade import runtime
  File "/home/franz/yade/bins/lib/yade/py/yade/runtime.py", line 8, in <module>
    import IPython
  File "/usr/lib/python2.7/dist-packages/IPython/__init__.py", line 46, in <module>
    from .frontend.terminal.embed import embed
  File "/usr/lib/python2.7/dist-packages/IPython/frontend/terminal/embed.py", line 38, in <module>
    from IPython.core.magic import Magics, magics_class, line_magic
  File "/usr/lib/python2.7/dist-packages/IPython/core/magic.py", line 26, in <module>
    from IPython.core import oinspect
  File "/usr/lib/python2.7/dist-packages/IPython/core/oinspect.py", line 33, in <module>
    from IPython.core import page
  File "/usr/lib/python2.7/dist-packages/IPython/core/page.py", line 34, in <module>
    from io import UnsupportedOperation
  File "/usr/lib/python2.7/io.py", line 51, in <module>
    import _io
TypeError: type '_io._IOBase' participates in gc and is a base type but has inappropriate tp_free slot
Erreur de segmentation (core dumped)

I tried the packaged version and this one works well.

Cheers,

François

Revision history for this message
Kneib François (francois-kneib) said :
#3

Ok I just found a workaround to compile and launch Yade (trunk) on 12.10.
-> download and compile Yade normally via git/cmake
-> edit the yade "binary" file (the one you launch) and edit the first importation line (L 5) to add "_io" :
from "import sys,os,os.path,time" to "import sys,os,os.path,time,_io"
Then it should works.

NB : Anton, if you agree with this workaround we could intregrate it directly into the sources.

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

Ok, please, commit.

Anton

Can you help with this problem?

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

To post a message you must log in.