user interface - Why is 'splinter' module not found after creating python executable? -


i created small program in python using few imports:

splinter, tkinter, webbrwoser, urllib, , re

the program has gui (through tkinter), , works fine when run through command line.

however, when try create executable file using these instructions, seems work when run .exe file, following error:

c:\python27\dist>pypy.exe traceback (most recent call last):   file "pypy.py", line 1, in <module> importerror: no module named splinter 

this code used .exe file:

from distutils.core import setup import py2exe  setup(console=['pypy.py']) 

so i'm guessing (after doing reading in this post) problem has missing files dist folder, life of me i'm not sure go here.

please me make gui python program work.

thanks in advance,

jona

i found post discusses manually -excluding- modules py2exe build: py2exe "include" modules: when should managed manually?

they mention tk automatically included , i'd suspect re , webbrowser/urllib standard packages be, others may need added in 'include' section. suspect need following in setup:

setup(         console=['pypy.py'],         options={                 "py2exe":{                         "includes": ["splinter"]                 }         } ) 

hopefully helps; haven't done py2exe, if not maybe else can help!


Comments