[Gmsh] Running onelab python script on gmsh command line

lukshuntim at gmail.com lukshuntim at gmail.com
Tue Mar 24 07:03:05 CET 2015


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.

Regards,
ST
--