Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6335127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:47:44+00:00 2026-05-24T18:47:44+00:00

I have a project written in Python 2.7 and PyGTK, with py2exe for compiling.

  • 0

I have a project written in Python 2.7 and PyGTK, with py2exe for compiling. I have two modules, “Launchpad.py” and “RegistrationScreen.py”. I need to open RegistrationScreen.py from Launchpad.py.

I am using the following code currently:

def open_registration(event, data=None):
    subprocess.Popen(["python", "RegistrationScreen.py"])

This works fine when I test – the window is opened without the shell window opening.

However, when I compile using py2exe, I get the following log error on executing the created application.

Traceback (most recent call last): File “Launchpad.py”, line 26, in
open_registration File “subprocess.pyc”, line 672, in init
File “subprocess.pyc”, line 882, in _execute_child WindowsError:
[Error 2] The system cannot find the file specified

How do I fix my code so py2exe will compile it correctly? Is there another way I can open the RegistrationScreen.py module’s window from Launchpad.py, that won’t throw errors in the final .exe file?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T18:47:45+00:00Added an answer on May 24, 2026 at 6:47 pm

    The problem is the path. RegistrationScreen.py is (probably) compressed inside dist/library.zip, but your code that calls it is looking for it in dist/RegestrationScreen.py.

    I don’t know what the best solution to this is… py2exe is kind of a pain for accessing files.

    Also, you probably don’t want to be doing subprocess.Popen(["python", "RegistrationScreen.py"]) because you can’t guarantee your users will have python installed and accessible systemwide. If you really need a separate process, then maybe you should run py2exe on RegistrationScreen.py individually to create a separate .exe, and then include that in the dist folder of your main .exe?

    I know that’s somewhat convoluted, but it would probably work. And as I said, there might be a better way.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an open source project written in python , it has some Forms
We have an old project written using Managed C++ syntax. I would like to
I have a rather large (freeware) project written with Delphi 2007 which is using
I have a project I am working on that is written in Python. The
I have a java project written using eclipse ide and I want to run
I have written a crude Python program to pull phrases from an index in
I have a project written in Java (>1.5). Is it possible to write parts
I have a project written in C and I would like to know if
I have an existing project written in Ruby on Rails. It is sort of
In a software-project written in java you often have resources, that are part of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.