python program work fine in idle but not after compile

610 views
Skip to first unread message

ahmadsa...@gmail.com

unread,
Mar 23, 2015, 6:04:04 AM3/23/15
to pyins...@googlegroups.com
i've create exe file from my program to check URl's and i've used socket,urllib.request,request modules for get http and check ip address , my program work fine in idle but after compiling it in pyinstaller or py2exe ,program doesn't work well and when i've compile my program i get this comments in warnfile.txt in build folder :

no module named _dummy_threading - imported by dummy_threading

no module named org - imported by copy, org.python

no module named org.PyStringMap - imported by org

no module named urllib.getproxies - imported by urllib

no module named urllib.quote_plus - imported by urllib

no module named urllib.unquote - imported by urllib

no module named urllib.quote - imported by urllib

no module named urllib.proxy_bypass - imported by urllib

no module named urllib.unquote_plus - imported by urllib

no module named urllib.urlencode - imported by urllib

no module named pwd - imported by posixpath, tarfile, shutil, http.server, webbrowser, getpass, netrc

no module named grp - imported by tarfile, shutil

no module named termios - imported by tty, getpass

no module named vms_lib - imported by platform

no module named java.lang - imported by platform, xml.sax._exceptions

no module named java - imported by platform, java.lang

no module named java.System - imported by java

no module named org.python - imported by xml.sax

no module named org.python.imp - imported by org.python

no module named _frozen_importlib - imported by importlib, pyi_archive, pyi_importers, C:\Python34\lib\site-packages\pyinstaller-3.0.dev0-py3.4.egg\PyInstaller\loader\pyi_importers.py, C:\Python34\lib\site-packages\pyinstaller-3.0.dev0-py3.4.egg\PyInstaller\loader\pyi_archive.py

no module named main - imported by bdb, pdb, rlcompleter

no module named readline - imported by cmd, code, pdb, site, rlcompleter

no module named collections.OrderedDict - imported by collections

no module named collections.namedtuple - imported by collections

no module named _posixsubprocess - imported by subprocess

no module named os.path - imported by pkgutil, shutil, py_compile, unittest.util, os, requests.certs, sysconfig, C:\Python34\lib\site-packages\pyinstaller-3.0.dev0-py3.4.egg\PyInstaller\loader\pyi_carchive.py no module named ce - imported by os

no module named posix - imported by os, pyi_os_path, C:\Python34\lib\site-packages\pyinstaller-3.0.dev0-py3.4.egg\PyInstaller\loader\pyi_os_path.py

no module named - imported by C:\Python34\lib\site-packages\pyinstaller-3.0.dev0-py3.4.egg\PyInstaller\loader\pyi_carchive.py no module named .pyi_archive - imported by

no module named usercustomize - imported by site

no module named sitecustomize - imported by site

no module named _sysconfigdata - imported by sysconfig

no module named StringIO - imported by

requests.packages.urllib3.packages.six, requests.compat

no module named backports - imported by requests.packages.urllib3.packages.ssl_match_hostname

no module named backports.match_hostname - imported by backports

no module named backports.CertificateError - imported by backports

no module named httplib - imported by requests.packages.urllib3.connection no module named _abcoll - imported by requests.packages.urllib3.packages.ordered_dict

no module named dummy_thread - imported by requests.packages.urllib3.packages.ordered_dict

no module named thread - imported by requests.packages.urllib3.packages.ordered_dict no module named urlparse - imported by requests.packages.urllib3.poolmanager, requests.compat

no module named Queue - imported by requests.packages.urllib3.connectionpool

no module named Cookie - imported by requests.compat

no module named cookielib - imported by requests.compat

no module named urllib2 - imported by requests.compat

no module named simplejson - imported by requests.compat

no module named certifi - imported by requests.certs

no module named pyasn1.type - imported by requests.packages.urllib3.contrib.pyopenssl

no module named pyasn1 - imported by requests.packages.urllib3.contrib.pyopenssl, pyasn1.type

no module named pyasn1.decoder - imported by pyasn1

no module named OpenSSL - imported by requests.packages.urllib3.contrib.pyopenssl

no module named ndg.httpsclient - imported by requests.packages.urllib3.contrib.pyopenssl

no module named ndg.httpsclient.SubjectAltName - imported by ndg.httpsclient

no module named ndg - imported by requests.packages.urllib3.contrib.pyopenssl, ndg.httpsclient

no module named ndg.SUBJ_ALT_NAME_SUPPORT - imported by ndg

no module named _scproxy - imported by urllib.request


-------------------
this is my compile code :

      pyinstaller.py --runtime-hook rthook_pyqt4.py --windowed --onefile shellchecker.pyw

and i've imported all modules in my main program  :

import urllib.request

from urllib.parse import urlparse

import socket

import sys

from out import *

import threading

import time

import webbrowser

import requests

and this modules in rthook_pyqt4.py:

import sip

import win32api

import unicodedata

import PyQt4

import urllib

import os

import requests

import sys

sip.setapi(u'QDate', 2)

sip.setapi(u'QDateTime', 2)

sip.setapi(u'QString', 2)

sip.setapi(u'QTextStream', 2)

sip.setapi(u'QTime', 2)

sip.setapi(u'QUrl', 2)

sip.setapi(u'QVariant', 2)




Hartmut Goebel

unread,
Mar 23, 2015, 6:22:34 AM3/23/15
to pyins...@googlegroups.com
Am 13.03.2015 um 08:57 schrieb ahmadsa...@gmail.com:
my program work fine in idle but after compiling it in pyinstaller or py2exe ,program doesn't work well and when i've compile my program i

Did you already follow the instructions at <https://github.com/pyinstaller/pyinstaller/wiki/How-to-Report-Bugs#make-sure-everything-is-packaged-correctly>?

--
Schönen Gruß
Hartmut Goebel
Dipl.-Informatiker (univ), CISSP, CSSLP
Information Security Management, Security Governance, Secure Software Development

Goebel Consult, Landshut
http://www.goebel-consult.de

Blog: http://www.goebel-consult.de/blog/kleiner-erfahrungsbericht-mit-online-ocr-diensten
Kolumne: http://www.cissp-gefluester.de/2012-09-steht-ein-manta-fahrer-vor-der-uni

Reply all
Reply to author
Forward
0 new messages