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

IndexError: string index out of range #117

Open
Daniel-Mietchen opened this issue Jan 5, 2014 · 0 comments
Open

IndexError: string index out of range #117

Daniel-Mietchen opened this issue Jan 5, 2014 · 0 comments

Comments

@Daniel-Mietchen
Copy link
Member

echo 10.1186/1478-811X-11-91 | ./oami_pmc_doi_import ; ./oa-cache clear-database pmc_doi
Input DOIs, delimited by whitespace: Getting PubMed Central IDs for given DOIs … found: 3879092
Downloading “http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pmc&id=3879092”, saving into directory “/home/danielmietchen/.cache/open-access-media-importer/metadata/raw/pmc_doi” …
100% |#########################################################################################################################################################################################################|
/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py:463: SAWarning: Unicode type received non-unicode bind param value.
param.append(processorskey)
“The arrestin-domain containing protein AdcA is a response element to stress”:
1 × /

Checking MIME types …
1 of 1 100% |###################################################################################################################################################################################| Time: 00:00:00
DOI 10.1186/1478-811X-11-91, http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3879092/bin/1478-811X-11-91-S1.mov, source claimed / but is video/quicktime.
/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py:463: SAWarning: Unicode type received non-unicode bind param value.
param.append(processorskey)
Skipping download of http://www.ncbi.nlm.nih.gov/pmc/articles/PMC3879092/bin/1478-811X-11-91-S1.mov.
Skipping conversion of “/home/danielmietchen/.cache/open-access-media-importer/media/raw/pmc_doi/http%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fpmc%2Farticles%2FPMC3879092%2Fbin%2F1478-811X-11-91-S1.mov”, exists at “/home/danielmietchen/.cache/open-access-media-importer/media/refined/pmc_doi/http%3A%2F%2Fwww.ncbi.nlm.nih.gov%2Fpmc%2Farticles%2FPMC3879092%2Fbin%2F1478-811X-11-91-S1.mov.ogg”.
Traceback (most recent call last):
File "./oa-put", line 116, in
license_url, label, caption, title, categories, mimetype)
File "/home/danielmietchen/open-access-media-importer/helpers/template.py", line 96, in page
category = _postprocess_category(category)
File "/home/danielmietchen/open-access-media-importer/helpers/template.py", line 93, in _postprocess_category
return category[0].capitalize() + category[1:]
IndexError: string index out of range
Removing “/home/danielmietchen/.local/share/open-access-media-importer/pmc_doi.sqlite” … done.

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

No branches or pull requests

2 participants