[GH-ISSUE #357] Tensorflow error when executing #295

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

Originally created by @jsgaston on GitHub (Jan 30, 2023).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/357

Originally assigned to: @jsgaston on GitHub.

Quick Checks

  • I have read/searched in 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
The exe doesnt run (gives an error with Tensorflow module)

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error
import numpy as np
import pandas as pd
import tensorflow as tf
from keras.models import *
from keras.layers import *
print('Tensorflow version: {}'.format(tf.__version__))

import matplotlib.pyplot as plt
#plt.style.use('seaborn')

import warnings
warnings.filterwarnings('ignore')

import yfinance as yf
import datetime as dt

os.system("pause")

Expected behavior
No error should appear

Screenshots (optional)
If applicable, add screenshots to help explain your problem.

Your Environment:

  • Python version 3.9
  • auto-py-to-exe version (pip show auto-py-to-exe): 2.28.0
  • PyInstaller version (pip show pyinstaller): 5.7.0
  • Eel version (pip show eel): 22.3.1

Additional context (optional)
callected all modules

Originally created by @jsgaston on GitHub (Jan 30, 2023). Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/357 Originally assigned to: @jsgaston on GitHub. **Quick Checks** - [x] I have read/searched in the [help post](https://nitratine.net/blog/post/issues-when-using-auto-py-to-exe) - [x] I have [searched other issues](https://github.com/brentvollebregt/auto-py-to-exe/issues?q=is%3Aissue+), looking for an issue similar to mine - [x] I have made sure my application/script runs before trying to package **Describe the bug** The exe doesnt run (gives an error with Tensorflow module) **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error ```python import numpy as np import pandas as pd import tensorflow as tf from keras.models import * from keras.layers import * print('Tensorflow version: {}'.format(tf.__version__)) import matplotlib.pyplot as plt #plt.style.use('seaborn') import warnings warnings.filterwarnings('ignore') import yfinance as yf import datetime as dt os.system("pause") ``` **Expected behavior** No error should appear **Screenshots (optional)** If applicable, add screenshots to help explain your problem. **Your Environment:** - Python version 3.9 - auto-py-to-exe version (`pip show auto-py-to-exe`): 2.28.0 - PyInstaller version (`pip show pyinstaller`): 5.7.0 - Eel version (`pip show eel`): 22.3.1 **Additional context (optional)** callected all modules
kerem 2026-02-26 12:21:07 +03:00
Author
Owner

@brentvollebregt commented on GitHub (Jan 30, 2023):

You haven't said what the error is - at the moment this is pretty much "I have an error - run the code and find out".

Also:

  • Please provide a minimal reproducible example - it looks like there is more than what is needed in there.
  • You haven't filled out the reproduction steps.
  • Have you read the help post and completed the other quick checks? You didn't tick them.
<!-- gh-comment-id:1409176735 --> @brentvollebregt commented on GitHub (Jan 30, 2023): You haven't said what the error is - at the moment this is pretty much "I have an error - run the code and find out". Also: - Please provide a minimal reproducible example - it looks like there is more than what is needed in there. - You haven't filled out the reproduction steps. - Have you read the help post and completed the other quick checks? You didn't tick them.
Author
Owner

@jsgaston commented on GitHub (Jan 30, 2023):

the example code is sufficient to see the error with tensorflow when running execute.

I don't understand the reproduction steps, just add file to autopy, and try make executable, it does, but the error is in the executable.

Trya those keras and tf, to see there's an error in the exe.... and don't know how to fix it.

<!-- gh-comment-id:1409219864 --> @jsgaston commented on GitHub (Jan 30, 2023): the example code is sufficient to see the error with tensorflow when running execute. I don't understand the reproduction steps, just add file to autopy, and try make executable, it does, but the error is in the executable. Trya those keras and tf, to see there's an error in the exe.... and don't know how to fix it.
Author
Owner

@brentvollebregt commented on GitHub (Jan 31, 2023):

the example code is sufficient to see the error with tensorflow when running execute.

Sufficient code is not what I'm looking for, we need a minimal reproducible example to potentially identify the library that is causing the issue - are things like warnings and datetime really needed?

Also, your description of the error still says "The exe doesnt run (gives an error with Tensorflow module)" - can you please supply the error you are getting?

<!-- gh-comment-id:1409778310 --> @brentvollebregt commented on GitHub (Jan 31, 2023): > the example code is sufficient to see the error with tensorflow when running execute. Sufficient code is not what I'm looking for, we need a minimal reproducible example to potentially identify the library that is causing the issue - are things like `warnings` and `datetime` really needed? Also, your description of the error still says "The exe doesnt run (gives an error with Tensorflow module)" - can you please supply the error you are getting?
Author
Owner

@github-actions[bot] commented on GitHub (Mar 3, 2023):

This issue is stale because it has been open for 60 days with no activity. Remove stale label or comment on this issue or it will be closed in 5 days.

<!-- gh-comment-id:1452892033 --> @github-actions[bot] commented on GitHub (Mar 3, 2023): This issue is stale because it has been open for 60 days with no activity. Remove stale label or comment on this issue or it will be closed in 5 days.
Author
Owner

@github-actions[bot] commented on GitHub (Mar 9, 2023):

Closing issue due to no activity in more than 60 days.

<!-- gh-comment-id:1461114744 --> @github-actions[bot] commented on GitHub (Mar 9, 2023): Closing issue due to no activity in more than 60 days.
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#295
No description provided.