ak_barik 0 Newbie Poster

I am trying to convert a testtoexe.py (which imports scapy and paramiko) file to exe. I am running Python2.6 (in PythonWin?) on Windows XP. I am using pyinstaller1.4 I am able to convert the .py to .exe, but..... I get the following error when I run the exe: C:\automation\createexe\dist>testtoexe.exe WARNING: No route found for IPv6 destination :: (no default route?) Traceback (most recent call last):

File "<string>", line 16, in <module> File "C:\automation\pyinstaller\iu.py", line 436, in importHook

mod = _self_doimport(nm, ctx, fqname)

File "C:\automation\pyinstaller\iu.py", line 521, in doimport

exec co in mod.dict

File "C:\automation\createexe\build\pyi.win32\testtoexe\outPYZ1.pyz/scapy.all"

, line 37, in <module>

File "C:\automation\pyinstaller\iu.py", line 436, in importHook

mod = _self_doimport(nm, ctx, fqname)

File "C:\automation\pyinstaller\iu.py", line 521, in doimport

exec co in mod.dict

File "C:\automation\createexe\build\pyi.win32\testtoexe\outPYZ1.pyz/scapy.laye

rs.all", line 16, in <module>

File "C:\automation\createexe\build\pyi.win32\testtoexe\outPYZ1.pyz/scapy.laye

rs.all", line 10, in _import_star

File "C:\automation\pyinstaller\iu.py", line 455, in importHook

raise ImportError?, "No module named %s" % fqname

ImportError?: No module named inet C:\automation\createexe\dist>

I give the following commands in command line to convert py to exe:

python Configure.py python Makespec.py -o C:\automation\createexe -F C:\automation\atg\GeneralFiles?_AC\testtoexe.py python Build.py C:\automation\createexe\testtoexe.spec
#################################################

##in texttoexe.py
from scapy.all import *
import paramiko

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.