Comments (9)
@davidsandbar are you sure the python installation / venv you are using to run auto-py-to-exe is the same installation / venv you have pywin32 etc installed in?
Many thanks for your help - at the end, what make it works was to open conda shell in admin mode, and run auto-py-to-exe from this window - and it worked
from auto-py-to-exe.
Is this working before it is packaged? If so, then try adding win32api
to the --hidden-import input field in the advanced tab
from auto-py-to-exe.
I am not sure exactly what was going on with this but it is building now. I am not using any --hidden-import's. I did uninstall everything pywin32 related. The only pip installed that appears to be win32 related is pywin32-ctypes
. I wish I had a better explanation for what fixed it.
from auto-py-to-exe.
win32api is part of the pywin32 package so it must have been getting added. This is handled by PyInstaller; unfortunately I cannot explain why it would have been added if you didn't use it.
from auto-py-to-exe.
Is this working before it is packaged? If so, then try adding
win32api
to the --hidden-import input field in the advanced tab
I had the same problem in my exe file when converter from python code. But i didn't understand your answer '--hidden-import input field in the advance tab'. Can you please elaborate and help me solving my error.
from auto-py-to-exe.
The UI has an Advanced
header. If you click on that, it will expand the body. There is an input by --hidden-import
where you can put the import.
Please open a new issue if you are reporting an issue.
from auto-py-to-exe.
I had this same issue, but uninstalling and reinstalling didn't fix it for me. To fix this, I added the --hidden-import "pywin32"
flag and it worked!
from auto-py-to-exe.
I had the same issue, I've tried:
- uninstall and reinstall everything which is pywin32, win32com related
- Added on hidden-import pywin32, win32com, pypiwin32, pywintypes
- Added in the path envs/xx/Lib/site-packages
- Added also in Additional files
- Even added a dll --add binary (saw in another forum) Lib/site-packages/pywin32_system32/pythoncom39.dll
Still not working! I don't know what to do! Any idea please?
Error :
ModuleNotFoundError: No module named 'win32api'
[49272] Failed to execute script 'pyi_rth_win32comgenpy' due to unhandled exception!
from auto-py-to-exe.
@davidsandbar are you sure the python installation / venv you are using to run auto-py-to-exe is the same installation / venv you have pywin32 etc installed in?
from auto-py-to-exe.
Related Issues (20)
- Installed auto-py-to-exe but it doesn't runs the ui HOT 5
- data include skips empty folders HOT 6
- WHERE IS THE FUK!GG EXE FILE YOU SMELLY NERDSSS!!!! HOT 9
- Child process died calling import_library() with args=('pyqtgraph.canvas',) and kwargs={} HOT 5
- Admin only GUI appearance HOT 10
- Pyinstaller Version Control HOT 2
- Pyinstaller 5.X.X is better? HOT 7
- auto-py-to-exe and configparser issue HOT 8
- Bug after trying to launch HOT 3
- Clicking the select file button will freeze on macOS 14.4 arm64 HOT 13
- Warning coloring problem HOT 3
- Unused models in the application HOT 3
- The numpy.array_api submodule is still experimental HOT 4
- just gave me a virus when compileing HOT 2
- Script requiring input HOT 17
- symbols-images into pushbutton auto-py-to-exe HOT 5
- File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\site-packages\gevent\threadpool.py", line 173, in __run_task thread_result.set(func(*args, **kwargs)) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa1 in position 3: invalid start byte HOT 4
- Relative Paths aren't resolved until in the temp directory HOT 5
- it loading all the requirements rather using venv requirements HOT 2
- how can we change the running command ? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auto-py-to-exe.