Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 gui2exe.py file, it gives me an error:

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

I researched so much but never got any solution.

Please help.

like image 219
Flinzar Avatar asked Oct 22 '22 09:10

Flinzar


1 Answers

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.

like image 52
Mike Müller Avatar answered Nov 03 '22 05:11

Mike Müller