DeepWorks icon indicating copy to clipboard operation
DeepWorks copied to clipboard

ValueError: unstructured package not found, ModuleNotFoundError: No module named 'unstructured'

Open tsankar85 opened this issue 2 years ago • 1 comments

Team,

I have followed and install packages available in the project.

openai==0.27.2 chromadb==0.3.26 langchain==0.0.208 tiktoken==0.4.0

While running main.py code , facing an error.

ModuleNotFoundError: No module named 'unstructured'

I have tried to install unstructured thru pip, not successful many other package version dependencies.

Please let me know if any other details.

Error Log :


(prodramp) C:\Users\user1>python C:\prodramp\main.py Traceback (most recent call last): File "C:\Users\user1\anaconda3\envs\prodramp\lib\site-packages\langchain\document_loaders\url.py", line 23, in init import unstructured # noqa:F401 ModuleNotFoundError: No module named 'unstructured'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\prodramp\main.py", line 21, in loader = UnstructuredURLLoader(urls=h2o_ai_wave_urls) File "C:\Users\user1\anaconda3\envs\prodramp\lib\site-packages\langchain\document_loaders\url.py", line 28, in init raise ValueError( ValueError: unstructured package not found, please install it with pip install unstructured

I have ran the this thru pycharm IDE, found same issue as well. ModuleNotFoundError: No module named 'unstructured' ValueError: unstructured package not found, please install it with pip install unstructured

tsankar85 avatar Jun 24 '23 18:06 tsankar85

Did you try installing it in a designated environment like conda install instead of pip install?

anishsoni29 avatar Oct 10 '23 10:10 anishsoni29