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

Error during SPADES #76

Closed
Unaimend opened this issue Mar 3, 2023 · 1 comment
Closed

Error during SPADES #76

Unaimend opened this issue Mar 3, 2023 · 1 comment

Comments

@Unaimend
Copy link

Unaimend commented Mar 3, 2023

Hello OPERA-MS team,
After installing OPERA-MS like specified in
#48

I get the following error

(ins)(operams) [sukem127@caucluster1 intermediate_files]$ cat spades.err 
Traceback (most recent call last):
  File "/zfshome/sukem127/git_clones/OPERA-MS//tools_opera_ms//SPAdes-3.13.0-Linux/bin//spades.py", line 1093, in <module>
    main(sys.argv)
  File "/zfshome/sukem127/git_clones/OPERA-MS//tools_opera_ms//SPAdes-3.13.0-Linux/bin//spades.py", line 714, in main
    print_used_values(cfg, log)
  File "/zfshome/sukem127/git_clones/OPERA-MS//tools_opera_ms//SPAdes-3.13.0-Linux/bin//spades.py", line 110, in print_used_values
    dataset_data = pyyaml.load(open(cfg["dataset"].yaml_filename, 'r'))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/zfshome/sukem127/git_clones/OPERA-MS/tools_opera_ms/SPAdes-3.13.0-Linux/share/spades/pyyaml3/__init__.py", line 72, in load
    return loader.get_single_data()
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/zfshome/sukem127/git_clones/OPERA-MS/tools_opera_ms/SPAdes-3.13.0-Linux/share/spades/pyyaml3/constructor.py", line 37, in get_single_data
    return self.construct_document(node)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/zfshome/sukem127/git_clones/OPERA-MS/tools_opera_ms/SPAdes-3.13.0-Linux/share/spades/pyyaml3/constructor.py", line 46, in construct_document
    for dummy in generator:
  File "/zfshome/sukem127/git_clones/OPERA-MS/tools_opera_ms/SPAdes-3.13.0-Linux/share/spades/pyyaml3/constructor.py", line 398, in construct_yaml_map
    value = self.construct_mapping(node)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/zfshome/sukem127/git_clones/OPERA-MS/tools_opera_ms/SPAdes-3.13.0-Linux/share/spades/pyyaml3/constructor.py", line 204, in construct_mapping
    return super().construct_mapping(node, deep=deep)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/zfshome/sukem127/git_clones/OPERA-MS/tools_opera_ms/SPAdes-3.13.0-Linux/share/spades/pyyaml3/constructor.py", line 126, in construct_mapping
    if not isinstance(key, collections.Hashable):
                           ^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'collections' has no attribute 'Hashable'

Related issue
ablab/spades#863

The problem is that you are using an older version of spades
Quickfix seems to be to just downgrade your python version to 3.9

@jsgounot
Copy link
Contributor

jsgounot commented Mar 6, 2023

Hi,

good catch, I guess they upgraded default python version since I made this comment.
Thank you!

JS

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