Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Error compiling Windows v8p4r0

Error compiling Windows v8p4r0 1 year 6 months ago #42453

  • borisb
  • borisb's Avatar
  • OFFLINE
  • Admin
  • Posts: 128
  • Thank you received: 64
Hi Mathieu,

Thanks for your feedback, I'll add some additional checks as the script should have failed instead of opening compile_telemac.py.

Your error comes from the fact that the batch was unable to find a required tool (sed) provided with Git. Could you verify that you have a "usr" directory in your Git installation folder?
The administrator has disabled public write access.

Error compiling Windows v8p4r0 1 year 6 months ago #42464

Hi Boris,
First of all, thanks for the development of this script, and the time you take to help me. However, I still have the same error :
[notice] A new release of pip available: 22.3.1 -> 23.1.1
[notice] To update, run: python.exe -m pip install --upgrade pip
Accès refusé - SCRIPTS\PYTHON3
Accès refusé - EXAMPLES\PYTHON3
Accès refusé - OPTIONALS\ADDONS
Fichier introuvable - -NAME
Fichier introuvable - -EXEC
Fichier introuvable - SED
Fichier introuvable - -I
Fichier introuvable - 'S/ENV\
Fichier introuvable - PYTHON3/ENV\
Fichier introuvable - PYTHON/G'
Fichier introuvable - {}
Fichier introuvable - ;


My git folder contains the usr repository. sed is in "C:\Program Files\Git\usr\bin\sed.exe".

Thanks for your help.
M.
The administrator has disabled public write access.

Error compiling Windows v8p4r0 1 year 6 months ago #42566

Hi,
Personally I no longer have my last error but my compilation end like this :
6-validator-0.1.1 scipy-1.8.1 seaborn-0.12.2 six-1.16.0 sniffio-1.3.0 snuggs-1.4.7 soupsieve-2.4.1 stack-data-0.6.2 terminado-0.17.1 tinycss2-1.2.1 tornado-6.3.1 traitlets-5.9.0 tzdata-2023.3 uri-template-1.2.0 urllib3-2.0.2 wcwidth-0.2.6 webcolors-1.13 webencodings-0.5.1 websocket-client-1.5.1 widgetsnbextension-4.0.7

[notice] A new release of pip available: 22.3.1 -> 23.1.2
[notice] To update, run: python.exe -m pip install --upgrade pip

No "my work is done" is written.

When i tried to run a modelisation :
(telemac-v8p4r0) C:\telemac\v8p4r0\scripts\python3>python telemac2d.py "C:\telemac\v8p4r0\examples\telemac2d\break\t2d_break.cas" --ncsize=2


