some problems with log file holding in WinXP

18 views
Skip to first unread message

Step

unread,
Aug 23, 2010, 8:14:37 AM8/23/10
to Fwrap Users
Hello.

I tried to run the tests and all of them fail with similar error like
this:

======================================================================
ERROR: compiling and running old_decl.f90
----------------------------------------------------------------------
Traceback (most recent call last):
File "runtests.py", line 241, in run
self.runTest()
File "runtests.py", line 208, in runTest
self.runCompileTest_distutils()
File "runtests.py", line 217, in runCompileTest_distutils
__import__(self.projname)
ImportError: No module named old_decl_fwrap

So, it seems that it is not able to compile the generated wrappers.
I also tried to wrap single file, and got fillowing output:

D:\work\fwrap-0.1.1\examples\scalars>fwrapc.py source.f90 --build --
name=test_fw --fcompiler=gnu94
Traceback (most recent call last):
File "C:\Python26\Scripts\fwrapc.py", line 37, in <module>
sys.exit(main(use_cmdline=True))
File "C:\Python26\Lib\site-packages\fwrap\main.py", line 605, in
main
shutdown_logging(get_projectpath(out_dir, name))
File "C:\Python26\Lib\site-packages\fwrap\main.py", line 80, in
shutdown_logging
shutil.move(abspath, projectpath)
File "C:\Python26\lib\shutil.py", line 265, in move
os.unlink(src)
WindowsError: [Error 32] Le processus ne peut pas accÚder au fichier
car ce fich
ier est utilisÚ par un autre processus: 'D:\\work\\fwrap-0.1.1\
\examples\\scalar
s\\fwrap.log'

Looks like something holds the log file, etc. But the wrappers were
generated,
and the directory that holds them has following files

_configtest.c
fparser.log
fwrap.log
fwrap_setup.log
fwrap_type_specs.in
setup.py
test_fw.pxd
test_fw.pyx
test_fw_fc.f90
test_fw_fc.h
test_fw_fc.pxd

Any sugestions how this can be fixed? I will be happy to help somehow.

Thanks.

Kurt Smith

unread,
Aug 25, 2010, 12:49:52 PM8/25/10
to fwrap...@googlegroups.com

Hi,

Apologies for the delay.  Thanks for trying out fwrap.

I *really* want to get fwrap working on XP & Windows 7, but I don't have access to a windows box.  Until that happens or someone decides to take up the gauntlet for windows support, the alternative would be for me to develop-by-email with you or someone else, which is a miserably tedious experience for everyone involved.

That being said, and if you want to pursue it, I need the following information, just to cover all the basics:

1) Your cython version:

$ cython -V

2) Your numpy version:

$ python -c "import numpy; print numpy.version.version"

3) Which fortran compiler you're using, its version, and the output of

$ python fwrapc.py --help-fcompiler --fcompiler=<vendor name>

4) Lastly, do the following & send me the zipped output:

$ python runtests.py -vvv --no-cleanup --fcompiler=[vendor name] >runtests.out 2>&1

Kurt

Step

unread,
Aug 26, 2010, 6:56:24 AM8/26/10
to Fwrap Users
Hi.

Here are the results:

> 1) Your cython version:
>
> $ cython -V

Cython version 0.12.1

>
> 2) Your numpy version:
>
> $ python -c "import numpy; print numpy.version.version"

In [1]: import numpy as np

In [2]: np.__version__
Out[2]: '1.3.0'

> 3) Which fortran compiler you're using, its version, and the output of
>
> $ python fwrapc.py --help-fcompiler --fcompiler=<vendor name>

