Here is the installation procedure I successfully followed for installing telemac v7p1 on both a windows 7 and a windows 10 computers, with some tips for solving bugs that may appear. information from other topics is used and the link to these topics is provided along with the instructions.
1-Uninstall all the previous versions and delete the folder opentelemac from the installing directory (and all telemac related applications)
2-Log in in
www.opentelemac.org/ and open the svn repository in web browser:
svn.opentelemac.org/svn/opentelemac/tags/v7p1r1/ (or other version if wanted)
Username: ot-svn-public
Password: telemac1*
3- Download the automatic installation file:
www.opentelemac.org/index.php/component/...ac-windows?Itemid=54
and run it
install the pre requisites and try to run the source code
you get an error.
run the automatic installation file again but uncheck the pre requisites
(source for the above steps:
www.opentelemac.org/index.php/assistance...6488-installing-v6p3)
it should not work because python is not set as the default program to open .py files.
to remedy this, find a .py file, right click, “open with” and find python.exe in the opentelemac folder. Chose it as the default program.
if the “set as default program” option is grayed out, do the following:
open regedit from a command line,
go to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts
find the .py extension
Delete the UserChoice key.
(source for the above steps:
superuser.com/questions/153465/always-us...es-is-grayed-out-why)
Run the automatic installation fil again. It should work this time. The installer will ask you for the version of telemac you wish to install. If the one you need is not among them, follow the steps below.
Instructions to finish the installation manually after a failure of the automatic installation
Important note: The following instructions are to check out the first tag (v7p2r2) of the v7p2 version. If you wish to work with a different version, edit all commands, paths, names and the configuration file with the version you wish to use.
1. Open the DOS prompt command
If you do not know where the prompt command is, go to the Windows start menu and type “cmd” in the “Search programs and files” box. (see picture on the right)
2. Check out the TELEMAC source code
From the DOS prompt command, run the following command:
svn co
svn.opentelemac.org/svn/opentelemac/tags/v7p2r2 "C:\opentelemac-mascaret\v7p2" --username ot-svn-public --password telemac1*
Note: The download could last more than 20 minutes depending on the quality of the internet connection.
Note: If the checkout crashed you do not have to start again just type svn update in the v7p2r2 folder to carry on the download.
3. Copy configuration file
Save the configuration file as systel_v7p2.cfg in C:\opentelemac-mascaret\v7p2\configs.
Here are the configuration files for v7p2: configuration file v7p2
for v7p0 : configuration file
for others: retrieve the files from a successfully configured computer, or try finding them on the opentelemac.org website
4. Create a shortcut of the DOS prompt command on your Desktop
5. Rename it “Telemac v7p2”
6. Edit the properties of the new shortcut
Click right on the shortcut and edit the properties. The properties window should pop up
In the Target box, copy/paste the following path next to what is already there, separated by a space.
/E:ON /V:ON /K set SYSTELCFG=C:\opentelemac-mascaret\v7p2\configs\systel_v7p2.cfg && PATH=C:\opentelemac-mascaret\v7p2\scripts\python27;!PATH!
In the Start in box, delete the path and replace it by C:\opentelemac-mascaret\v7p2
Click OK
6’. Prepare the shortcut for telemac in parallel
repeat steps 4 and 5 and adapt the nomenclature for parallel;
repeat step 6 but in the target box, enter the following instead:
/E:ON /V:ON /K set SYSTELCFG=C:\opentelemac-mascaret\v7p2\configs\systel_parallel_v7p2.cfg && PATH=C:\opentelemac-mascaret\v7p2\scripts\python27;C:\opentelemac-mascaret\mpich2\bin;!PATH!
7. Compile the TELEMAC system
Double click on the Telemac v7p2 shortcut you created and run the following command:
compileTELEMAC.py (make sure .py files are executed with python.exe by default)
Apply this step to both the standard and parallel shortcuts.
(source for the above steps:
wiki.opentelemac.org/doku.php?id=instruc...tomatic_installation)
when launching a test simulation after that, a window might suddenly open and close, without the simulation being run. This is because windows prevents arguments to be run by python executable. If this happens, you need to modify two registry keys:
HKEY_CLASSES_ROOT\Applications\python26.exe\shell\open\command
and
HKEY_CLASSES_ROOT\py_auto_file\shell\open\command
to
"C:\Python26\python26.exe" "%1" %*
(source for the above steps:
www.opentelemac.org/index.php/assistance...nd-cas-file-required)