Skip to content

initial run, key error #1

@bsenftner

Description

@bsenftner

Hi, I tried downloading the repo and following the usage instructions.
I get:

File "/home/bsenftner/PageIndex/utils.py", line 498, in convert_physical_index_to_int
if isinstance(data[i]['physical_index'], str):
KeyError: 'physical_index'

after this output:

Parsing PDF...
start find_toc_pages
toc found
start detect_page_index
start find_toc_pages
index not found
process_toc_no_page_numbers
start_index: 1
start toc_transformer
divide page_list to groups 2

I gave page_index a 53 page PDF that is 4 software white papers pasted together. (All on machine learning.)

I did not see any instruction for which Python version, and I happen to have an active project using 3.9, so I created a conda environment for PageIndex that is Python 3.9. Do I need a later version?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions