Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#14 Problems with py2exe

closed
nobody
None
5
2002-07-26
2002-07-26
Anonymous
No

I Have python22
py2exe for python22

My python programs with gadfly are executing very
well

But when i make an "programa.exe" it say me:

Traceback (most recent call last):
File "<string>ии,line 3, in ?
File "gadfly\database.pycи, line 27,in __init__
File "gadfly\sql.pycи, line 16,in getSQL
ImportError: Couldn't find sql_mar.py - has setup.py
been run?

My setup py2exe output is the next:

running py2exe
running build
running build_scripts
creating build
creating build\scripts-2.2
copying programa.py -> build\scripts-2.2
running install_scripts
creating build\bdist.win32
creating build\bdist.win32\winexe
creating build\bdist.win32\winexe\lib
creating build\bdist.win32\winexe\lib\PYTHON22
creating build\bdist.win32\winexe\lib\PYTHON22
\Scripts
copying build\scripts-2.2\programa.py ->
build\bdist.win32\winexe\lib\PYTHON22\Scripts
creating dist
+----------------------------------------------------
| Processing script programa.py with py2exe-0.3.3
+----------------------------------------------------
creating dist\programa
creating build\bdist.win32\winexe\collect
creating build\bdist.win32\winexe\collect\programa
creating build\bdist.win32
\winexe\collect\programa\Scripts.py2exe
Searching modules needed to run 'programa.py' on
path:
['C:\\rodrigo\\programa\\build\\bdist.win32
\\winexe\\lib\\PYTHON22\\Lib\\site-
packages', '', 'C:\\rodrigo\\programa', 'C:\\PYTHON22
\\DLLs', 'C:\\PYTHON22\\lib', 'C:\\PYTHON22\\lib\\lib-
tk', 'C:\\PYTHON22', 'C:\\PYTHON22\\lib\\site-
packages']
force_imports =
Resolving binary dependencies:
C:\WINDOWS\SYSTEM\python22.dll
C:\PYTHON22\lib\site-packages\py2exe\run.exe
C:\PYTHON22\kjbuckets.pyd
C:\PYTHON22\DLLs\_sre.pyd
ext_mapping = {
'_sre': ('_sre.pyd', ('.pyd', 'rb', 3))
'kjbuckets': ('kjbuckets.pyd', ('.pyd', 'rb', 3))
}
copying C:\PYTHON22\lib\site-
packages\py2exe\support.py -> build\bdist.win32
\winexe\collect\programa\Scripts.py2exe
byte-compiling C:\PYTHON22\lib\pre.py to pre.pyc
byte-compiling C:\PYTHON22\lib\__future__.py to
__future__.pyc
byte-compiling C:\PYTHON22\lib\copy_reg.py to
copy_reg.pyc
byte-compiling C:\PYTHON22\lib\sre_compile.py to
sre_compile.pyc
byte-compiling C:\PYTHON22\lib\site-
packages\gadfly\semantics.py to gadfly\semantics.pyc
byte-compiling C:\PYTHON22\lib\macpath.py to
macpath.pyc
byte-compiling C:\PYTHON22\lib\popen2.py to
popen2.pyc
byte-compiling C:\PYTHON22\lib\site-
packages\gadfly\__init__.py to gadfly\__init__.pyc
byte-compiling C:\PYTHON22\lib\imputil.py to
imputil.pyc
byte-compiling C:\PYTHON22\lib\site-
packages\gadfly\kjSet.py to gadfly\kjSet.pyc
byte-compiling C:\PYTHON22\lib\site-
packages\gadfly\kjbuckets_select.py to
gadfly\kjbuckets_select.pyc
byte-compiling C:\PYTHON22\lib\dospath.py to
dospath.pyc
byte-compiling C:\PYTHON22\lib\tempfile.py to
tempfile.pyc
byte-compiling C:\PYTHON22\lib\sre_constants.py to
sre_constants.pyc
byte-compiling C:\PYTHON22\lib\re.py to re.pyc
byte-compiling C:\PYTHON22\lib\ntpath.py to
ntpath.pyc
byte-compiling C:\PYTHON22\lib\site-
packages\gadfly\kjParser.py to gadfly\kjParser.pyc
byte-compiling C:\PYTHON22\lib\site-
packages\gadfly\store.py to gadfly\store.pyc
byte-compiling C:\PYTHON22\lib\stat.py to stat.pyc
byte-compiling C:\PYTHON22\lib\string.py to
string.pyc
byte-compiling C:\PYTHON22\lib\site-
packages\gadfly\introspection.py to
gadfly\introspection.pyc
byte-compiling C:\PYTHON22\lib\UserDict.py to
UserDict.pyc
byte-compiling C:\PYTHON22\lib\site-
packages\gadfly\sql.py to gadfly\sql.pyc
byte-compiling C:\PYTHON22\lib\repr.py to repr.pyc
byte-compiling C:\PYTHON22\lib\site-
packages\gadfly\database.py to gadfly\database.pyc
byte-compiling C:\PYTHON22\lib\site-
packages\gadfly\kjbuckets0.py to
gadfly\kjbuckets0.pyc
byte-compiling C:\PYTHON22\lib\site-
packages\gadfly\bindings.py to gadfly\bindings.pyc
byte-compiling C:\PYTHON22\lib\copy.py to copy.pyc
byte-compiling C:\PYTHON22\lib\site-
packages\gadfly\grammar.py to gadfly\grammar.pyc
byte-compiling C:\PYTHON22\lib\types.py to
types.pyc
byte-compiling C:\PYTHON22\lib\sre.py to sre.pyc
byte-compiling C:\PYTHON22\lib\traceback.py to
traceback.pyc
byte-compiling C:\PYTHON22\lib\site-
packages\gadfly\operations.py to
gadfly\operations.pyc
byte-compiling C:\PYTHON22\lib\linecache.py to
linecache.pyc
byte-compiling C:\PYTHON22\lib\site-
packages\gadfly\serialize.py to gadfly\serialize.pyc
byte-compiling C:\PYTHON22\lib\posixpath.py to
posixpath.pyc
byte-compiling C:\PYTHON22\lib\sre_parse.py to
sre_parse.pyc
byte-compiling C:\PYTHON22\lib\os.py to os.pyc
copying programa.py -> build\bdist.win32
\winexe\collect\programa\Scripts.py2exe\__main__.py
changing into 'build\bdist.win32
\winexe\collect\programa'
zip -rq C:\rodrigo\programa\build\bdist.win32
\winexe\programa.zip .
creating 'C:\rodrigo\programa\build\bdist.win32
\winexe\programa.zip' and adding '.' to it
changing back to 'C:\rodrigo\programa'
creating dist\programa\programa.exe
copying C:\WINDOWS\SYSTEM\python22.dll ->
dist\programa
copying C:\PYTHON22\kjbuckets.pyd ->
dist\programa
copying C:\PYTHON22\DLLs\_sre.pyd ->
dist\programa
removing 'build\bdist.win32\winexe\collect\programa'
(and everything under it)
Built File dist\programa\programa.exe
removing 'build\bdist.win32\winexe' (and everything
under it)

Discussion

  • Richard Jones
    Richard Jones
    2002-07-26

    Logged In: YES
    user_id=6405

    You need to investigate how to make py2exe include the sql_mar.py
    module from the gadfly package.

     
  • Richard Jones
    Richard Jones
    2002-07-26

    • status: open --> closed