Loading Options and Configurations
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Traceback (most recent call last):
  File "C:\telemac\v8p4r0\scripts\python3\telemac2d.py", line 7, in <module>
    main('telemac2d')
  File "C:\telemac\v8p4r0\scripts\python3\runcode.py", line 233, in main
    update_config(options)
  File "C:\telemac\v8p4r0\scripts\python3\config.py", line 77, in update_config
    CFGS.parse_cfg_file(cfg_file, cfg_name, root_dir, python_dir)
  File "C:\telemac\v8p4r0\scripts\python3\configuration\cfg.py", line 105, in parse_cfg_file
    self.read_cfg()
  File "C:\telemac\v8p4r0\scripts\python3\configuration\cfg.py", line 69, in read_cfg
    raise TelemacException(\
utils.exceptions.TelemacException:
Not able to find the configuration [gnu.dynamic] in the configuration file: C:\telemac\v8p4r0\configs\systel.cfg

Thanks for your help
The administrator has disabled public write access.
The following user(s) said Thank You: 1458530610

Error compiling Windows v8p4r0 1 year 6 months ago #42555

  • 1458530610
  • 1458530610's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Thank you received: 1
Hi Boris,
First of all, thanks for your idea, and the time you take to help me. However, it generated some errors :
Building scalapack-2.1.0 with Mingw compiler...
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The C compiler identification is GNU 4.9.2
-- The Fortran compiler identification is GNU 4.9.2
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Strawberry/c/bin/gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: C:/Strawberry/c/bin/gfortran.exe - skipped
-- Checking whether C:/Strawberry/c/bin/gfortran.exe supports Fortran 90
-- Checking whether C:/Strawberry/c/bin/gfortran.exe supports Fortran 90 - yes
-- Could NOT find MPI_C (missing: MPI_C_WORKS)
-- Found MPI_Fortran: C:/Users/1/Desktop/telemac/telemac-mascaret/external/msmpi-10.1.2/lib/libmsmpi.a (found version "2.0")
-- Could NOT find MPI (missing: MPI_C_FOUND) (found version "2.0")
    Reason given by package: MPI component 'CXX' was requested, but language CXX is not enabled.

-- Found MPI_LIBRARY : FALSE
CMake Error at CMakeLists.txt:74 (message):
  --> MPI Library NOT FOUND -- please set MPI_BASE_DIR accordingly --


-- Configuring incomplete, errors occurred!
See also "C:/Users/1/Desktop/telemac/wintel/deps/scalapack-2.1.0/build-mingw/CMakeFiles/CMakeOutput.log".
See also "C:/Users/1/Desktop/telemac/wintel/deps/scalapack-2.1.0/build-mingw/CMakeFiles/CMakeError.log".
Thanks for your help,
Hao
The administrator has disabled public write access.

Error compiling Windows v8p4r0 1 year 5 months ago #42658

  • antbur
  • antbur's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 3
Hello everyone, here are some changes I made in order to successfully compile using the wintel repo.

There seems to be some typos in the systel.cfg file. I changed it like this, eventhough I don't think it is relevant.

On row 5: "dnu.dynamic.debug", should be "gnu.dynamic.debug"
On row 92: "gny.dynamic", should be "gnu.dynamic"

in the build-telemac.bat file I changed the

compile_telemac.py

line to

cd C:\telemac\scripts\python3
py compile_telemac.py

Atleast in my case, CMD didn't recognize "compile_telemac.py" as a python script and instead opened the file in an editor, hence the adition of "py" which should launch the python launcher. I guess you should make sure that python 3.10 is the chosen version in the python launcher.

On my personal computer these changes were enough to compile successfully. If you are like me and tried to install on your work PC maybe you also need to update some security settings in Windows defender. I got some generic "access denied" messages before I allowed the "msmpi90.exe" to be executed in windows defender.

Hope it is helpful for someone.

Yours,

Anton
The administrator has disabled public write access.
The following user(s) said Thank You: borisb, MathieuSoulayrol, Xinjie Zhang

Error compiling Windows v8p4r0 1 year 5 months ago #42715

  • borisb
  • borisb's Avatar
  • OFFLINE
  • Admin
  • Posts: 128
  • Thank you received: 64
Good catch on the systel.cfg file errors, I've just pushed a fix!

As for your other issue, .py files should indeed be associated with the Python launcher in the Windows registry, which should be the default behaviour after installing the Python launcher. In older versions of Telemac and in previous revisions of the wintel pysource batch script, the registry was tweaked to open .py files with Telemac's Python. However, changing the way Windows handles .py files is generally not recommended, as it can cause problems for people who use several Python versions, or a packaged system such as Anaconda, which bundles its own Python environment. I should probably add a check to the build-telemac.bat script to make sure that the Python registry keys are set correctly.
The administrator has disabled public write access.
The following user(s) said Thank You: MathieuSoulayrol

Error compiling Windows v8p4r0 1 year 5 months ago #42720

Hi, thank you to have emphasized these errors. I succesfully installed and compile telemac (message "my work is done"), nevertheless, while trying to launch an example :
C:\telemac\v8p4r0\examples\telemac2d\breach>py -3.10 "C:\telemac\v8p4r0\scripts\python3\telemac2d.py" t2d_breach.cas -nc
size=2


I notice that it does not work with this message :
In C:\telemac\v8p4r0\examples\telemac2d\breach\t2d_breach.cas_2023-05-31-15h38min47s:
mpiexec -n 1 C:\telemac\v8p4r0\examples\telemac2d\breach\t2d_breach.cas_2023-05-31-15h38min47s\out_telemac2d.exe
'mpiexec' n'est pas reconnu en tant que commande interne
....
utils.exceptions.TelemacException: Fail to run
mpiexec -n 1 C:\telemac\v8p4r0\examples\telemac2d\breach\t2d_breach.cas_2023-05-31-15h38min47s\out_telemac2d.exe

Do you know where this come from ?

Thank you so much.
M.
The administrator has disabled public write access.

Error compiling Windows v8p4r0 1 year 5 months ago #42722

  • borisb
  • borisb's Avatar
  • OFFLINE
  • Admin
  • Posts: 128
  • Thank you received: 64
This means that mpiexec.exe is not in your PATH.

Before using TELEMAC, you must first set up an appropriate TELEMAC environment by running the pysource.gnu.bat script from the TELEMAC configs directory.

You should also not run TELEMAC Python scripts using the command "py -3.10", as this would run the scripts with the default version of Python 3.10 installed on your system, instead of the virtual environment that must have been set up by the build-telemac.bat script.
The administrator has disabled public write access.
The following user(s) said Thank You: MathieuSoulayrol

Error compiling Windows v8p4r0 1 year 5 months ago #42724

Thank you, it's working
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: borisb

The open TELEMAC-MASCARET template for Joomla!2.5, the HTML 4 version.