Error in running code in YADE 2019.01a-2

Asked by Mahdeyeh on 2019-10-25

Hello guys,

I recently I have installed YADE 2019.01a-2. So I put my previous codes to run them. The codes run correctly in YADE 2018.02b But I see the following error when running them in YADE 2019.01a-2:

Welcome to Yade 2019.01a
TCP python prompt on localhost:9000, auth cookie `usdska'
XMLRPC info provider on http://localhost:21000
Running script poly4.py
Traceback (most recent call last):
  File "/usr/bin/yade", line 241, in runScript
    execfile(script,globals())
  File "poly4.py", line 4, in <module>
    RawVer=np.genfromtxt('ring.txt',names=True,dtype=None)
  File "/usr/lib/python2.7/dist-packages/numpy/lib/npyio.py", line 1798, in genfromtxt
    names = validate_names(names)
  File "/usr/lib/python2.7/dist-packages/numpy/lib/_iotools.py", line 425, in __call__
    return self.validate(names, defaultfmt=defaultfmt, nbfields=nbfields)
  File "/usr/lib/python2.7/dist-packages/numpy/lib/_iotools.py", line 402, in validate
    for item in names:
TypeError: 'QCborSimpleType' object is not iterable
[[ ^L clears screen, ^U kills line. F12 controller, F11 3d view (use h-key for showing help), F10 both, F9 generator, F8 plot. ]]

Why is this happening? please help

My codes are here:
https://answers.launchpad.net/yade/+question/685203

Best regards,
Mahdeyeh

Question information

Language:
English Edit question
Status:
Expired
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
2019-10-25
Last reply:
2019-11-09
Jan Stránský (honzik) said : #1

What is your operating system?
The error is from qt package responsible for GUI. Could you try with disabled GUI (yade -n script.py)?
cheers
Jan

Mahdeyeh (mahdiye.sky) said : #2

Hi Jan

 It is:

Linux version 5.0.0-32-generic (buildd@lgw01-amd64-034) (gcc version 8.3.0 (Ubuntu 8.3.0-6ubuntu1)) #34-Ubuntu SMP Wed Oct 2 02:06:48 UTC 2019

Linux 5.0.0-32-generic x86_64
Distributor ID: Ubuntu
Description: Ubuntu 19.04
Release: 19.04
Codename: disco
VERSION="19.04 (Disco Dingo)"

Mahdeyeh (mahdiye.sky) said : #3

Dear Jan
With disabled GUI (yade -n script.py), runnig code has not error.

Now what should I do?

Best regards,
Mahdeyeh

Launchpad Janitor (janitor) said : #4

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