Bug#1001484: sfepy: (autopkgtest) needs update for python3.10: Sequence' from 'collections' is removed

2022-03-24 Thread Anton Gladky
I will do it ASAP

Anton

Am Do., 24. März 2022 um 18:54 Uhr schrieb Stefano Rivera :
>
> Control: tag -1 + pending
>
> I see a commit fixing this in git, just waiting to be uploaded.
> https://salsa.debian.org/science-team/sfepy/-/commit/f6a4f8d2435e8406a629a75ee89891a24631233a
>
> SR
>
> --
> Stefano Rivera
>   http://tumbleweed.org.za/
>   +1 415 683 3272



Bug#1001484: sfepy: (autopkgtest) needs update for python3.10: Sequence' from 'collections' is removed

2022-03-24 Thread Stefano Rivera
Control: tag -1 + pending

I see a commit fixing this in git, just waiting to be uploaded.
https://salsa.debian.org/science-team/sfepy/-/commit/f6a4f8d2435e8406a629a75ee89891a24631233a

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272



Bug#1001484: sfepy: (autopkgtest) needs update for python3.10: Sequence' from 'collections' is removed

2022-03-14 Thread Johannes Schauer Marin Rodrigues
Control: tag -1 + patch

Dear sfepy maintainers,

On Fri, 10 Dec 2021 21:49:08 +0100 Paul Gevers  wrote:
> Currently this regression is blocking the migration of python3-defaults 
> to testing [1]. https://docs.python.org/3/whatsnew/3.10.html lists 
> what's new in Python3.10, it may help to identify what needs to be 
> updated. https://docs.python.org/3.9/library/collections.html says:
> """
> Deprecated since version 3.3, will be removed in version 3.10: Moved 
> Collections Abstract Base Classes to the collections.abc module. For 
> backwards compatibility, they continue to be visible in this module 
> through Python 3.9.
> """
> Time to move on.

you can directly backport this commit from upstream:

https://github.com/sfepy/sfepy/commit/d5d747b46a2d8050d74bbfc91ddf1ebb45749be4

Thanks!

cheers, josch

signature.asc
Description: signature


Bug#1001484: sfepy: (autopkgtest) needs update for python3.10: Sequence' from 'collections' is removed

2021-12-10 Thread Paul Gevers

Source: sfepy
Version: 2020.4-2
Severity: serious
X-Debbugs-CC: debian...@lists.debian.org
Tags: sid bookworm
User: debian...@lists.debian.org
Usertags: needs-update
User: debian-pyt...@lists.debian.org
Usertags: python3.10
Control: affects -1 src:python3-defaults

Dear maintainer(s),

We are in the transition of adding python3.10 to the supported Python 
versions [0]. With a recent upload of python3-defaults the autopkgtest 
of sfepy fails in testing when that autopkgtest is run with the binary 
packages of python3-defaults from unstable. It passes when run with only 
packages from testing. In tabular form:


   passfail
python3-defaults   from testing3.9.8-1
sfepy  from testing2020.4-2
all others from testingfrom testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration of python3-defaults 
to testing [1]. https://docs.python.org/3/whatsnew/3.10.html lists 
what's new in Python3.10, it may help to identify what needs to be 
updated. https://docs.python.org/3.9/library/collections.html says:

"""
Deprecated since version 3.3, will be removed in version 3.10: Moved 
Collections Abstract Base Classes to the collections.abc module. For 
backwards compatibility, they continue to be visible in this module 
through Python 3.9.

"""
Time to move on.

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[0] https://bugs.debian.org/996584
[1] https://qa.debian.org/excuses.php?package=python3-defaults

https://ci.debian.net/data/autopkgtest/testing/amd64/s/sfepy/17446739/log.gz

run: python3.10
Traceback (most recent call last):
  File 
"/tmp/autopkgtest-lxc.r9o8n8_b/downtmp/autopkgtest_tmp/laplace_shifted_periodic.py", 
line 140, in 

sfepy: dimensions: [1. 1.]
sfepy: centre: [0. 0.]
sfepy: shape:  [11 11]
sfepy: generating 121 vertices...
sfepy: ...done
sfepy: generating 100 cells...
sfepy: ...done
sfepy: updating variables...
sfepy: ...done
sfepy: setting up dof connectivities...
sfepy: ...done in 0.00 s
sfepy: lcbc: sper
sfepy: dofs: total 99, free 90, constrained 9, new 0
sfepy:  -> active 90
sfepy: matrix shape: (99, 99)
sfepy: assembling matrix graph...
sfepy: ...done in 0.00 s
sfepy: matrix structural nonzeros: 775 (7.91e-02% fill)
main()
  File 
"/tmp/autopkgtest-lxc.r9o8n8_b/downtmp/autopkgtest_tmp/laplace_shifted_periodic.py", 
line 125, in main

pb, state = run(fe_domain, 1)
  File 
"/tmp/autopkgtest-lxc.r9o8n8_b/downtmp/autopkgtest_tmp/laplace_shifted_periodic.py", 
line 82, in run

state = pb.solve()
  File "/usr/lib/python3/dist-packages/sfepy/discrete/problem.py", line 
1425, in solve

init_fun, prestep_fun, poststep_fun = self.get_tss_functions(
  File "/usr/lib/python3/dist-packages/sfepy/discrete/problem.py", line 
1234, in get_tss_functions

is_save = make_is_save(self.conf.options)
  File "/usr/lib/python3/dist-packages/sfepy/discrete/problem.py", line 
73, in make_is_save

is_save = IsSave(save_times)
  File "/usr/lib/python3/dist-packages/sfepy/discrete/problem.py", line 
42, in __init__

if is_sequence(save_times):
  File "/usr/lib/python3/dist-packages/sfepy/base/base.py", line 1049, 
in is_sequence

from collections import Sequence
ImportError: cannot import name 'Sequence' from 'collections' 
(/usr/lib/python3.10/collections/__init__.py)

autopkgtest [14:19:44]: test build1



OpenPGP_signature
Description: OpenPGP digital signature