#23 problem in py2exe

closed-invalid
nobody
None
5
2003-09-24
2003-09-23
KFOURY
No

When i call the setup script, i receive an error message.
Can someone tel me wher is the problem?

Error message:
____________

Traceback (most recent call last):
File "setup.py", line 7, in ?
scripts = ["permeameterwxApp1.py"],
File "C:\Python22\lib\distutils\core.py", line 138, in
setup
dist.run_commands()
File "C:\Python22\lib\distutils\dist.py", line 893, in
run_commands
self.run_command(cmd)
File "C:\Python22\lib\distutils\dist.py", line 913, in
run_command
cmd_obj.run()
File "C:\Python22\Lib\site-
packages\py2exe\build_exe.py", line 590, in run
mf.run_script(script)
File "C:\Python22\Lib\site-
packages\py2exe\tools\modulefinder.py", line 114, in
run_script
self.load_module('__main__', fp, pathname, stuff)
File "C:\Python22\Lib\site-
packages\py2exe\tools\modulefinder.py", line 282, in
load_module
self.scan_code(co, m)
File "C:\Python22\Lib\site-
packages\py2exe\tools\modulefinder.py", line 339, in
scan_code
self._safe_import_hook(name, m, fromlist)
File "C:\Python22\Lib\site-
packages\py2exe\tools\modulefinder.py", line 297, in
_safe_import_hook
self.import_hook(name, caller)
File "C:\Python22\Lib\site-
packages\py2exe\tools\modulefinder.py", line 126, in
import_hook
q, tail = self.find_head_package(parent, name)
File "C:\Python22\Lib\site-
packages\py2exe\tools\modulefinder.py", line 168, in
find_head_package
q = self.import_module(head, qname, parent)
File "C:\Python22\Lib\site-
packages\py2exe\tools\modulefinder.py", line 252, in
import_module
m = self.load_module(fqname, fp, pathname, stuff)
File "C:\Python22\Lib\site-
packages\py2exe\tools\modulefinder.py", line 267, in
load_module
co = compile(fp.read()+'\n', pathname, 'exec')
File "<string>", line 368
erqy.append(copy.copy(v2))

^
SyntaxError: invalid syntax

Discussion

  • Thomas Heller
    Thomas Heller
    2003-09-24

    Logged In: YES
    user_id=11105

    This is not a bug in py2exe, it's a problem in one of your
    files. The traceback points at it.

    You should look for a wrong character at this position, or
    something like that.

     
  • Thomas Heller
    Thomas Heller
    2003-09-24

    • status: open --> closed-invalid