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

TOPIC: Installation of 6.2 on Windows 7 with g95 and Python

Installation of 6.2 on Windows 7 with g95 and Python 12 years 1 week ago #6286

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi all!

I am just trying to install version 6.2 on Windows 7 using g95 and Python scripts.
The compilation process has stopped due to an error which I can hardly explain...
The log is in the attached file.

Any help would be much appreciated!
Thank you in advance,
PL

File Attachment:

File Name: log_compilation_g95_pb.txt
File Size: 9 KB
The administrator has disabled public write access.

Installation of 6.2 on Windows 7 with g95 and Python 12 years 1 week ago #6296

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi again,

I tried to investigate a little bit more what could be the problem, but without success.
I am just wondering if the fact of having both python 2.5 and 2.7 installed can cause disturbancies. Version 2.5 has been installed automatically with my ArcGIS installation, and I don't really know if I can uninstall it without causing troubles for ArcGIS...
I also would like to add the I have sucessfully installed version 6.2 on my personal computer with the same configuration (Win7, python 2.7 only, g95).

Facing this problem, I then decided of using the compiled 6.2 version instead. I downloaded the compiled version from the homepage, created PATH and SYSTELCFG variables and defined my systel.cfg file with config name [wintel].
When I want to run a case, I get the following error message:

C:\MODELES_2D\_test_v6p2\Svallning_K30>runcode.py telemac2d -s cas_K30
Traceback (most recent call last):
File "C:\opentelemac\v6p2\wintel\pytel\runcode.py", line 105, in <module>
from utils.files import getFileContent,putFileContent,removeDirectories,isNe
wer
ImportError: No module named utils.files

As it is unclear in the installation instructions if one should skip the compilation if using a compiled version, i tried to run compileTELEMAC.py but i got a similar message:

C:\Users\plli>compileTELEMAC.py
Traceback (most recent call last):
File "C:\opentelemac\v6p2\wintel\pytel\compileTELEMAC.py", line 59, in <module
>
from parsers.parserFortran import scanSources
ImportError: No module named parsers.parserFortran

I also attach my two systel files corresponding to both configurations:
systel.cfg for compiled version
systel.wintelg95.cfg for g95 version

Here again, any help would be much appreciated!
PL

File Attachment:

File Name: systel.cfg.txt
File Size: 1 KB


File Attachment:

File Name: systel.wintelg95.cfg.txt
File Size: 1 KB
The administrator has disabled public write access.

Installation of 6.2 on Windows 7 with g95 and Python 12 years 1 week ago #6311

  • mathieu5roy
  • mathieu5roy's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 60
  • Thank you received: 7
Hi,

From what I think, looks to me that g95 is not properly installed.

Could you verify this ?

Take a look at this FAQ :

www.g95.org/windows_faq.shtml

It helped me a lot to install vp6.1 under win7+g95 a few months ago.

btw, g95 under vp6.1 was ultra slow for me compared to gfortran under ubuntu. The compilation of TELEMAC took me about nearly 4 hours. Also running malpasset cas2.txt on g95 took nearly 284 seconds VS 72 for gfortran. however maybe this has been fixed in v6.2.

anyway

Good luck

Mathieu
The administrator has disabled public write access.

Installation of 6.2 on Windows 7 with g95 and Python 12 years 1 week ago #6312

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi,

Thanks for your link and advices. I have checked the environment variables, and they looked fine (both PATH and G95_LIBRARY_PATH). I neverthless installed g95 again and made sure that both system variables were again correctly set.

I then tried to launch again the installation, and had the same problem than the first time, with a slight difference however: no objects have been created during the HOMERE_TELEMAC2D step whereas some did in my first try. Here is the log:

File Attachment:

File Name: log_compilation_g95_2.txt
File Size: 8 KB


Does anyone has any idea?
Could I also get some help regarding the installation of the compiled version (see my previous post)?

Thank you in advance,
PL
The administrator has disabled public write access.

Installation of 6.2 on Windows 7 with g95 and Python 12 years 1 week ago #6315

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
Hello,

You can have a look at the following trail: Re: problem installing Telemac when using makeall90

Sometimes, I found that I needed to copy the files from g95\lib\gcc-lib\i686-pc-mingw32\4.1.2 under g95\lib helps.

Please note that gfortran now comes in binary install versions (without the cygwin) in both 32b and 64b. These are probably more stable.

Hope this helps.
Sébastien.
The administrator has disabled public write access.

Installation of 6.2 on Windows 7 with g95 and Python 12 years 1 week ago #6316

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi,

Thank you for the tips.
It seems that it helped a bit but I now have a new error message regarding version of module bief:

C:\Users\plli>compileTELEMAC.py


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

... parsing configuration file: C:\opentelemac\v6p2\wintelg95\config\systelwinte
lg95.cfg


Scanning the source code for:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+> configuration: win7g95s
+> root: C:\opentelemac\v6p2\wintelg95
+> version: v6p2
+> modules: update system

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

... now scanning tel3d_v6p2
... now scanning toma_v6p2
... now scanning damo_v6p2
... now scanning postel3d_v6p2
... now scanning arte_v6p2
... now scanning paravoid_v6p2
... now scanning tel2d_v6p2
... now scanning stbtel_v6p2
... now scanning mumpsvoid_v6p2
... now scanning sisyphe_v6p2
... now scanning bief_v6p2
... now scanning special_v6p2


