You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please be wary of collections deprecation in python 3.9, I've been hit by this. I got the error using python 3.11:
❯ ./deploy.sh
Traceback (most recent call last):
File "/home/dim/.local/bin/docker-sdp", line 4, in <module>
deployer.main()
File "/home/dim/.local/lib/python3.11/site-packages/docker_stack_deploy/cli/deployer.py", line 281, in main
docker_stack_deploy()
File "/home/dim/.local/lib/python3.11/site-packages/docker_stack_deploy/cli/deployer.py", line 204, in docker_stack_deploy
augmented_services = augment_services(
^^^^^^^^^^^^^^^^^
File "/home/dim/.local/lib/python3.11/site-packages/docker_stack_deploy/cli/deployer.py", line 112, in augment_services
if not isinstance(elem, collections.Mapping):
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'collections' has no attribute 'Mapping'
Please be wary of
collections
deprecation in python 3.9, I've been hit by this. I got the error using python 3.11:This is the deprecation page: https://docs.python.org/3.9/library/collections.html#module-collections
For now, I just change
import collections
toimport collections.abc as collections
in this line:docker-stack-deploy/docker_stack_deploy/cli/deployer.py
Line 9 in 09a2d17
The text was updated successfully, but these errors were encountered: