<type 'exceptions.SyntaxError'> | Python 2.7.13: /usr/bin/python Thu Jan 9 13:56:56 2025 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/var/www/sites/tools/export/export.py in |
107 t.encode("utf-8")) |
108 |
=> 109 resp = eval( urllib.urlopen(q).read() ) |
110 if ( resp['response']['numFound'] > 0 ): |
111 #print '<h/>%s (%d)</h2>' % (pubType[t].encode("utf-8"), \ |
resp = {'response': {'docs': [], 'numFound': 0, 'start': 0}, 'responseHeader': {'QTime': 15, 'params': {'q': 'ss_state:A AND sm_contentmodel:"boreal-system:Re...search and econometrics"\r\n AND sm_type:"Preprint"', 'qt': 'standard', 'rows': '999999', 'sort': '', 'start': '0', 'wt': 'python'}, 'status': 0}}, builtin eval = <built-in function eval>, urllib = <module 'urllib' from '/usr/lib/python2.7/urllib.pyc'>, urllib.urlopen = <function urlopen>, q = 'https://dial.uclouvain.be/solr/repository/select...0A%20AND%20sm_type%3A%22Rapport%20%28Report%29%22', ).read undefined |
<type 'exceptions.SyntaxError'>: invalid syntax (<string>, line 1)
args =
('invalid syntax', ('<string>', 1, 1, '<html>\n'))
filename =
'<string>'
lineno =
1
message =
''
msg =
'invalid syntax'
offset =
1
print_file_and_line =
None
text =
'<html>\n'