brentvollebregt / auto-py-to-exe

Converts .py to .exe using a simple graphical interface
MIT License
3.98k stars 680 forks source link

Child process died calling import_library() with args=('pyqtgraph.canvas',) and kwargs={} #465

Closed snowuyl closed 8 months ago

snowuyl commented 8 months ago

Quick Checks

Describe the bug I use auto-py-to-exe to create executable file. But it failed with the following error messages. File "C:\Users\broth\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\PyInstaller\isolated_parent.py", line 307, in call raise SubprocessDiedError( PyInstaller.isolated._parent.SubprocessDiedError: Child process died calling import_library() with args=('pyqtgraph.canvas',) and kwargs={}. Its exit code was 3221225725. Traceback (most recent call last): File "C:\Users\broth\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\gevent_ffi\loop.py", line 270, in python_check_callback def python_check_callback(self, watcher_ptr): # pylint:disable=unused-argument

Expected behavior

auto-py-to-exe can generate executable file successfully.

Your Environment:

github-actions[bot] commented 8 months ago

👋 Hi, just a reminder that if you haven't read the help post yet, give it a read to see if your issue is covered in it and make sure to follow the debugging section.

Also please note, as stated in the README, if your issue is only associated with your application and not auto-py-to-exe itself, please do not create an issue in this repository - instead, comment on the help post, video or create a new discussion.

snowuyl commented 8 months ago

Procedure to reproduce this issue.

  1. Unzipping PyQtGraph.zip to D:\ folder
  2. Launching auto-py-to-exe
  3. Selecting D:\PyQtGraph\main.py
snowuyl commented 8 months ago

PyQtGraph.zip

brentvollebregt commented 8 months ago

That script in the zip uses numpy, PyQt6 and pyqtgraph but I do not see any reproduction steps outlining these. To make this whole process a lot easier, could you follow this template and make sure to add reproduction steps with a minimal reproducible example - you can put the python code in tripple backticks. I imagine this error only occurs when using one of the libraries, not all 3 at once.

snowuyl commented 8 months ago

Thanks for your reply! I can generate main.exe successfully after installing pyqtgraph from https://github.com/pyqtgraph/pyqtgraph master branch.