Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to import unstructured.partition.xyz #2888

Open
flaviobrienza opened this issue Apr 14, 2024 · 10 comments
Open

Unable to import unstructured.partition.xyz #2888

flaviobrienza opened this issue Apr 14, 2024 · 10 comments
Labels
bug Something isn't working

Comments

@flaviobrienza
Copy link

I am trying to use the Unstructured library locally using the Python 3.10.2 version.
Everytime I try to import unstructured.partition.something, for example "from unstructured.partition.pdf import partition_pdf" the kernel dies.
I followed all the steps to install the library, but it keeps occurring.
Unstructured version == 0.13.2
Unstructured-inference version == 0.7.25

@flaviobrienza flaviobrienza added the bug Something isn't working label Apr 14, 2024
@scanny
Copy link
Collaborator

scanny commented Apr 14, 2024

Hi @flaviobrienza, I'm unable to reproduce any behavior that meets this description on my machine. We'll need some more specifics:

  • What operating sytem and distro/version you're running
  • A full copy and paste of the entire error message you receive. Also if you can be more descriptive about what you mean when you say "the kernel dies".
  • What procedure you used to install unstructured on your machine.

@flaviobrienza
Copy link
Author

Hello,
I'm currently running Windows 11.
The problem is that I don't receive any message. When I try to make the import, for example
from unstructured.partition.html import partition_html
It assumes two different behaviors, either the cell starts running and never stops or I receive the message "the kernel died" from my Jupyter Notebook.
I followed the Unstructured procedure to install all the dependencies.

@scanny
Copy link
Collaborator

scanny commented Apr 15, 2024

Ah, interesting. So the kernel that's doing the dying is the Jupyter Notebook kernel.

Try running from unstructured.partition.html import partition_html from the Python command prompt and see what it does. That should give a more descriptive error.

@flaviobrienza
Copy link
Author

flaviobrienza commented Apr 15, 2024 via email

@scanny
Copy link
Collaborator

scanny commented Apr 15, 2024

This solution might be worth a try: https://stackoverflow.com/a/76255079/1902513

@flaviobrienza
Copy link
Author

flaviobrienza commented Apr 16, 2024 via email

@flaviobrienza
Copy link
Author

flaviobrienza commented Apr 16, 2024 via email

@mk-devc
Copy link

mk-devc commented Apr 19, 2024

I've experienced the same issue as well.

@flaviobrienza
Copy link
Author

flaviobrienza commented Apr 19, 2024 via email

@mk-devc
Copy link

mk-devc commented Apr 29, 2024

Nope just that I was able to run it on google colab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants