#3 Import error on running the .exe

closed-invalid
nobody
None
1
2002-03-21
2002-03-08
Peter Harris
No

Windows 2000, py2exe version 0.3.1 for python 2.1

Appeared to build fine, when I ran the .exe I got
this...

Traceback (most recent call last):
File "<string>", line 2, in ?
File "imputil.pyc", line 98, in _import_hook
File "<string>", line 52, in _import_top_module
File "imputil.pyc", line 207, in import_top
File "imputil.pyc", line 262, in _import_one
File "<string>", line 128, in _process_result
File "socket.pyc", line 41, in ?
File "imputil.pyc", line 98, in _import_hook
File "<string>", line 52, in _import_top_module
File "imputil.pyc", line 207, in import_top
File "imputil.pyc", line 258, in _import_one
File "<string>", line 163, in get_code
ImportError: DLL load failed: The process cannot
access the file because it is being used by another
process.

The modules imported by my program are:
os, socket, select, sys

The files in the dist/myapplication directory are:
_socket.pyd
_sre.pyd
_python21.dll
_PyWinTypes21.dll
select.pyd
udpwait.exe (my program)
win32api.pyd

Is there any more information I can provide that would
help track this down?

Peter Harris

Discussion

  • Thomas Heller
    Thomas Heller
    2002-03-15

    Logged In: YES
    user_id=11105

    The error message '...because it is used by another
    process' looks strange, I've never seen this before.
    Peter, can you could zip-up your sources and send them to
    me so that I can track this down (or maybe attach them to
    this bug-report)?

     
  • Peter Harris
    Peter Harris
    2002-03-15

    • priority: 5 --> 1
     
  • Peter Harris
    Peter Harris
    2002-03-15

    Logged In: YES
    user_id=8911

    I don't know if it helps, but I don't get the error except
    when the current directory is the dist subdirectory where
    the .exe and DLLs are created.

    Since I don't want or need to run it there, it's not
    serious. You can close the bug if you like.

    Since another program I know to be working does the same
    (ftpd.py, sf.net/projects/jftp.), I'm guessing it's either
    my PC or something odd about the import path.

    BY the way, thanks. py2exe has made it possible to drop
    Java in favour of Python for my JFTP project, and therefore
    at my workplace.

    Peter

     
  • Thomas Heller
    Thomas Heller
    2002-03-21

    • status: open --> closed
     
  • Thomas Heller
    Thomas Heller
    2002-03-21

    • status: closed --> closed-invalid