Bug#1073374: getfem: FTBFS: ImportError: cannot import name 'rand' from 'scipy' (/usr/lib/python3/dist-packages/scipy/__init__.py)

2024-06-26 Thread Bo YU

Hi,

On Sun, Jun 16, 2024 at 03:02:37PM +0200, Lucas Nussbaum wrote:

Source: getfem
Version: 5.4.2+dfsg1-3.1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20240615 ftbfs-trixie


I have sent one RFS to debian science mail list:
https://lists.debian.org/debian-science/2024/06/msg00023.html

This should fix the issue.

BR,
Bo


signature.asc
Description: PGP signature


Bug#1073374: getfem: FTBFS: ImportError: cannot import name 'rand' from 'scipy' (/usr/lib/python3/dist-packages/scipy/__init__.py)

2024-06-16 Thread Lucas Nussbaum
Source: getfem
Version: 5.4.2+dfsg1-3.1
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20240615 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[6]: Entering directory '/<>/interface/tests/python'
> PASS: check_asm.py
> PASS: demo_wave.py
> PASS: check_secondary_domain.py
> PASS: check_global_functions.py
> PASS: check_export_vtu.py
> PASS: demo_truss.py
> PASS: check_export.py
> FAIL: check_levelset.py
> PASS: check_mixed_mesh.py
> PASS: demo_laplacian_HHO.py
> PASS: demo_thermo_elasticity_electrical_coupling.py
> PASS: demo_laplacian.py
> PASS: demo_wave_equation.py
> PASS: demo_elasticity_HHO.py
> =
>getfem 5.4.2: interface/tests/python/test-suite.log
> =
> 
> # TOTAL: 14
> # PASS:  13
> # SKIP:  0
> # XFAIL: 0
> # FAIL:  1
> # XPASS: 0
> # ERROR: 0
> 
> .. contents:: :depth: 2
> 
> FAIL: check_levelset.py
> ===
> 
> Traceback (most recent call last):
>   File "/<>/interface/tests/python/./check_levelset.py", line 
> 30, in 
> from scipy import rand
> ImportError: cannot import name 'rand' from 'scipy' 
> (/usr/lib/python3/dist-packages/scipy/__init__.py)
> FAIL check_levelset.py (exit status: 1)
> 
> 
> Testsuite summary for getfem 5.4.2
> 
> # TOTAL: 14
> # PASS:  13
> # SKIP:  0
> # XFAIL: 0
> # FAIL:  1
> # XPASS: 0
> # ERROR: 0
> 
> See interface/tests/python/test-suite.log
> 
> make[6]: *** [Makefile:660: test-suite.log] Error 1
> make[6]: Leaving directory '/<>/interface/tests/python'
> make[5]: *** [Makefile:768: check-TESTS] Error 2
> make[5]: Leaving directory '/<>/interface/tests/python'
> make[4]: *** [Makefile:931: check-am] Error 2
> make[4]: Leaving directory '/<>/interface/tests/python'
> make[3]: *** [Makefile:439: check-recursive] Error 1
> make[3]: Leaving directory '/<>/interface/tests'
> make[2]: *** [Makefile:444: check-recursive] Error 1
> make[2]: Leaving directory '/<>/interface'
> make[1]: *** [Makefile:563: check-recursive] Error 1
> make[1]: Leaving directory '/<>'
> dh_auto_test: error: make -j8 check "TESTSUITEFLAGS=-j8 --verbose" VERBOSE=1 
> returned exit code 2


The full build log is available from:
http://qa-logs.debian.net/2024/06/15/getfem_5.4.2+dfsg1-3.1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240615;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240615&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.