[GH-ISSUE #504] Failed to execute script #393

Closed
opened 2026-02-26 12:21:27 +03:00 by kerem · 2 comments
Owner

Originally created by @huseyincenik on GitHub (Oct 5, 2024).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/504

Quick Checks

  • [ +] I have read the help post
  • [ +] I have searched other issues, looking for an issue similar to mine
  • [ +] I have made sure my application/script runs before trying to package

Describe the bug

Hello, I get an error when I try to convert the streamlit application to exe. I tried hidden import but it did not work.
image

To Reproduce

Steps to reproduce the behavior (install dependencies, do this in the auto-py-to-exe UI):

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error
# If you have example code, please provide a minimal reproducible example:
# https://stackoverflow.com/help/minimal-reproducible-example

print("Hello World")

Expected behavior

Traceback (most recent call last):
File "langchain_fast.py", line 2, in
File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
File "streamlit_init_.py", line 64, in
File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module
File "streamlit\version.py", line 38, in
File "importlib\metadata_init_.py", line 996, in version
File "importlib\metadata_init_.py", line 969, in distribution
File "importlib\metadata_init_.py", line 548, in from_name
importlib.metadata.PackageNotFoundError: No package metadata was found for streamlit

Your Environment:

  • Python version (3.10.14):
  • auto-py-to-exe version (2.44.2):
  • PyInstaller version ( 6.10.0):
  • Eel version (0.17.0):
Originally created by @huseyincenik on GitHub (Oct 5, 2024). Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/504 **Quick Checks** - [ +] I have read the [help post](https://nitratine.net/blog/post/issues-when-using-auto-py-to-exe) - [ +] I have [searched other issues](https://github.com/brentvollebregt/auto-py-to-exe/issues?q=is%3Aissue+), looking for an issue similar to mine - [ +] I have made sure my application/script runs before trying to package **Describe the bug** Hello, I get an error when I try to convert the streamlit application to exe. I tried hidden import but it did not work. ![image](https://github.com/user-attachments/assets/fadc43b7-1c48-4232-a2d7-c4fb020d0828) **To Reproduce** _Steps to reproduce the behavior (install dependencies, do this in the auto-py-to-exe UI):_ 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error ```python # If you have example code, please provide a minimal reproducible example: # https://stackoverflow.com/help/minimal-reproducible-example print("Hello World") ``` **Expected behavior** Traceback (most recent call last): File "langchain_fast.py", line 2, in <module> File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module File "streamlit\__init__.py", line 64, in <module> File "PyInstaller\loader\pyimod02_importers.py", line 378, in exec_module File "streamlit\version.py", line 38, in <module> File "importlib\metadata\__init__.py", line 996, in version File "importlib\metadata\__init__.py", line 969, in distribution File "importlib\metadata\__init__.py", line 548, in from_name importlib.metadata.PackageNotFoundError: No package metadata was found for streamlit **Your Environment:** - Python version (`3.10.14`): - auto-py-to-exe version (`2.44.2`): - PyInstaller version (` 6.10.0`): - Eel version (`0.17.0`):
kerem 2026-02-26 12:21:27 +03:00
  • closed this issue
  • added the
    not-a-bug
    label
Author
Owner

@github-actions[bot] commented on GitHub (Oct 5, 2024):

👋 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.

<!-- gh-comment-id:2395166487 --> @github-actions[bot] commented on GitHub (Oct 5, 2024): 👋 Hi, just a reminder that if you haven't read [the help post](https://nitratine.net/blog/post/issues-when-using-auto-py-to-exe/) yet, give it a read to see if your issue is covered in it and make sure to follow [the debugging section](https://nitratine.net/blog/post/issues-when-using-auto-py-to-exe/#debugging). 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](https://nitratine.net/blog/post/issues-when-using-auto-py-to-exe/), [video](https://youtu.be/OZSZHmWSOeM) or create a [new discussion](https://github.com/brentvollebregt/auto-py-to-exe/discussions).
Author
Owner

@brentvollebregt commented on GitHub (Oct 5, 2024):

Looks like this is an issue with packaging this specific library (streamlit) and not auto-py-to-exe or PyInstaller. I'll move this to a discussion as asked for in CONTRIBUTING.md.

<!-- gh-comment-id:2395202244 --> @brentvollebregt commented on GitHub (Oct 5, 2024): Looks like this is an issue with packaging this specific library (streamlit) and not auto-py-to-exe or PyInstaller. I'll move this to a discussion as asked for in CONTRIBUTING.md.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/auto-py-to-exe#393
No description provided.