2 ms·
Testing it out. I'm getting an error after I added my pdfs to the data directory and then ran % python docs2db.py Processing files: 6%
by SamBam 3y ago
Testing it out. I'm getting an error after I added my pdfs to the data directory and then ran
% python docs2db.py
Processing files: 6%
Traceback (most recent call last):
File "[...]/IncarnaMind/docs2db.py", line 179, in process_metadata
file_name = doc[0].metadata["source"].split("/")[-1].split(".")[0]
IndexError: list index out of range
- joeyxiong 3y agoHi, I've pushed the new commit to the main branch. Could you please test it out? If it still has this error, you can check if your doc has relevant metadata. ```` for d in doc: print("metadata:", d.metadata) ``` before file_name = doc[0].metadata["source"].split("/")[-1].split(".")[0]
- SamBam 3y agoOne PDF is causing the issue. When I remove it I get another issue, `No such file or directory: 'database_store/file_names.pkl'`. Opened up an issue in GitHub so as not to pollute this thread.