-
Notifications
You must be signed in to change notification settings - Fork 139
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' (conds ainstalaltion with py 10) #873
Comments
Thanks, dup of #863 |
resolve this error |
I am a novel user of Spades. I solved the error by modifying a python script: Edited file: ... /share/spades/pyyaml3/constructor.py Code is: Reference Source: |
MattiasWilm your response fixed my issue with AttributeError, thanks. |
This issue was fixed in SPAdes 3.15.4 |
I love you :) |
No need to modify anything. The fix is included into the latest SPAdes 3.15.4 release |
Hi asl, |
@CalJMarsh As it was stated above, the fix is included in SPAdes 3.15.4 release. On all platforms Mac included. Check SPAdes manual (https://cab.spbu.ru/files/release3.15.4/manual.html#sec2) for installation guide |
I got the same error but am using the spades 3.15.5 |
@dhiru16 Will you please open a new issue attaching all the files requested? |
Description of bug
error reading yaml file pyyaml3 due to python 3.10 mist likely.
AttributeError: module 'collections' has no attribute 'Hashable'
spades.log
System information:
SPAdes version: 3.15.3
Python version: 3.10.0
OS: Linux-5.4.104+-x86_64-with-glibc2.27
Output dir: /content/WD/sample2/assembly
Mode: ONLY assembling (without read error correction)
Debug mode is turned OFF
Dataset parameters:
Metagenomic mode
Reads:
Traceback (most recent call last):
File "/content/databases/conda_envs/91fde30436cb83f9107a310d5f69819a/bin/spades.py", line 659, in
main(sys.argv)
File "/content/databases/conda_envs/91fde30436cb83f9107a310d5f69819a/bin/spades.py", line 599, in main
print_params(log, log_filename, command_line, args, cfg)
File "/content/databases/conda_envs/91fde30436cb83f9107a310d5f69819a/bin/spades.py", line 327, in print_params
print_used_values(cfg, log)
File "/content/databases/conda_envs/91fde30436cb83f9107a310d5f69819a/bin/spades.py", line 117, in print_used_values
dataset_data = pyyaml.load(open(cfg["dataset"].yaml_filename))
File "/content/databases/conda_envs/91fde30436cb83f9107a310d5f69819a/share/spades/pyyaml3/init.py", line 72, in load
return loader.get_single_data()
File "/content/databases/conda_envs/91fde30436cb83f9107a310d5f69819a/share/spades/pyyaml3/constructor.py", line 37, in get_single_data
return self.construct_document(node)
File "/content/databases/conda_envs/91fde30436cb83f9107a310d5f69819a/share/spades/pyyaml3/constructor.py", line 46, in construct_document
for dummy in generator:
File "/content/databases/conda_envs/91fde30436cb83f9107a310d5f69819a/share/spades/pyyaml3/constructor.py", line 398, in construct_yaml_map
value = self.construct_mapping(node)
File "/content/databases/conda_envs/91fde30436cb83f9107a310d5f69819a/share/spades/pyyaml3/constructor.py", line 204, in construct_mapping
return super().construct_mapping(node, deep=deep)
File "/content/databases/conda_envs/91fde30436cb83f9107a310d5f69819a/share/spades/pyyaml3/constructor.py", line 126, in construct_mapping
if not isinstance(key, collections.Hashable):
AttributeError: module 'collections' has no attribute 'Hashable'
params.txt
unimportant
SPAdes version
3.15.3
Operating System
google colab
Python Version
3.10
Method of SPAdes installation
mamba
No errors reported in spades.log
The text was updated successfully, but these errors were encountered: