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

[Bug] Cmder freezes when using Unstructured.io #2954

Open
3 of 4 tasks
Cordoncharge83 opened this issue Jul 3, 2024 · 4 comments
Open
3 of 4 tasks

[Bug] Cmder freezes when using Unstructured.io #2954

Cordoncharge83 opened this issue Jul 3, 2024 · 4 comments

Comments

@Cordoncharge83
Copy link

Cordoncharge83 commented Jul 3, 2024

Version Information

Cmder version: 1.3.25
Operating system: Windows

Cmder Edition

Cmder Full (with Git)

Description of the issue

So i am working with python on a RAG project, and I am testing the Unstructured.io library. However, it seems that whenever i try launching any python file that contains the following import : "from unstructured.partition.pdf import partition_pdf" (or any other partition function really) via the cmder console, it just freezes. I dont get the result, nor an error, I just keep staring at a blank space

How to reproduce

  1. Download the instructured library : pip install unstructured["all-docs"]
  2. create a new .py file containing any simple print and import any partition function from unstructured ( from unstructured.partition.pdf import partition_pdf for example)
  3. execute the python file in cmder
  4. Any code written before the import will be executed, but once you reach the import, the whole thing freezes

Additional context

No response

Checklist

  • I have read the documentation.
  • I have searched for similar issues and found none that describe my issue.
  • I have reproduced the issue on the latest version of Cmder.
  • I am certain my issues are not related to ConEmu, Clink, or other third-party tools that Cmder uses.
@DRSDavidSoft
Copy link
Contributor

@Cordoncharge83 Hi there, and thanks for reaching out.

First and foremost, you need to run your code with the plain cmd.exe or Windows Terminal (without the involvement of Cmder) to see if the behavior is different. It may be that the issue is not related to Cmder at all.

You didn't specify which version of Windows are you using, 7, 10, 11, etc. Please specify the full version.

Additionally, please create a .zip file that includes both the python code and the requiremens.txt and attach it here. This is required for repro purposes, as the version specified in the requirements.txt will match on both machines. Here's some quick information.

Also, please specify your Python edition and version, for example, 3.8, 3.9, 3.10, 3.11, etc. We need to isolate the issue.

Lastly, I doubt that Cmder and its terminal (ConEmu) are the cause of this, if you run the code in other terminals and it also freezes then you can confirm that the problem is related to something else. However, if somehow the code runs fine and gives the intended output on other terminals, then we will investigate and hopefully solve the issue.

Good luck!

@Cordoncharge83
Copy link
Author

Hello,
sorry for the missing information. I am on windows 11, i'm using a virtual environment with python 3.11
Also, my code works just fine when i run it through windows cmd or even the terminal inside vs code.
The requirements.txt file that i have is kind of big because i'm working with so many other libraries, do you still want it ?
Thank you in advance

@DRSDavidSoft
Copy link
Contributor

In that case, please create a new virtualenv for testing purposes and try recreation the problem with minimum pip packages, that would be a huge help to identify the issue. Thanks!

@Cordoncharge83
Copy link
Author

hello, here is the req file
requirements.txt
i couldn't upload the .py file, but it's like this : "

print('Hello this is the first sentence')

from unstructured.partition.pdf import partition_pdf

print('Hello this is the second sentence')

"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants