Welcome, Guest
Username: Password: Remember me

TOPIC: Latest f2py(version 1.26) fails to write singature file of api

Latest f2py(version 1.26) fails to write singature file of api 7 months 1 week ago #43444

  • huangziyi2017
  • huangziyi2017's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 2
THE f2py command subprocess, of function "compile_api_f2py" in module "compilation.compil_tools", exits with an error, which is caused by an AssertionError at function "markoutercomma" in numpy module "f2py.crackfortran".

It is found that f2py-1.24.3 will work well.

Specific error infor is:
Traceback (most recent call last):
File "/home/model/scripts/compile_telemac.py", line 142, in <module>
main()
File "/home/model/scripts/compile_telemac.py", line 134, in main
compile_api_files(silent=not options.verbose,
File "/home/model/scripts/compilation/compil_tools.py", line 1001, in compile_api_files
compile_api_f2py('api', api_dir, source_api, skip_source, ld_flags,
File "/home/model/scripts/compilation/compil_tools.py", line 915, in compile_api_f2py
raise TelemacException(\
utils.exceptions.TelemacException: Error during first part of f2py for api 1
Traceback (most recent call last):
File "/usr/local/bin/f2py", line 8, in <module>
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/numpy/f2py/f2py2e.py", line 734, in main
run_main(sys.argv[1:])
File "/usr/local/lib/python3.11/site-packages/numpy/f2py/f2py2e.py", line 462, in run_main
postlist = callcrackfortran(files, options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/numpy/f2py/f2py2e.py", line 363, in callcrackfortran
postlist = crackfortran.crackfortran(files)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/numpy/f2py/crackfortran.py", line 3355, in crackfortran
readfortrancode(files, crackline)
File "/usr/local/lib/python3.11/site-packages/numpy/f2py/crackfortran.py", line 552, in readfortrancode
dowithline(finalline)
File "/usr/local/lib/python3.11/site-packages/numpy/f2py/crackfortran.py", line 858, in crackline
analyzeline(m, pat[1], line)
File "/usr/local/lib/python3.11/site-packages/numpy/f2py/crackfortran.py", line 1300, in analyzeline
for e in markoutercomma(ll).split('@,@'):
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/numpy/f2py/crackfortran.py", line 895, in markoutercomma
assert not f, repr((f, line, l))
AssertionError: (1, ' pos_name = (', ' pos_name = (')
The administrator has disabled public write access.

Latest f2py(version 1.26) fails to write singature file of api 7 months 1 week ago #43445

  • borisb
  • borisb's Avatar
  • OFFLINE
  • Admin
  • Posts: 124
  • Thank you received: 59
Hello,

The error has already been reported: opentelemac.org/index.php/kunena/telapy/...h-numpy-1-24-0#43378

And regarding F2PY 1.24, while the API might compile with it, in fact the generated Python modules are bugged. We're already working on a fix which should be available with the upcoming V8P5 version.
The administrator has disabled public write access.

Latest f2py(version 1.26) fails to write singature file of api 7 months 1 week ago #43446

  • huangziyi2017
  • huangziyi2017's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 2
Thanks Boris.
I've been running api, compiled by f2py-1.24.3, only calling t2d. It's been working without problem, above CentOS 7.9.2009, both x86_64 and aarch64.
The administrator has disabled public write access.
The following user(s) said Thank You: tomsail
Moderators: borisb

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