vstinner / hachoir

Hachoir is a Python library to view and edit a binary stream field by field
http://hachoir.readthedocs.io/
GNU General Public License v2.0
613 stars 70 forks source link

[Windows 11, Python 3.12.3] hachoir-wx closing after file selection #95

Closed nohype closed 5 months ago

nohype commented 5 months ago

Hi,

thanks for the effort you put into this project!

I'm trying to run hachoir-wx on a Windows 11 machine with Python 3.12.3, in a virtual environment. The pip-installation ran through with no errors and when I start hachoir-wx.exe, the file selection dialog opens. When I select a file though, it immediately closes (no matter which file, what type). No output on stdout/stderr it seems.

Is there a way to trace the issue or perhaps there are known issues on this OS or with this Python version?

// EDIT: I was able to open a handful of files, e.g. executables, but not most of them. Even in the same directory, one might work, the others not. It's not the path, path length or permissions.

Thanks in advance and kind regards

vstinner commented 5 months ago

You can run the command in a terminal and see if you get any output at exit?

nohype commented 5 months ago

Ah I have to apologize. I was told hachoir was able to parse a specific file format out of the box but apparently there's not parser available for it (no surprise, pretty rare format). I didn't check before which I should have. As I understand it (I never used hachoir) there are no facilities to analyze unknown formats so I'll probably have to write a parser first.

So sorry to have spammed you!

Kind regards