(Python newbie) Using XP-SP2/MSVC6: No Python24_d.lib, winzip barfs on Python-2.4.1.tar, cannot download bzip2

Bill Davy Bill at SynectixLtd.com
Thu Apr 21 04:20:32 EDT 2005


Hi Scott,
Nice idea.  Tried that but no more information about where the file was 
(not) found (see below).
But many thanks for a useful flag.  I did not see them in the documentation. 
What should I be lkooking for? [StopPres: Ah ha -h why did I not think of 
that?]
Bill

# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# C:\Python24\lib\site.pyc matches C:\Python24\lib\site.py
import site # precompiled from C:\Python24\lib\site.pyc
# C:\Python24\lib\os.pyc matches C:\Python24\lib\os.py
import os # precompiled from C:\Python24\lib\os.pyc
import nt # builtin
# C:\Python24\lib\ntpath.pyc matches C:\Python24\lib\ntpath.py
import ntpath # precompiled from C:\Python24\lib\ntpath.pyc
# C:\Python24\lib\stat.pyc matches C:\Python24\lib\stat.py
import stat # precompiled from C:\Python24\lib\stat.pyc
# C:\Python24\lib\UserDict.pyc matches C:\Python24\lib\UserDict.py
import UserDict # precompiled from C:\Python24\lib\UserDict.pyc
# C:\Python24\lib\copy_reg.pyc matches C:\Python24\lib\copy_reg.py
import copy_reg # precompiled from C:\Python24\lib\copy_reg.pyc
# C:\Python24\lib\types.pyc matches C:\Python24\lib\types.py
import types # precompiled from C:\Python24\lib\types.pyc
# C:\Python24\lib\locale.pyc matches C:\Python24\lib\locale.py
import locale # precompiled from C:\Python24\lib\locale.pyc
import _locale # builtin
# C:\Python24\lib\codecs.pyc matches C:\Python24\lib\codecs.py
import codecs # precompiled from C:\Python24\lib\codecs.pyc
import _codecs # builtin
import encodings # directory C:\Python24\lib\encodings
# C:\Python24\lib\encodings\__init__.pyc matches 
C:\Python24\lib\encodings\__ini
t__.py
import encodings # precompiled from C:\Python24\lib\encodings\__init__.pyc
# C:\Python24\lib\encodings\aliases.pyc matches 
C:\Python24\lib\encodings\aliase
s.py
import encodings.aliases # precompiled from 
C:\Python24\lib\encodings\aliases.py
c
# C:\Python24\lib\encodings\cp1252.pyc matches 
C:\Python24\lib\encodings\cp1252.
py
import encodings.cp1252 # precompiled from 
C:\Python24\lib\encodings\cp1252.pyc
# C:\Python24\lib\warnings.pyc matches C:\Python24\lib\warnings.py
import warnings # precompiled from C:\Python24\lib\warnings.pyc
# C:\Python24\lib\linecache.pyc matches C:\Python24\lib\linecache.py
import linecache # precompiled from C:\Python24\lib\linecache.pyc
Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on 
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
# C:\Python24\lib\encodings\cp850.pyc matches 
C:\Python24\lib\encodings\cp850.py

import encodings.cp850 # precompiled from 
C:\Python24\lib\encodings\cp850.pyc
>>> import SHIP
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named SHIP
>>> import SHIP_d
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named SHIP_d
>>> import _SHIP
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named _SHIP
>>> import _SHIP_d
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: DLL load failed: The specified module could not be found.
>>> _SHIP_d
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
NameError: name '_SHIP_d' is not defined
>>>
"Scott David Daniels" <Scott.Daniels at Acm.Org> wrote in message 
news:4266871c$1 at nntp0.pdx.net...
> Bill Davy wrote:
>> Thanks Jaime,
>>
>> I'm making gradual progress and am finding it quite satisfying.  Resorted 
>> to tracing Python in MSVC6 to see what it was trying to IMPORT, which is 
>> a bit heavy but thank heavens for the sources.
> You might try running python from a command window and running it "-v" as 
> in:
>
>     python -v prog.py -args ...
>
> --Scott David Daniels
> Scott.Daniels at Acm.Org 





More information about the Python-list mailing list