D:\work\fwrap-0.1.1>fwrapc.py --help-fcompiler --fcompiler=gnu95
Gnu95FCompiler instance properties:
archiver = ['D:\\MinGW\\bin\\gfortran.exe', '-cr']
compile_switch = '-c'
compiler_f77 = ['D:\\MinGW\\bin\\gfortran.exe', '-Wall', '-
ffixed-
form', '-fno-second-underscore', '-mno-cygwin', '-
O3', '-
funroll-loops']
compiler_f90 = ['D:\\MinGW\\bin\\gfortran.exe', '-Wall', '-fno-
second-
underscore', '-mno-cygwin', '-O3', '-funroll-
loops']
compiler_fix = ['D:\\MinGW\\bin\\gfortran.exe', '-Wall', '-
ffixed-
form', '-fno-second-underscore', '-mno-cygwin', '-
Wall', '
-fno-second-underscore', '-mno-cygwin', '-O3', '-
funroll-
loops']
libraries = ['gfortran']
library_dirs = ['d:\\mingw\\lib\\gcc\\mingw32\\4.5.0']
linker_exe = ['D:\\MinGW\\bin\\gfortran.exe', '-Wall', '-mno-
cygwin',
'-Wall', '-mno-cygwin']
linker_so = ['D:\\MinGW\\bin\\gfortran.exe', '-Wall', '-mno-
cygwin',
'-Wall', '-mno-cygwin', '-shared']
object_switch = '-o '
ranlib = ['D:\\MinGW\\bin\\gfortran.exe']
version = LooseVersion ('4.5.0')
version_cmd = ['D:\\MinGW\\bin\\gfortran.exe', '--version', '-
mno-
cygwin']
Fortran compilers found:
--fcompiler=gnu95 GNU Fortran 95 compiler (4.5.0)
Compilers available for this platform, but not found:
--fcompiler=absoft Absoft Corp Fortran Compiler
--fcompiler=compaqv DIGITAL or Compaq Visual Fortran Compiler
--fcompiler=g95 G95 Fortran Compiler
--fcompiler=gnu GNU Fortran 77 compiler
--fcompiler=intelev Intel Visual Fortran Compiler for Itanium apps
--fcompiler=intelv Intel Visual Fortran Compiler for 32-bit apps
Compilers not available on this platform:
--fcompiler=compaq Compaq Fortran Compiler
--fcompiler=hpux HP Fortran 90 Compiler
--fcompiler=ibm IBM XL Fortran Compiler
--fcompiler=intel Intel Fortran Compiler for 32-bit apps
--fcompiler=intele Intel Fortran Compiler for Itanium apps
--fcompiler=intelem Intel Fortran Compiler for EM64T-based apps
--fcompiler=lahey Lahey/Fujitsu Fortran 95 Compiler
--fcompiler=mips MIPSpro Fortran Compiler
--fcompiler=nag NAGWare Fortran 95 Compiler
--fcompiler=none Fake Fortran compiler
--fcompiler=pg Portland Group Fortran Compiler
--fcompiler=sun Sun or Forte Fortran 95 Compiler
--fcompiler=vast Pacific-Sierra Research Fortran 90 Compiler
For compiler details, run 'config_fc --verbose' setup command.



> 4) Lastly, do the following & send me the zipped output:
>
> $ python runtests.py -vvv --no-cleanup --fcompiler=[vendor name]
>
> >runtests.out 2>&1

Ok. I will send the output to your mailbox.

Thanks,

Stepan


> Kurt

Step

unread,
Aug 26, 2010, 7:05:49 AM8/26/10
to Fwrap Users
Hi.

Here are the results of the commands:

> 1) Your cython version:
>
> $ cython -V

Cython version 0.12.1


> 2) Your numpy version:
>
> $ python -c "import numpy; print numpy.version.version"

In [1]: import numpy as np

In [2]: np.__version__
Out[2]: '1.3.0'

> 3) Which fortran compiler you're using, its version, and the output of
>
> $ python fwrapc.py --help-fcompiler --fcompiler=<vendor name>

> 4) Lastly, do the following & send me the zipped output:
>
> $ python runtests.py -vvv --no-cleanup --fcompiler=[vendor name]
>
> >runtests.out 2>&1


I have the zipped file to your mailbox.

Regards,

Stepan


Reply all
Reply to author
Forward
0 new messages