Error before make the python executable with auto-py-yo-exe NameError: name '__version__' is not definied [3644] Failed to execute the script

I tried to create an exe with auto py to exe but when I tried to execute it It throws an error. I tried to execute it as admin but it doesn't make any difference.

Error Image Here

Upvotes: 0

Views: 166

Answers (1)

MujyKun
MujyKun

Reputation: 16

The issue is being caused in the pyppeteer package. Go to the __init__ file of the package and replace the version with the version you are currently using.

In order to find the location of pyppeteer\__init__.py, you can type pip show pyppeteer and the directory will be listed under Location.

To find out the version you are currently using, use pip show pyppeteer. In my case, it would return "0.2.5", so I would set __version__ = "0.2.5". Try to make the application an executable again and it should work just fine.

Upvotes: 0

Related Questions