mukulyadav49 / fern-wifi-cracker

Automatically exported from code.google.com/p/fern-wifi-cracker
0 stars 0 forks source link

execute.py failed on Gentoo using python 3.2 #48

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi guys, I'm running a nice fresh gentoo installation on one of my machines and 
I'm busy setting up fern on it. The default python version was 3.2. Upon 
executing execute.py, it threw an import error when loading in the commands 
module. Shock and horror, upstream have been messing with the libraries again. 
Apparently, you should be calling subprocess instead. Switching over to 
python2.7 resolved that particular issue. Any chance you could look at 
resolving this?

Original issue reported on code.google.com by steakand...@gmail.com on 7 Jan 2013 at 5:29

GoogleCodeExporter commented 9 years ago
Hi, noticed you're looking at this when I a fresh version out this morning. If 
you've not already tried it, I think replacing line 7:

import commands

with:

if(sys.version_info.major==3):
        import subprocess
else:
        import commands

Might go some way to allowing execution under both versions of python. The 
interpreter seems happy enough, but I'll have to wait until I finish PyQt 
compiled into Python 3.2 before I can confirm this.

Original comment by steakand...@gmail.com on 10 Jan 2013 at 7:05

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thanks, Ill be sure to include this change in the next update

Original comment by savioboy...@gmail.com on 10 Jan 2013 at 8:56