Cannot import name 'choplist' from '.utils'

Team, I am using the code and also the Utils.py provisioned in the short course “Preprocessing Unstructured Data for LLM Applications” and recieving an error as cannot import name ‘choplist’ from ‘.utils’

The steps that are followed by the debugger are as below

from unstructured.partition.pdf import partition_pdf
then the cursor goes to
from pdfminer import psparser
then the next step is
from .utils import choplist

this is where the error is populated.

I checked the Utils.py code provisioned in the help tab, however, it does not have any name choplist within it. Please could you help.

1 Like

did you download the .utils?

Hi Deepti…Yes, I downloaded exactly, the one that is available in the course.

1 Like

please share the screenshot of the error you are encountering