Paul Moore schrieb: > On 17/03/2008, Gregor Lingl <[EMAIL PROTECTED]> wrote: >> When doing the same call to execute idle as you, I got the following: >> >> Traceback (most recent call last): >> File "c:\Python26\Lib\idlelib\idle.py", line 6, in <module> >> import PyShell >> File "c:\Python26\Lib\idlelib\PyShell.py", line 9, in <module> >> import socket >> File "c:\Python26\Lib\socket.py", line 46, in <module> >> import _socket >> ImportError: DLL load failed: <in German: system cannot find this file> > > Can you try running C:\Python26\python.exe, and then at the > interpreter prompt, execute: > > import sys > print sys.path > import socket > > and post the results? > >>> import sys >>> print sys.path ['', 'C:\\Python26\\python26.zip', 'C:\\Python26\\DLLs', 'C:\\Python26\\lib', ] 'C:\\Python26\\lib\\plat-win', 'C:\\Python26\\lib\\lib-tk', 'C:\\Python26', 'C:\\Python26\\lib\\site-packages'] >>> import socket Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Python26\lib\socket.py", line 46, in <module> import _socket ImportError: DLL load failed: Das System kann die angegebene Datei nicht finden. ;-) :-(
>>> > I expect you will get the same error about _socket not being loadable, > but I'd like to check. Also can you try just "import _socket"? > >>> import _socket Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: DLL load failed: Das System kann die angegebene Datei nicht finden. > What is the size of _socket.pyd - mine is 44,032 bytes. > The same > Another thought - do you have any copies of msvcr90.dll on your PATH? > I don't think it'll make a difference, but if you do can you try > renaming them? > > No I don't! Only in c:\Python26, in c:\Python30 and on c:\Python30\DLLs. Strange that there are two copies of msvcr90.dll in Python30. So I'll copy this beast also to C:\Python26\DLLs, and ... it works! I can import socket and I even can start IDLE from the Python2.6 Menu Thanks for your advice. Do you have an idea if this is a 'bug' in the installer? Why the differences between 2.6 and 3000. Why two copies of that .dll in Python 30.0? I'm rather happy now :-) Have a nice evening. (Here in Vienna it's already 0:51 am.) All the best Gregor >> I never experienced a similar Problem before when installing Python. >> >> Any ideas? >> > > Not many :-( > > One final thought, what is the value of your PATH variable? Mine has > no Python entries in it at all - that's normal, the Python installer > doesn't set PATH. > > Sorry I can't be of more help, > Paul. > > > _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com