-
Notifications
You must be signed in to change notification settings - Fork 4
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
wikimedia.py
- Errors I encountered
#24
Comments
There was an error in the query. An extra { symbol. Now I get a different error:
|
This looks like a code error from me.
Will debug
…On Fri, Jan 29, 2021 at 10:40 AM ShweataNHegde ***@***.***> wrote:
There was an error in the query. An extra { symbol. Now I get a different
error:
help for Wikimedia routines NYI
req <Response [200]>
Cannot parse {'type': 'uri', 'value': 'http://www.wikidata.org/entity/Q130337'}
Traceback (most recent call last):
File "C:/Users/shweata/dictionary/pythoncode/pyamidict/editor/wikimedia.py", line 234, in <module>
main()
File "C:/Users/shweata/dictionary/pythoncode/pyamidict/editor/wikimedia.py", line 221, in main
df0 = wm.submit_process_sparql(query=TEST_QUERY)
File "C:/Users/shweata/dictionary/pythoncode/pyamidict/editor/wikimedia.py", line 172, in submit_process_sparql
return self.create_data_frame_from_bindings(bindings, colhead_array)
File "C:/Users/shweata/dictionary/pythoncode/pyamidict/editor/wikimedia.py", line 189, in create_data_frame_from_bindings
new_row_dict[colhead] = val
UnboundLocalError: local variable 'val' referenced before assignment
Process finished with exit code 1
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFTCSYXVIX5WLFNG2YJR5TS4KGCRANCNFSM4WYQ4XJA>
.
--
Peter Murray-Rust
Founder ContentMine.org
and
Reader Emeritus in Molecular Informatics
Dept. Of Chemistry, University of Cambridge, CB2 1EW, UK
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I ran
wikimedia.py
from PyCharm. The default query worked fine. However, when I changed the query to something else, I get the following errors:For reference, the query that I input:
The text was updated successfully, but these errors were encountered: