You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from intermine.webservice import Service
service = Service("https://phytozome.jgi.doe.gov/phytomine/service")
query=service.new_query()
query.select("*") query.add_constraint("Gene","LOOKUP","AT5G67180")
this code works fine. but if i wrote using wildcard,like,
query.add_constraint("Gene","LOOKUP","*5G67180")
the error comes up,
Traceback (most recent call last):
File "/Users/myang/Ananconda/anaconda3/lib/python3.7/site-packages/intermine/results.py", line 640, in open
return urlopen(req)
File "/Users/myang/Ananconda/anaconda3/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/Users/myang/Ananconda/anaconda3/lib/python3.7/urllib/request.py", line 531, in open
response = meth(req, response)
File "/Users/myang/Ananconda/anaconda3/lib/python3.7/urllib/request.py", line 641, in http_response
'http', request, response, code, msg, hdrs)
File "/Users/myang/Ananconda/anaconda3/lib/python3.7/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/Users/myang/Ananconda/anaconda3/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/Users/myang/Ananconda/anaconda3/lib/python3.7/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 500: Internal Server Error
Could anyone help to fix it? thanks a lot.
The text was updated successfully, but these errors were encountered:
My code is like this:
from intermine.webservice import Service
service = Service("https://phytozome.jgi.doe.gov/phytomine/service")
query=service.new_query()
query.select("*")
query.add_constraint("Gene","LOOKUP","AT5G67180")
this code works fine. but if i wrote using wildcard,like,
query.add_constraint("Gene","LOOKUP","*5G67180")
the error comes up,
Traceback (most recent call last):
File "/Users/myang/Ananconda/anaconda3/lib/python3.7/site-packages/intermine/results.py", line 640, in open
return urlopen(req)
File "/Users/myang/Ananconda/anaconda3/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/Users/myang/Ananconda/anaconda3/lib/python3.7/urllib/request.py", line 531, in open
response = meth(req, response)
File "/Users/myang/Ananconda/anaconda3/lib/python3.7/urllib/request.py", line 641, in http_response
'http', request, response, code, msg, hdrs)
File "/Users/myang/Ananconda/anaconda3/lib/python3.7/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/Users/myang/Ananconda/anaconda3/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/Users/myang/Ananconda/anaconda3/lib/python3.7/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 500: Internal Server Error
Could anyone help to fix it? thanks a lot.
The text was updated successfully, but these errors were encountered: