Unstructured-IO / unstructured

Open source libraries and APIs to build custom preprocessing pipelines for labeling, training, or production machine learning pipelines.
https://www.unstructured.io/
Apache License 2.0
7.8k stars 626 forks source link

ImportError: cannot import name 'CompositeElement' from 'unstructured.documents.elements'bug/<short-name> #3087

Closed mahmoudaymo closed 2 months ago

mahmoudaymo commented 2 months ago

Describe the bug When importing chunk_by_title or chunk_elements I get the following error ImportError: cannot import name 'CompositeElement' from 'unstructured.documents.elements'

To Reproduce

from unstructured.chunking.basic import chunk_elements

or 

from unstructured.chunking.title import chunk_by_title

Expected behavior import the functions without errors

Screenshots If applicable, add screenshots to help explain your problem.

unstructured unstructured2

Environment Info

Additional context Add any other context about the problem here.

mahmoudaymo commented 2 months ago

The issue was on on Windows. When installing the library on ubuntu, everything worked find.