Skip to content

”pyinstaller --onefile --windowed“ will cause error,I don't want to build a exe with console! #347

@Gixiv

Description

@Gixiv

Description of the bug

pyinstaller --onefile --windowed demo.py
the error log is say: returned a result with an exception set
pyinstaller --onefile demo.py
everything is ok

why ----windowed cause error?I don't want to build a exe with console!
please help me,thanks

How to reproduce the bug

demo.py :
if directory:
try:
cv = Converter(directory_text_exe.get())
cv.convert(directory + '/output.docx')
cv.close()
except Exception as e:
with open('example.txt', 'w') as file:
file.write(f"{e}")

build cmd:
pyinstaller --onefile --windowed demo.py

PyMuPDF==1.24.14
fonttools==4.55.0
py3.9
window10

pdf2docx version

No response

Operating system

No response

Python version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions