RuntimeError: unsupported version

Asked by procrastinator on 2019-04-15

Hi everyone,

I used this script to make the sample: O.save('make_sample_x.yade.gz') on my virtual machine.

I want to load this sample to the cluster. But the following error pops up.

TCP python prompt on localhost:9000, auth cookie `esakud'
Welcome to Yade 2018.02b
XMLRPC info provider on http://localhost:21000
Running script rotation_awn.py
Traceback (most recent call last):
  File "/packages/7x/yade/2018.02b/bin/yade-2018.02b", line 182, in runScript
    execfile(script,globals())
  File "rotation_awn.py", line 3, in <module>
    O.load('make_sample_x.yade.gz')
RuntimeError: unsupported version

=================== JOB SUMMARY ================
id : rotation_awn.py.default
status : 256 (FAILED)
duration: 00:00:01
command : YADE_BATCH= DISPLAY= /packages/7x/yade/2018.02b/bin/yade-2018.02b --threads=1 --nice=10 -x rotation_awn.py> rotation_awn.py.default.log 2>&1
started : Mon Apr 15 09:10:38 2019
finished: Mon Apr 15 09:10:40 2019

I use the same version on the virtual machine and cluster. the version is Yade 2018.02b.

Is there anyone can help me?

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
procrastinator
Solved:
2019-04-16
Last query:
2019-04-16
Last reply:
2019-04-16

Hi everyone,

If I make a sample on the cluster and save it, then I load the saved sample on the virtual machine. Here is the error from the virtual machine.

ytang116@ubuntu:~/yade$ yade wodewode.py
Welcome to Yade 2018.02b
TCP python prompt on localhost:9000, auth cookie `kuadce'
XMLRPC info provider on http://localhost:21000
Running script wodewode.py
LLVM ERROR: out of memory
Aborted (core dumped)
ytang116@ubuntu:~/yade$

The memory of this file is just 5.3MB.

Robert Caulk (rcaulk) said : #2

Have you tried using XML [1]? If it doesn't work, I would suspect the third party library versions are not identical for your ubuntu vs cent OS Yade installations. If that isn't it, maybe there is an issue loading internal objects on different hardware architectures.

[1]https://yade-dev.gitlab.io/trunk/introduction.html#saving-and-loading

Hi Robert,

Yesterday, I also tried with the .xml format. But it still has problems.

here is the error.

TCP python prompt on localhost:9000, auth cookie `uedsas'
Welcome to Yade 2018.02b
XMLRPC info provider on http://localhost:21000
Running script rotation_awn.py
Traceback (most recent call last):
  File "/packages/7x/yade/2018.02b/bin/yade-2018.02b", line 182, in runScript
    execfile(script,globals())
  File "rotation_awn.py", line 3, in <module>
    O.load('make_sample_x.xml')
RuntimeError: input stream error

=================== JOB SUMMARY ================
id : rotation_awn.py.default
status : 256 (FAILED)
duration: 00:00:01
command : YADE_BATCH= DISPLAY= /packages/7x/yade/2018.02b/bin/yade-2018.02b --threads=1 --nice=10 -x rotation_awn.py> rotation_awn.py.default.log 2>&1
started : Mon Apr 15 09:54:48 2019
finished: Mon Apr 15 09:54:49 2019

Maybe as you said, although the version of Yade is the same (2018.02b), the Prerequisites is not exactly the same.

Because of the Yade on the cluster is not installed by myself. So I'm not very sure.

Anyway, thank you very much.