Git Product home page Git Product logo

Comments (9)

davidsandbar avatar davidsandbar commented on September 12, 2024 1

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

brentvollebregt avatar brentvollebregt commented on September 12, 2024

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.

nauticalcoder avatar nauticalcoder commented on September 12, 2024

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.

brentvollebregt avatar brentvollebregt commented on September 12, 2024

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.

ronankibharath98 avatar ronankibharath98 commented on September 12, 2024

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.

brentvollebregt avatar brentvollebregt commented on September 12, 2024

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.

gabemorris12 avatar gabemorris12 commented on September 12, 2024

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.

davidsandbar avatar davidsandbar commented on September 12, 2024

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.

brentvollebregt avatar brentvollebregt commented on September 12, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.