-
|
When my pyinstaller app starts it prints the warning bellow but when I run it via python (no pyinstaller) it doesn't. It seems that pyinstaller itself pulls this deprecation error (see links below). Any suggestion on how to suppress it? It seems that pyinstaller itself is causes this warning. Here is uses requires and import altgraph: Line 64 in 5369507 And here altgraph imports pkg_resources: -------- Additional Info----------- My pyinstaller config file: The pyinstaller build workflow: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Try adding |
Beta Was this translation helpful? Give feedback.
-
|
Thanks @rokm, I add it to the .spec file and the warning is gone. Haven't notice an issue with my app yet. |
Beta Was this translation helpful? Give feedback.
-
|
@rokm Adding the Thank you for sharing! |
Beta Was this translation helpful? Give feedback.
Try adding
--exclude-module pkg_resourcesto your PyInstaller command - that should prevent the package (and the run-time hook for it) from being collected. If your unfrozen application does not trigger the deprecation warning, chances are that the package is not really used in any other place than in our run-time hook.