Welcome,
Guest
|
TOPIC: Error compilation while using Wintel repositor
Error compilation while using Wintel repositor 1 year 11 months ago #41785
|
Hello everyone,
I tried to compile TELEMAC from the Wintel repository, but I have an error when compiling in the Building the Python API phase: Building the Python API ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~> Wrap_api built ~> Compiling Modules api Traceback (most recent call last): File "C:\telemac\telemac-mascaret\scripts\python3\compilation\compil_tools.py", line 913, in compile_api_f2py output = check_output(cmd, shell=True, stderr=STDOUT) File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\subprocess.py", line 411, in check_output **kwargs).stdout File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\subprocess.py", line 512, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command 'f2py --quiet -h C:\telemac\telemac-mascaret\builds\win\wrap_api\lib\api.pyf -m _api C:\telemac\telemac-mascaret\builds\win\wrap_api\src\api_handle_var_t3d.f90 C:\telemac\telemac-mascaret\builds\win\wrap_api\src\api_handle_var_t2d.f90 C:\telemac\telemac-mascaret\builds\win\wrap_api\src\api_handle_var_sis.f90 C:\telemac\telemac-mascaret\builds\win\wrap_api\src\api_handle_var_art.f90 C:\telemac\telemac-mascaret\builds\win\wrap_api\src\api_handle_var_wac.f90 C:\telemac\telemac-mascaret\builds\win\wrap_api\src\api_handle_error.f90 C:\telemac\telemac-mascaret\builds\win\wrap_api\src\api_interface.f90 skip: get_boolean_t2d_d get_double_t2d_d get_integer_t2d_d get_string_t2d_d get_var_size_t2d_d set_boolean_t2d_d set_double_t2d_d set_integer_t2d_d set_string_t2d_d get_double_array_t2d_d get_integer_array_t2d_d set_double_array_t2d_d set_integer_array_t2d_d get_boolean_sis_d get_double_sis_d get_integer_sis_d get_string_sis_d get_var_size_sis_d set_boolean_sis_d set_double_sis_d set_integer_sis_d set_string_sis_d get_double_array_sis_d get_integer_array_sis_d set_double_array_sis_d set_integer_array_sis_d get_boolean_t3d_d get_double_t3d_d get_integer_t3d_d get_string_t3d_d get_var_size_t3d_d set_boolean_t3d_d set_double_t3d_d set_integer_t3d_d set_string_t3d_d get_double_array_t3d_d get_integer_array_t3d_d set_double_array_t3d_d set_integer_array_t3d_d get_boolean_art_d get_double_art_d get_integer_art_d get_string_art_d get_var_size_art_d set_boolean_art_d set_double_art_d set_integer_art_d set_string_art_d get_double_array_art_d get_integer_array_art_d set_double_array_art_d set_integer_array_art_d get_boolean_wac_d get_double_wac_d get_integer_wac_d get_string_wac_d get_var_size_wac_d set_boolean_wac_d set_double_wac_d set_integer_wac_d set_string_wac_d get_double_array_wac_d get_integer_array_wac_d set_double_array_wac_d set_integer_array_wac_d :' returned non-zero exit status 1. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\telemac\telemac-mascaret\scripts\python3\compile_telemac.py", line 142, in <module> main() File "C:\telemac\telemac-mascaret\scripts\python3\compile_telemac.py", line 135, in main hermes_only='hermes_only' in cfg_opt) File "C:\telemac\telemac-mascaret\scripts\python3\compilation\compil_tools.py", line 1003, in compile_api_files f2py_opt=f2py_opt) File "C:\telemac\telemac-mascaret\scripts\python3\compilation\compil_tools.py", line 918, in compile_api_f2py execpt.output.decode('utf-8'))) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 in position 82: invalid start byte I have a folder "telemac-mascaret\builds\winbin" which is created and I tried to launch an example but I have then the following error message, is it related to the error of compilation ? C:\telemac\telemac-mascaret\examples\telemac2d\canal>C:\telemac\telemac-mascaret\builds\win\bin\telemac2d.exe t2d_canal.cas MASTER PROCESSOR NUMBER 0 OF THE GROUP OF 1 READ_CONFIG: FILE CONFIG NOT FOUND: CONFIG DEFAULTS VALUES OF LU AND LNG: 6 AND 2 LISTING OF TELEMAC2D TTTTT EEEEE L EEEEE M M AAAAA CCCCC T E L E MM MM A A C T EEE L EEE M M M AAAAA C T E L E M M A A C T EEEEE LLLLL EEEEE M M A A CCCCC 2D VERSION MAIN FORTRAN 2003 ~^~^~^~^~^~^~^~^~^~^~^^~^~^~^~^~^~ ~ ~ \ ' o ' /\ o \ o >=)'> ' /\ ' \/ \ >=)'> ~ / /\ \/ ~ >=)'> / . \/ ) / ( ~ ) ) } ~ ( ( ( { ) ) ) } } . ( ( ( { { /^^^^^^^^^^^^ ^^^^^^^^^\ / ^^^^^^^^^ At line 302 of file C:\telemac\telemac-mascaret\sources\telemac2d\lecdon_telemac2d.f (unit = 10) Fortran runtime error: Cannot open file 'T2DDICO': No such file or directory Error termination. Backtrace: Could not print backtrace: libbacktrace could not find executable to open #0 0xffffffff #1 0xffffffff #2 0xffffffff #3 0xffffffff #4 0xffffffff #5 0xffffffff #6 0xffffffff #7 0xffffffff #8 0xffffffff #9 0xffffffff #10 0xffffffff #11 0xffffffff #12 0xffffffff |
The administrator has disabled public write access.
|
Error compilation while using Wintel repositor 1 year 11 months ago #41789
|
You have two problems here:
- For the first one, looking at your log, you seem to be using a Python provided with Visual Studio. Did you run pysource.win.bat before compiling? - For the second point, you should not run TELEMAC-2D from its executable but from its Python script, i.e. your command should be : telemac2d.py t2d_channel.cas |
The administrator has disabled public write access.
|
Error compilation while using Wintel repositor 1 year 11 months ago #41799
|
Hi,
thank you for your answer. I have indeed followed the steps described in "Building TELEMAC-MASCARET" but when I want to launch the command "C:\telemac>compile_telemac.py" after "C:\telemac>telemac-mascaret\configs\pysource.win.bat", a DOS command window open then close without anything happening and no error message. That's why I tried to compile with an other Python. Also to launch TELEMAC2D, I first tried to use the command "telemac2d.py t2d_channel.cas", but I have a DOS window that opens then closes without having any other information, that's why I tried to launch by another way to know more about the error, but I didn't realize that it was not the right way. Thanks again for your help |
The administrator has disabled public write access.
|
Error compilation while using Wintel repositor 1 year 11 months ago #41800
|
Hi Pierre,
Sorry for the issue, I think it's a Python installation problem due to the fact that you have a version of Python already installed on your system. Unfortunately, it is quite difficult to deal with each specific configuration of Python on Windows: some people may have Python already installed but with particular options, others have a specific version of Python provided with a software (Visual Studio, QGIS...), others use Anaconda or Miniconda... In the end, there can be many different configurations that result in very different registry settings, which my batch script can't cover entirely. Regarding your particular problem, can you first tell me if the Python launcher is installed, i.e. if the following command returns anything: where py And could you try calling Telemac scripts in this way: python %hometel%\scripts\python3\compile_telemac.py I know it's not great, but it would be a starting point to fix your installation. |
The administrator has disabled public write access.
|
Error compilation while using Wintel repositor 1 year 11 months ago #41806
|
Here are the returns
where py C:\Windows\py.exe python %hometel%\scripts\python3\compile_telemac.py c:\telemac>python %hometel%\scripts\python3\compile_telemac.py Loading Options and Configurations ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ _ (_) _ __ ___ __ _ _ _ __ | '_ ` _ \ / _` || || '_ \ | | | | | || (_| || || | | | |_| |_| |_| \__,_||_||_| |_| _ (_) __ __ _ _ __ \ \ /\ / /| || '_ \ \ V V / | || | | | \_/\_/ |_||_| |_| Scanning the source code for: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ win: +> Windows static build using Mingw and MS-MPI +> root: c:\telemac\telemac-mascaret +> 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 Compiling from the tree top api plus dependents ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +> There is no need to compile any object +> There is no need to package any library +> There is no need to create the associate executable Compiling from the tree top artemis plus dependents ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +> There is no need to compile any object +> There is no need to package any library +> There is no need to create the associate executable Compiling from the tree top damocles plus dependents ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +> There is no need to compile any object +> There is no need to package any library +> There is no need to create the associate executable Compiling from the tree top gredelhyd_autop plus dependents ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +> There is no need to compile any object +> There is no need to package any library +> There is no need to create the associate executable Compiling from the tree top gredelmet_autop plus dependents ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +> There is no need to compile any object +> There is no need to package any library +> There is no need to create the associate executable Compiling from the tree top gredelpts_autop plus dependents ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +> There is no need to compile any object +> There is no need to package any library +> There is no need to create the associate executable Compiling from the tree top gredelseg_autop plus dependents ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +> There is no need to compile any object +> There is no need to package any library +> There is no need to create the associate executable Compiling from the tree top gretel plus dependents ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +> There is no need to compile any object +> There is no need to package any library +> There is no need to create the associate executable Compiling from the tree top identify_liq_bnd plus dependents ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +> There is no need to compile any object +> There is no need to package any library +> There is no need to create the associate executable Compiling from the tree top HOMERE_MASCARET plus dependents ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +> There is no need to compile any object +> There is no need to compile C object +> There is no need to compile C object - completed: ...\telemac-mascaret\builds\win\lib\libmascaret.a +> There is no need to create the associate executable Compiling from the tree top partel plus dependents ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +> There is no need to compile any object +> There is no need to package any library +> There is no need to create the associate executable Compiling from the tree top partel_para plus dependents ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +> There is no need to compile any object +> There is no need to package any library +> There is no need to create the associate executable Compiling from the tree top partel_prelim plus dependents ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +> There is no need to compile any object +> There is no need to package any library +> There is no need to create the associate executable Compiling from the tree top postel3d plus dependents ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +> There is no need to compile any object +> There is no need to package any library +> There is no need to create the associate executable Compiling from the tree top sisyphe plus dependents ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +> There is no need to compile any object +> There is no need to package any library +> There is no need to create the associate executable Compiling from the tree top stbtel plus dependents ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +> There is no need to compile any object +> There is no need to package any library +> There is no need to create the associate executable Compiling from the tree top telemac2d plus dependents ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +> There is no need to compile any object +> There is no need to package any library +> There is no need to create the associate executable Compiling from the tree top telemac3d plus dependents ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +> There is no need to compile any object +> There is no need to package any library +> There is no need to create the associate executable Compiling from the tree top tomawac plus dependents ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +> There is no need to compile any object +> There is no need to package any library +> There is no need to create the associate executable Building the Python API ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~> Wrap_api built ~> Compiling Modules api Traceback (most recent call last): File "c:\telemac\telemac-mascaret\scripts\python3\compilation\compil_tools.py", line 913, in compile_api_f2py output = check_output(cmd, shell=True, stderr=STDOUT) File "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\subprocess.py", line 411, in check_output File "D:\obj\windows-release\37amd64_Release\msi_python\zip_amd64\subprocess.py", line 512, in run subprocess.CalledProcessError: Command 'f2py --quiet -h c:\telemac\telemac-mascaret\builds\win\wrap_api\lib\api.pyf -m _api c:\telemac\telemac-mascaret\builds\win\wrap_api\src\api_handle_var_t3d.f90 c:\telemac\telemac-mascaret\builds\win\wrap_api\src\api_handle_var_t2d.f90 c:\telemac\telemac-mascaret\builds\win\wrap_api\src\api_handle_var_sis.f90 c:\telemac\telemac-mascaret\builds\win\wrap_api\src\api_handle_var_art.f90 c:\telemac\telemac-mascaret\builds\win\wrap_api\src\api_handle_var_wac.f90 c:\telemac\telemac-mascaret\builds\win\wrap_api\src\api_handle_error.f90 c:\telemac\telemac-mascaret\builds\win\wrap_api\src\api_interface.f90 skip: get_boolean_t2d_d get_double_t2d_d get_integer_t2d_d get_string_t2d_d get_var_size_t2d_d set_boolean_t2d_d set_double_t2d_d set_integer_t2d_d set_string_t2d_d get_double_array_t2d_d get_integer_array_t2d_d set_double_array_t2d_d set_integer_array_t2d_d get_boolean_sis_d get_double_sis_d get_integer_sis_d get_string_sis_d get_var_size_sis_d set_boolean_sis_d set_double_sis_d set_integer_sis_d set_string_sis_d get_double_array_sis_d get_integer_array_sis_d set_double_array_sis_d set_integer_array_sis_d get_boolean_t3d_d get_double_t3d_d get_integer_t3d_d get_string_t3d_d get_var_size_t3d_d set_boolean_t3d_d set_double_t3d_d set_integer_t3d_d set_string_t3d_d get_double_array_t3d_d get_integer_array_t3d_d set_double_array_t3d_d set_integer_array_t3d_d get_boolean_art_d get_double_art_d get_integer_art_d get_string_art_d get_var_size_art_d set_boolean_art_d set_double_art_d set_integer_art_d set_string_art_d get_double_array_art_d get_integer_array_art_d set_double_array_art_d set_integer_array_art_d get_boolean_wac_d get_double_wac_d get_integer_wac_d get_string_wac_d get_var_size_wac_d set_boolean_wac_d set_double_wac_d set_integer_wac_d set_string_wac_d get_double_array_wac_d get_integer_array_wac_d set_double_array_wac_d set_integer_array_wac_d :' returned non-zero exit status 1. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "c:\telemac\telemac-mascaret\scripts\python3\compile_telemac.py", line 142, in <module> main() File "c:\telemac\telemac-mascaret\scripts\python3\compile_telemac.py", line 135, in main hermes_only='hermes_only' in cfg_opt) File "c:\telemac\telemac-mascaret\scripts\python3\compilation\compil_tools.py", line 1003, in compile_api_files f2py_opt=f2py_opt) File "c:\telemac\telemac-mascaret\scripts\python3\compilation\compil_tools.py", line 918, in compile_api_f2py execpt.output.decode('utf-8'))) UnicodeDecodeError: 'utf-8' codec can't decode byte 0x82 in position 82: invalid start byte |
The administrator has disabled public write access.
|
Moderators: borisb