Welcome,
Guest
|
TOPIC: Windows Telema_v8p2r0 Python3 Bug Telemac2D
Windows Telema_v8p2r0 Python3 Bug Telemac2D 3 years 9 months ago #37784
|
Hi
I can work previously on windows with telemac v7p3 and I want to update. I need to adapt some command I give yous ome informations C:\opentelemac-mascaret\v7p3>path PATH=C:\opentelemac-mascaret\v7p3\scripts\python27;C:\opentelemac-mascaret\python27;C:\Program Files\Microsoft MPI\Bin\;c:\programdata\oracle\java\javapath;c:\program files (x86)\intel\intel(r) management engine components\icls\;c:\program files\intel\intel(r) management engine components\icls\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\wbem;C:\WINDOWS\system32\windowspowershell\v1.0\;C:\WINDOWS\system32\openssh\;c:\program files\intel\wifi\bin\;c:\program files\common files\intel\wirelesscommon\;c:\program files (x86)\intel\intel(r) management engine components\dal;c:\program files\intel\intel(r) management engine components\dal;C:\Program Files (x86)\MATLAB71\bin\win32;C:\Program Files\TortoiseSVN\bin;C:\opentelemac-mascaret\mingw64\bin;C:\opentelemac-mascaret\mpich2\bin;C:\opentelemac-mascaret\mpich2\lib;C:\opentelemac-mascaret;C:\Program Files\TauDEM\TauDEM5Exe;C:\GDAL;C:\Program Files\GDAL;C:\Program Files (x86)\Box\Box Edit\;C:\Users\frederic.pons\AppData\Local\Microsoft\WindowsApps;C:\Users\frederic.pons\AppData\Local\Programs\Python\Python39;C:\Users\frederic.pons\AppData\Local\Programs\Python\Python39\Scripts; If I launch as most of people, it doesn't work C:\opentelemac-mascaret\v7p3>telemac2d.py -s C:\Cartino2D\bridgev8p2\t2d_bridge.cas Loading Options and Configurations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ usage: (--help for help) => telemac2d.py [options] casfile(s) telemac2d.py: error: too few arguments I need to give a path and launch with python before the command line! After all is ok C:\opentelemac-mascaret\v7p3>cd C:\opentelemac-mascaret\v7p3\scripts\python27 C:\opentelemac-mascaret\v7p3\scripts\python27>python telemac2d.py -s C:\Cartino2D\bridgev8p2\t2d_bridge.cas Loading Options and Configurations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _ _ _ | | (_) (_) _ _ _ __ | | __ _ __ ___ __ __ _ __ _ __ ___ __ __ _ ___ _ ___ _ __ | | | || '_ \ | |/ /| '_ \ / _ \ \ \ /\ / /| '_ \ | '__| / _ \\ \ / /| |/ __|| | / _ \ | '_ \ | |_| || | | || < | | | || (_) | \ V V / | | | | | | | __/ \ V / | |\__ \| || (_) || | | | \__,_||_| |_||_|\_\|_| |_| \___/ \_/\_/ |_| |_| |_| \___| \_/ |_||___/|_| \___/ |_| |_| ... parsing configuration file: C:\opentelemac-mascaret\v7p3\configs\systel_v7p3.cfg Running your CAS file for: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +> configuration: win7gfors +> root: C:\opentelemac-mascaret\v7p3 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... reading the main module dictionary When working with v8p2r0 This command does not work compile_telemac.py --clean But if I use the v7p3 idea, all the compilation is done cd C:\opentelemac-mascaret\v8p2r0\scripts\python3 python compile_telemac.py --clean After, when I want to use telemac2d, i try to use the v7p3 idea, I give you my different tests. C:\opentelemac-mascaret\v8p2r0>path PATH=C:\opentelemac-mascaret\v8p2r0\scripts\python3;C:\Users\frederic.pons\AppData\Local\Programs\Python\Python39;C:\Program Files\Microsoft MPI\Bin\;c:\programdata\oracle\java\javapath;c:\program files (x86)\intel\intel(r) management engine components\icls\;c:\program files\intel\intel(r) management engine components\icls\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\wbem;C:\WINDOWS\system32\windowspowershell\v1.0\;C:\WINDOWS\system32\openssh\;c:\program files\intel\wifi\bin\;c:\program files\common files\intel\wirelesscommon\;c:\program files (x86)\intel\intel(r) management engine components\dal;c:\program files\intel\intel(r) management engine components\dal;C:\Program Files (x86)\MATLAB71\bin\win32;C:\Program Files\TortoiseSVN\bin;C:\opentelemac-mascaret\mingw64\bin;C:\opentelemac-mascaret\mpich2\bin;C:\opentelemac-mascaret\mpich2\lib;C:\opentelemac-mascaret;C:\Program Files\TauDEM\TauDEM5Exe;C:\GDAL;C:\Program Files\GDAL;C:\Program Files (x86)\Box\Box Edit\;C:\Users\frederic.pons\AppData\Local\Microsoft\WindowsApps;C:\Users\frederic.pons\AppData\Local\Programs\Python\Python39;C:\Users\frederic.pons\AppData\Local\Programs\Python\Python39\Scripts; C:\opentelemac-mascaret\v8p2r0> C:\opentelemac-mascaret\v8p2r0>telemac2d.py -s C:\Cartino2D\bridgev8p2\t2d_bridge.cas Traceback (most recent call last): File "C:\opentelemac-mascaret\v8p2r0\scripts\python3\telemac2d.py", line 4, in <module> from runcode import main File "C:\opentelemac-mascaret\v8p2r0\scripts\python3\runcode.py", line 14, in <module> from utils.files import check_sym_link File "C:\opentelemac-mascaret\v8p2r0\scripts\python3\utils\files.py", line 51, in <module> from urllib.request import urlopen ImportError: No module named request C:\opentelemac-mascaret\v8p2r0> C:\opentelemac-mascaret\v8p2r0>python telemac2d.py -s C:\Cartino2D\bridgev8p2\t2d_bridge.cas python: can't open file 'C:\opentelemac-mascaret\v8p2r0\telemac2d.py': [Errno 2] No such file or directory C:\opentelemac-mascaret\v8p2r0> C:\opentelemac-mascaret\v8p2r0>cd C:\opentelemac-mascaret\v8p2r0\scripts\python3 C:\opentelemac-mascaret\v8p2r0\scripts\python3>telemac2d.py -s C:\Cartino2D\bridgev8p2\t2d_bridge.cas Traceback (most recent call last): File "C:\opentelemac-mascaret\v8p2r0\scripts\python3\telemac2d.py", line 4, in <module> from runcode import main File "C:\opentelemac-mascaret\v8p2r0\scripts\python3\runcode.py", line 14, in <module> from utils.files import check_sym_link File "C:\opentelemac-mascaret\v8p2r0\scripts\python3\utils\files.py", line 51, in <module> from urllib.request import urlopen ImportError: No module named request C:\opentelemac-mascaret\v8p2r0\scripts\python3> C:\opentelemac-mascaret\v8p2r0\scripts\python3>cd C:\opentelemac-mascaret\v8p2r0\scripts\python3 C:\opentelemac-mascaret\v8p2r0\scripts\python3>python telemac2d.py -s C:\Cartino2D\bridgev8p2\t2d_bridge.cas Loading Options and Configurations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _ _ | | | | | |_ _ __ _ _ _ __ | | __ | __|| '__|| | | || '_ \ | |/ / | |_ | | | |_| || | | || < \__||_| \__,_||_| |_||_|\_\ Running your CAS file(s) for: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ win7gfors: +> root: C:\opentelemac-mascaret\v8p2r0 +> module: ad / api / artemis / bief damocles / gaia / gretel / hermes identify_liq_bnd / khione / mascaret / nestor parallel / partel / postel3d / sisyphe special / stbtel / telemac2d / telemac3d tomawac / waqtel ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... processing the steering file Traceback (most recent call last): File "C:\opentelemac-mascaret\v8p2r0\scripts\python3\telemac2d.py", line 7, in <module> main('telemac2d') File "C:\opentelemac-mascaret\v8p2r0\scripts\python3\runcode.py", line 271, in main run_study(cas_file, code_name, options) File "C:\opentelemac-mascaret\v8p2r0\scripts\python3\execution\run_cas.py", line 154, in run_study my_study = Study(steering_file, code_name, options.w_dir) File "C:\opentelemac-mascaret\v8p2r0\scripts\python3\execution\study.py", line 96, in __init__ self.cas = TelemacCas(self.steering_file, self.dico_file) File "C:\opentelemac-mascaret\v8p2r0\scripts\python3\execution\telemac_cas.py", line 83, in __init__ self._set_io_files() File "C:\opentelemac-mascaret\v8p2r0\scripts\python3\execution\telemac_cas.py", line 281, in _set_io_files raise TelemacException( utils.exceptions.TelemacException: In C:\Cartino2D\bridgev8p2\t2d_bridge.cas missing file for BOUNDARY CONDITIONS FILE: geo_bridge.cli C:\opentelemac-mascaret\v8p2r0\scripts\python3> C:\opentelemac-mascaret\v8p2r0\scripts\python3>cd C:\opentelemac-mascaret\v8p2r0\scripts\python3 C:\opentelemac-mascaret\v8p2r0\scripts\python3>C:\Users\frederic.pons\AppData\Local\Programs\Python\Python39\python telemac2d.py -s C:\Cartino2D\bridgev8p2\t2d_bridge.cas Loading Options and Configurations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _ _ | | | | | |_ _ __ _ _ _ __ | | __ | __|| '__|| | | || '_ \ | |/ / | |_ | | | |_| || | | || < \__||_| \__,_||_| |_||_|\_\ Running your CAS file(s) for: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ win7gfors: +> root: C:\opentelemac-mascaret\v8p2r0 +> module: ad / api / artemis / bief damocles / gaia / gretel / hermes identify_liq_bnd / khione / mascaret / nestor parallel / partel / postel3d / sisyphe special / stbtel / telemac2d / telemac3d tomawac / waqtel ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ... processing the steering file Traceback (most recent call last): File "C:\opentelemac-mascaret\v8p2r0\scripts\python3\telemac2d.py", line 7, in <module> main('telemac2d') File "C:\opentelemac-mascaret\v8p2r0\scripts\python3\runcode.py", line 271, in main run_study(cas_file, code_name, options) File "C:\opentelemac-mascaret\v8p2r0\scripts\python3\execution\run_cas.py", line 154, in run_study my_study = Study(steering_file, code_name, options.w_dir) File "C:\opentelemac-mascaret\v8p2r0\scripts\python3\execution\study.py", line 96, in __init__ self.cas = TelemacCas(self.steering_file, self.dico_file) File "C:\opentelemac-mascaret\v8p2r0\scripts\python3\execution\telemac_cas.py", line 83, in __init__ self._set_io_files() File "C:\opentelemac-mascaret\v8p2r0\scripts\python3\execution\telemac_cas.py", line 281, in _set_io_files raise TelemacException( utils.exceptions.TelemacException: In C:\Cartino2D\bridgev8p2\t2d_bridge.cas missing file for BOUNDARY CONDITIONS FILE: geo_bridge.cli Telemac2d can be launched and the steering file is readed but the rreor "missing file for BOUNDARY CONDITIONS FILE: geo_bridge.cli" is a bug to have the good path. The case is the bridge test case available with the exemple. I think it is my python which have a bug, bad installation, too much versions but I cannot resolve the bug. Thanks for your answers |
The administrator has disabled public write access.
|
Moderators: pham