[Gmsh] Running onelab python script on gmsh command line

Christophe Geuzaine cgeuzaine at ulg.ac.be
Thu Apr 23 21:58:32 CEST 2015


> On 24 Mar 2015, at 07:03, lukshuntim at gmail.com wrote:
> 
> On Tuesday, March 24, 2015 05:21 AM, Christophe Geuzaine wrote:
>> 
>>> On 22 Mar 2015, at 17:29, lukshuntim at gmail.com wrote:
>>> 
>>> Hi,
>>> 
>>> I started to play a bit with onelab. When trying to run the pend.py script from
>>> 
>>> http://onelab.info/wiki/Python
>>> 
>>> on the command line using "gmsh pend.py", it throws this error
>>> 
>>> Traceback (most recent call last):
>>>  File "pend.py", line 93, in <module>
>>>    exportMshOpt()
>>>  File "pend.py", line 20, in exportMshOpt
>>>    optFile = open(c.getPath("pend.msh.opt"),'w')
>>> IOError: [Errno 13] Permission denied: '//pend.msh.opt'
>>> 
>>> while running `gmsh ./pend.py` works.
>>> 
>>> Is this the intended/expected behaviour or a bug? This is on ubuntu trusty.
>>> 
>> 
>> There was an issue in the "path()" function in Gmsh 2.9.0. Does it work with Gmsh 2.9.1 or the latest nightly builds?
> 
> I used this gmsh-getdp bundle
> 
> http://onelab.info/files/gmsh-getdp-Linux64.zip
> 
> "gmsh --version" shows 2.9.1.

Did you get it to work?

> 
> Regards,
> ST
> -- 

-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science 
http://www.montefiore.ulg.ac.be/~geuzaine