Skip to content

Via pyinstaller (exe): Unable to convert the Pixel Data as the 'pylibjpeg-libjpeg' plugin is not installed #1717

Answered by BJladika
BJladika asked this question in Q&A
Discussion options

You must be logged in to vote

If you've found a solution for this, please let us know.

Well, I found the solution (or more like, it was found by other people). It requires pyinstaller to clone some metada things from libs, due to them being optional dependency.

So in short you need to use such command

pyinstaller --hiddenimport=pydicom.encoders.gdcm --hiddenimport=pydicom.encoders.pylibjpeg --hiddenimport=pylibjpeg --copy-metadata=pylibjpeg-libjpeg --copy-metadata=numpy --hiddenimport=libjpeg --noconfirm --clean test.py

Where I've mentioned issue: pyinstaller/pyinstaller#7157

Hoping for simplier solution in the bright future. Cheers!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mrbean-bremen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #1712 on October 17, 2022 05:20.