Hello,
I am having problem trying to refine a mesh using converter.py.
The command issued is:
converter.py refine geo_in.slf geo_out.slf -b geo_in.cli -r \\hydra\opentelemac\trunk
First error encountered is:
Traceback (most recent call last):
File "\\hydra\opentelemac\trunk\scripts\python3\converter.py", line 148, in <module>
main()
File "\\hydra\opentelemac\trunk\scripts\python3\converter.py", line 137, in main
options.bnd_file)
File "\\hydra\opentelemac\trunk\scripts\python3\formats\stbtel_refine.py", line 77, in run_refine
code = sp.call(stbtel_args)
File "C:\Users\cyamin\WPy-3710\python-3.7.1.amd64\lib\subprocess.py", line 317, in call
with Popen(*popenargs, **kwargs) as p:
File "C:\Users\cyamin\WPy-3710\python-3.7.1.amd64\lib\subprocess.py", line 769, in __init__
restore_signals, start_new_session)
File "C:\Users\cyamin\WPy-3710\python-3.7.1.amd64\lib\subprocess.py", line 1172, in _execute_child
startupinfo)
OSError: [WinError 193] %1 is not a valid Win32 application
I changed line 72 in 'stbtel_refine.py' to:
stbtel_args = [sys.executable, path_stbtel, cas_name]
Now the error becomes:
Traceback (most recent call last):
File "\\hydra\opentelemac\trunk\scripts\python3\stbtel.py", line 7, in <module>
main('stbtel')
File "\\hydra\opentelemac\trunk\scripts\python3\runcode.py", line 219, in main
update_config(options)
File "\\hydra\opentelemac\trunk\scripts\python3\config.py", line 77, in update_config
CFGS.parse_cfg_file(cfg_file, cfg_name, root_dir, python_dir)
File "\\hydra\opentelemac\trunk\scripts\python3\configuration\cfg.py", line 99, in parse_cfg_file
raise TelemacException('Could not find {}'.format(cfg_file))
utils.exceptions.TelemacException: Could not find \\hydra\opentelemac\configs\systel.cfg
Which is totally correct because there isn't such a file there (notice that
'trunk' is missing from the path)
nor in my configs folder. If I put a systel.cfg where the code looks for, STBTEL runs but gives this error:
LIT : ABNORMAL END OF FILE
ONE INTENDED TO READ
A RECORD OF 2 VALUES
OF TYPE : I
ON LOGICAL UNIT : 1
PLANTE: PROGRAM STOPPED AFTER AN ERROR
RETURNING EXIT CODE: 2
Any suggestions?
Costas