You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the current behavior?
In python script, use:
import lib_programname
logName = Path(lib_programname.get_path_executed_script()).stem + '.log'
This works fine from the interpreter.
Now, use PyInstaller to build your application.
In the PyInstaller warn file I see:
missing module named lib_programname - imported by C:\Users\me\PycharmProjects\YouTube Utils\utterance_browser.py (top-level), myUtilities (top-level)
Unsuprisingly, if I run the resulting .exe I get:
ModuleNotFoundError: No module named 'lib_programname'
[21572] Failed to execute script 'comments_browser' due to unhandled exception!
My PyInstaller command line is:
pyinstaller myUtilties.py --clean --noconfirm --collect-data 'lib_programname'
I've also tried creating a .spec file and adding:
hiddenimports=['lib_programname'], which produces the same results as above.
**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
PyInstaller finds lib_programname and allows it to work with it's generated executable.
What is the motivation / use case for changing the behavior?
You can use PyInstaller to generate multiple exes, one for as many separate scripts as you desire. Each of those exe's should log errors to a log file formed from their name. This works great with lib_programname running in the interpreter, just not in the exe's produced by Pyinstaller
Please tell us about your environment:
Release Number of the Repository used : lib_programname 1.1.8
Python Version : 3.9
OS, OS Version : Windows 10
Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow
, gitter, etc)
The text was updated successfully, but these errors were encountered:
**I'm submitting a ... **
Do you want to request a feature or report a bug?
What is the current behavior?
In python script, use:
import lib_programname
logName = Path(lib_programname.get_path_executed_script()).stem + '.log'
This works fine from the interpreter.
Now, use PyInstaller to build your application.
In the PyInstaller warn file I see:
missing module named lib_programname - imported by C:\Users\me\PycharmProjects\YouTube Utils\utterance_browser.py (top-level), myUtilities (top-level)
Unsuprisingly, if I run the resulting .exe I get:
ModuleNotFoundError: No module named 'lib_programname'
[21572] Failed to execute script 'comments_browser' due to unhandled exception!
My PyInstaller command line is:
pyinstaller myUtilties.py --clean --noconfirm --collect-data 'lib_programname'
I've also tried creating a .spec file and adding:
hiddenimports=['lib_programname'], which produces the same results as above.
**If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
PyInstaller finds lib_programname and allows it to work with it's generated executable.
What is the motivation / use case for changing the behavior?
You can use PyInstaller to generate multiple exes, one for as many separate scripts as you desire. Each of those exe's should log errors to a log file formed from their name. This works great with lib_programname running in the interpreter, just not in the exe's produced by Pyinstaller
Please tell us about your environment:
, gitter, etc)
The text was updated successfully, but these errors were encountered: