- **status**: assigned --> fixed
- **Comment**:
commit b17ac6e07bf13d2f92c41589f77cd132bf306363 (HEAD -> develop,
origin/develop, ticket-3372)
Author: thang.d.nguyen <[email protected]>
Date: Thu May 15 08:00:21 2025 +0700
pyosaf: support python 3.10+ [#3372]
From Python 3.10 and later, several abstract base classes (ABCs)
like Iterable, Iterator, Mapping, Sequence, etc. were fully
removed from the main collections module.
These classes were moved to collections.abc in Python 3.3.
Should adapt it to support on all python version.
---
**[tickets:#3372] pyosaf: import abstract base classes (ABCs) fails on python
3.10+**
**Status:** fixed
**Milestone:** 5.25.04
**Created:** Wed May 14, 2025 12:57 AM UTC by Thang Duc Nguyen
**Last Updated:** Thu May 15, 2025 12:58 AM UTC
**Owner:** Thang Duc Nguyen
**Attachments:**
-
[pyosaf.patch](https://sourceforge.net/p/opensaf/tickets/3372/attachment/pyosaf.patch)
(1.3 kB; application/octet-stream)
The errors looked like
`ImportError: cannot import name 'Iterator' from 'collections'`
It is due to in Python 3.10 and later, several abstract base classes (ABCs) —
like Iterable, Iterator, Mapping, Sequence, etc. — were fully removed from the
main collections module.
These classes were moved to collections.abc in Python 3.3.
Patch attach for reference.
---
Sent from sourceforge.net because [email protected] is
subscribed to https://sourceforge.net/p/opensaf/tickets/
To unsubscribe from further messages, a project admin can change settings at
https://sourceforge.net/p/opensaf/admin/tickets/options. Or, if this is a
mailing list, you can unsubscribe from the mailing list._______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets