cmderdev/cmder

[Bug] Cmder freezes when using Unstructured.io

Cordoncharge83 opened this issue · 4 comments

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.

@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!

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

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!

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')

"