-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Description
When importing the 'xtuml' module, the 'tools' module gets imported and there is an exception in the import of that module related to the 'collections.abc' module:
To Reproduce
Steps to reproduce the behavior:
- Create a script "test.py" containing a single line "import xtuml"
- Run the script: python test.py
- See the following output:
Traceback (most recent call last):
File "/Users/levi/git/plus2json/test2.py", line 1, in <module>
import xtuml
File "/Users/levi/.pyenv/versions/3.10.10/lib/python3.10/site-packages/xtuml/__init__.py", line 24, in <module>
from .tools import IdGenerator
File "/Users/levi/.pyenv/versions/3.10.10/lib/python3.10/site-packages/xtuml/tools.py", line 131, in <module>
class OrderedSet(collectionsAbc.MutableSet):
AttributeError: module 'collections' has no attribute 'MutableSet'
Environment (please complete the following information):
- OS: macOS Ventura
- Python version: 3.10.10
- pyxtuml version: 2.3.1
Additional context
I found this python issue: https://bugs.python.org/issue45776.
The problem is that in tools.py, the "collections.abc" module is not being explicitly imported.
Metadata
Metadata
Assignees
Labels
No labels