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 with retrieving fastq files with enaGroupGet #61

Closed
chazdm opened this issue Jun 3, 2021 · 3 comments
Closed

Error with retrieving fastq files with enaGroupGet #61

chazdm opened this issue Jun 3, 2021 · 3 comments

Comments

@chazdm
Copy link

chazdm commented Jun 3, 2021

Hello,

I am trying to retrieve the fastq files for Project SRP199470 but end up with error messages as follows

(ena) [dmelloc@arc PRJNA544731]$ enaGroupGet -f fastq SRP199470
Traceback (most recent call last):
File "/home/dmelloc/anaconda3/envs/ena/bin/enaGroupGet.py", line 164, in
if not utils.is_available(accession):
File "/home/dmelloc/anaconda3/envs/ena/bin/utils.py", line 242, in is_available
return (not 'entry is not found' in record.text) and (len(record.getchildren()) > 0)
AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getchildren'

Would really appreciate any assistance to resolve this.

Thank you!

@mikecuoco
Copy link

@chazdm I solved this by downgrading python to 3.8. getchildren() was deprecated in python 3.2 and removed in 3.9 (source)

@chazdm
Copy link
Author

chazdm commented Jul 29, 2021

Thanks for your help @mikecuoco

I downgraded python to 3.8 but still ran into errors.

Traceback (most recent call last):
File "/home/dmelloc/anaconda3/envs/ena/bin/enaDataGet.py", line 89, in
elif not utils.is_available(accession):
File "/home/dmelloc/anaconda3/envs/ena/bin/utils.py", line 240, in is_available
response = urlrequest.urlopen(url)
File "/home/dmelloc/anaconda3/envs/ena/lib/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/home/dmelloc/anaconda3/envs/ena/lib/python3.8/urllib/request.py", line 531, in open
response = meth(req, response)
File "/home/dmelloc/anaconda3/envs/ena/lib/python3.8/urllib/request.py", line 640, in http_response
response = self.parent.error(
File "/home/dmelloc/anaconda3/envs/ena/lib/python3.8/urllib/request.py", line 563, in error
result = self._call_chain(*args)
File "/home/dmelloc/anaconda3/envs/ena/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/home/dmelloc/anaconda3/envs/ena/lib/python3.8/urllib/request.py", line 755, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/home/dmelloc/anaconda3/envs/ena/lib/python3.8/urllib/request.py", line 531, in open
response = meth(req, response)
File "/home/dmelloc/anaconda3/envs/ena/lib/python3.8/urllib/request.py", line 640, in http_response
response = self.parent.error(
File "/home/dmelloc/anaconda3/envs/ena/lib/python3.8/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/home/dmelloc/anaconda3/envs/ena/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/home/dmelloc/anaconda3/envs/ena/lib/python3.8/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400:
ERROR: Something unexpected went wrong please try again.
If problem persists, please contact datasubs@ebi.ac.uk for assistance, with the above error details.

Would you be able to provide any further insight into how I might be able to resolve this?
Thank you!

@Meadowlion
Copy link

Meadowlion commented Oct 27, 2021

I have experienced the same HTTP Error with using a different Project SRP259294 running ubuntu 20.04 using Python 3.8.10.

EDIT:
https://github.com/oligoelemento has a solution that worked for me:
#57 (comment)

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

4 participants