Flinzar Flinzar - 4 years ago 304
Python Question

Python - GUI2EXE - AttributeError: 'module' object has no attribute 'Popen'

I use Python 2.7 and py2exe and recently I downloaded gui2exe latest version (5.3). But when I try to execute the

file, it gives me an error:

AttributeError: 'module' object has no attribute 'Popen'

I researched so much but never got any solution.

Please help.

Answer Source

Looks like something is masking subprocess.py from the standard library. The error message may show a stale path. Therefore open a Python shell right in the directory you start GUI2exe.py from and type:

>>> import subprocess
>>> subprocess.__file__

This should give you 'C:\Python27\lib\subprocess.pyc'. If not, you found the problem. Somehow another subprocess.py made it into your PYTHONPATH.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download