Building the who calls who tree for HOMERE_TELEMAC2D and dependents
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- created C:\opentelemac\v6p2\wintelg95\bief\bief_v6p2\win7g95s\elapse.o
Fatal Error: While reading module 'bief' found module version 9, expected 8.
... The following command failed for the reason above
g95 -c -fendian=big -ffixed-line-length-132 -I C:\opentelemac\v6p2\wintelg95\tel
emac2d\tel2d_v6p2\win7g95s -I C:\opentelemac\v6p2\wintelg95\sisyphe\sisyphe_v6p2
\win7g95s -I C:\opentelemac\v6p2\wintelg95\tomawac\toma_v6p2\win7g95s -I C:\open
telemac\v6p2\wintelg95\bief\bief_v6p2\win7g95s -I C:\opentelemac\v6p2\wintelg95\
damocles\damo_v6p2\win7g95s -I C:\opentelemac\v6p2\wintelg95\mumpsvoid\mumpsvoid
_v6p2\win7g95s -I C:\opentelemac\v6p2\wintelg95\paravoid\paravoid_v6p2\win7g95s
-I C:\opentelemac\v6p2\wintelg95\special\special_v6p2\win7g95s C:\opentelemac\
v6p2\wintelg95\bief\bief_v6p2\sources\config_code.f

C:\Users\plli>


Any idea of what is still going wrong? If too complex, i will try to switch to gfortran. But it is really strange since I manage to install it without any problem at home...

Any tips regarding the installation of the compiled version?

Thanks in advance,
PL
The administrator has disabled public write access.

Installation of 6.2 on Windows 7 with g95 and Python 12 years 1 week ago #6318

  • sebourban
  • sebourban's Avatar
  • OFFLINE
  • Administrator
  • Principal Scientist
  • Posts: 814
  • Thank you received: 219
This is strange indeed -- your installation of g95 is now OK but the Fortran now fails.

Can you try a clean build, i.e. either replace "update system" by "clean system" in your config file and compile again, or just type compileTELEMAC.py -m "clean system"

Hope this helps.
Sébastien.
The administrator has disabled public write access.
The following user(s) said Thank You: pilou1253

Installation of 6.2 on Windows 7 with g95 and Python 12 years 1 week ago #6319

  • mathieu5roy
  • mathieu5roy's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 60
  • Thank you received: 7
another suggestion here.

I'm attaching my .cfg file that I used a few months ago to install the compiled code v 6.1 under win7 with g95.

# _____ _______________________________
# ____/ TELEMAC Project Definitions /______________________________/
#
[Configurations]
configs: wing95s
#
# _____ ________________________________________
# ____/ windows g95 scalar /_______________________________________/
[wing95s]
#
root: C:\opentelemac\V6P1
version: v6p1
language: 2
modules: update system
options:
#
cmd_obj: g95 -c -fendian=big -ffixed-line-length-132 <mods> <incs> <f95name>
cmd_lib: ar cru <libname> <objs>
cmd_exe: g95 -fendian=big -std=f95 -v -lm -o <exename> <objs> <libs>
#
mods_all: -I <config>
#
sfx_zip: .zip
sfx_lib: .lib
sfx_obj: .o
sfx_mod: .mod
sfx_exe: .exe
#

Change root and version and try to compile again.
The administrator has disabled public write access.
The following user(s) said Thank You: pilou1253

Installation of 6.2 on Windows 7 with g95 and Python 12 years 1 week ago #6325

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi Sébastien and Mathieu,

I am now compiling with "clean system" configuration option, and it has gone further than the last time (so far!).
If problem i will try using Mathieu's systel file, which is indeed a little bit different from the one i found in the svn repository for 6.2.

'-Xlinker --start-group <libs>' at the end of 'cmd_exe' line and:
# also possible val_root: <root>/../validation
val_root: <modpath>/validation
val_rank: all
# also possible val_rank: <3 >7 6
#
at the end of the file.



But I am also interested in having a already compiled version installed (for speed...). What is the mistake i have done ? (see one of my previous posts).

By setting PATH and SYSTELCFG variables and just trying to run runcode.py etc... did not work. Any tips??

Thanks in advance !!

PL
The administrator has disabled public write access.

Installation of 6.2 on Windows 7 with g95 and Python 12 years 1 week ago #6343

  • pilou1253
  • pilou1253's Avatar
  • OFFLINE
  • openTELEMAC Guru
  • Posts: 584
  • Thank you received: 106
Hi!

Unfortunately my compilation did not work using either Sébastien's suggestion (clean system in my systel file) or Mathieu's systel file for 6.1 (I tried both update and clean system options).
I don't know if I can't get any further with g95. I attach the corresponding log, in case you guys find something.

As I said in a previous mail, can the problem come from the fact that both Python 2.5 and 2.7 are installed on my machine ?

I will try with gfortran instead. I looked at the several systel example files available on svn, and the gfortran configuration does not come with a systel file defined for windows. Can it be a problem if I use its configuration for windows ? Anyway, I will figure it quickly... ;)

Thanks for your help,
PL

File Attachment:

File Name: log_compil_clean_system.txt
File Size: 17 KB


File Attachment:

File Name: log_compil_clean_system_mathieu.txt
File Size: 17 KB
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.