Skip to content

TypeError in check -t quicks #31

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

Open
jneubert opened this issue Apr 19, 2017 · 0 comments
Open

TypeError in check -t quicks #31

jneubert opened this issue Apr 19, 2017 · 0 comments

Comments

@jneubert
Copy link
Collaborator

Not sure if "quicks" output format is supposed to survive - if not, the following is not relevant.

The following command gives an TypeError:

$ wdmapper check P227 P2428 -i /opt/repec-ras/var/ras/example2/map/gnd_ras_mapping.test.csv -t quicks
# skipping indirect link 124825109 -> Q? -> psn9
Christian von Hirschhausen (GND PRESENT BUT NOT LINKED) P227    "170947386"
Christian von Hirschhausen (GND PRESENT BUT NOT LINKED) P2428   "phi58"
-Q1082503       P227    "170947386"
Traceback (most recent call last):
  File "/usr/bin/wdmapper", line 11, in <module>
    sys.exit(main())
  File "/usr/lib/python2.7/site-packages/wdmapper/cli.py", line 113, in main
    run(*args)
  File "/usr/lib/python2.7/site-packages/wdmapper/cli.py", line 98, in run
    wdmapper.wdmapper(command, **vars(args))
  File "/usr/lib/python2.7/site-packages/wdmapper/wdmapper.py", line 255, in wdmapper
    args.writer.write_delta(delta)
  File "/usr/lib/python2.7/site-packages/wdmapper/format/quicks.py", line 43, in write_delta
    self.edit_link(link,'-')
  File "/usr/lib/python2.7/site-packages/wdmapper/format/quicks.py", line 23, in edit_link
    self.write_command((qid, prop, '"' + link.target + '"'))
TypeError: coercing to Unicode: need string or buffer, NoneType found

LC_ALL and LANG are set according to #22.

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

1 participant