cx_freeze + selenium + python 3 : No module named 'httplib' -


im trying buld app selenium, have setup.py:

import sys cx_freeze import setup, executable   path_drivers = ( "c:\python34\lib\site-packages\pyqt5\plugins\sqldrivers\qsqlmysql.dll", "sqldrivers\qsqlmysql.dll" )  includes = ["atexit","pyqt5.qtcore","pyqt5.qtgui", "pyqt5.qtwidgets","pyqt5.qtsql", "selenium"] includefiles = [path_drivers]  excludes = [ '_gtkagg', '_tkagg', 'bsddb', 'curses', 'email', 'pywin.debugger', 'pywin.debugger.dbgcon', 'pywin.dialogs', 'tcl', 'tkconstants', 'tkinter' ] packages = ["os"] path = []  # dependencies automatically detected, might need fine tuning. build_exe_options = {                  "includes":      includes,                  "include_files": includefiles,                  "excludes":      excludes,                  "packages":      packages,                  "path":          path }  # gui applications require different base on windows (the default # console application). base = none exe = none if sys.platform == "win32":     exe = executable(       script="main.py",       initscript = none,       base=none,       targetname="zeus.exe",       compress = true,       copydependentfiles = true,       appendscripttoexe = false,       appendscripttolibrary = false,       icon = none     )  setup(       name = "telll",       version = "0.1",       author = 'me',       description = "my gui application!",       options = {"build_exe": build_exe_options},       executables = [exe] ) 

the build finish no problems, when run application:

importerror: no module named 'httplib' 

my configuration: python 3.4.3 32bit. pyqt5 selenium 2.46.0

thaks help

httplib either isn't in directory path or hasn't been imported.

try adding either of these 2 scripts code:

  1. import httplib
  2. httplib = httplib(config_file="your directory path httplib")

Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -