0

I am trying to generate .exe file from .py file using py2exe. But I am getting the following error after running the generated .exe file in dist folder.

  File "upto_tabs_b.py", line 2, in <module>
  File "wx\__init__.pyc", line 17, in <module>
  ImportError: No module named core

I am using wxpython version 3.0. The error resolves when using version 4.0 but I specifically need 3.0. Below is my setup.py file

from distutils.core import setup
import py2exe
setup(
    console=['upto_tabs_b.py'],
)

I searched a lot for the issue and could not find any helpful resources. It would be extremely helpful if anyone can find a solution. Thank you.

1 Answer 1

1

If you’re using wxPython for a GUI, then you shouldn’t use “console”, but “windows” as a keyword in your setup.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.