Skip to content

Exception there in main.py #2

Description

@arima-sambunath

The Idea of pdf to xml very impressive but one exception there when run this code at python2/3

Traceback (most recent call last):
File "pdf2xml.py", line 563, in
main(sys.argv)
File "pdf2xml.py", line 90, in main
tree = make_xml(objs,n,tree)
File "pdf2xml.py", line 511, in make_xml
xml = gen_xml(group_by(regobjs,n),n,xml)
File "pdf2xml.py", line 421, in group_by
for p in concave( sort_by_font (find_tables(objs)[0], 0 )[0],50,100)[0]:
File "pdf2xml.py", line 206, in concave
tmp.append(graph.nodes()[i])
File "/home/sambhu/env-2demo/local/lib/python2.7/site-packages/networkx/classes/reportviews.py", line 178, in getitem
return self._nodes[n]
KeyError: 8

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions