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

dict object has no attribute 'has key' #13

Open
patrickeboada opened this issue Oct 11, 2022 · 1 comment
Open

dict object has no attribute 'has key' #13

patrickeboada opened this issue Oct 11, 2022 · 1 comment

Comments

@patrickeboada
Copy link

Hi Damien,

I really appreciate your small rna seq workflow. I am trying to test it for a paired small rna set to bulk rna set.

I am running into an error when I initialize the program as per your YouTube video / tutorial webpage

(RNAseqSTAR) patrickboada@patrickboada smallrna % smallrnaseq -c default.conf
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/bin/smallrnaseq", line 8, in
sys.exit(main())
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/smallrnaseq/app.py", line 560, in main
config.write_default_config(conffile, defaults=config.baseoptions)
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/smallrnaseq/config.py", line 60, in write_default_config
cp = create_config_parser_from_dict(defaults, ['base','novel','aligner','de'])
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/smallrnaseq/config.py", line 71, in create_config_parser_from_dict
if not data.has_key(s):
AttributeError: 'dict' object has no attribute 'has_key'

Have you run into this error before?

Best,
Patrick

@dmnfarrell
Copy link
Owner

I think Python 3 doesn't support has_key now. I've updated it but not tested the change. You'd have to update via github.

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