Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'collections' has no attribute 'Hashable' #78

Open
Flyroxx opened this issue Mar 3, 2024 · 1 comment
Open

Comments

@Flyroxx
Copy link

Flyroxx commented Mar 3, 2024

Tried this command : az -n 1 -d 2020-01-01: -s :5000000 -m play.google.com
but i keep getting the error "AttributeError: module 'collections' has no attribute 'Hashable'".
Full log of the error:

Traceback (most recent call last):
File "/home/yahia/.local/bin/az", line 8, in
sys.exit(run())
File "/home/yahia/.local/lib/python3.10/site-packages/click/core.py", line 722, in call
return self.main(*args, **kwargs)
File "/home/yahia/.local/lib/python3.10/site-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/yahia/.local/lib/python3.10/site-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/yahia/.local/lib/python3.10/site-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/yahia/.local/lib/python3.10/site-packages/modules/main.py", line 49, in run
logging_util.setup_logging()
File "/home/yahia/.local/lib/python3.10/site-packages/modules/logging_util.py", line 9, in setup_logging
logging.config.dictConfig(yaml.safe_load(f.read()))
File "/home/yahia/.local/lib/python3.10/site-packages/yaml/init.py", line 94, in safe_load
return load(stream, Loader=SafeLoader)
File "/home/yahia/.local/lib/python3.10/site-packages/yaml/init.py", line 73, in load
return loader.get_single_data()
File "/home/yahia/.local/lib/python3.10/site-packages/yaml/constructor.py", line 37, in get_single_data
return self.construct_document(node)
File "/home/yahia/.local/lib/python3.10/site-packages/yaml/constructor.py", line 46, in construct_document
for dummy in generator:
File "/home/yahia/.local/lib/python3.10/site-packages/yaml/constructor.py", line 398, in construct_yaml_map
value = self.construct_mapping(node)
File "/home/yahia/.local/lib/python3.10/site-packages/yaml/constructor.py", line 204, in construct_mapping
return super().construct_mapping(node, deep=deep)
File "/home/yahia/.local/lib/python3.10/site-packages/yaml/constructor.py", line 126, in construct_mapping
if not isinstance(key, collections.Hashable):
AttributeError: module 'collections' has no attribute 'Hashable'

@embeddinglayer
Copy link

pip install --upgrade PyYaml

Upgrade your PyYaml version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants