PyWin32 installation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • mg

    #1

    PyWin32 installation

    Hi all,

    I have reinstalled my Win32 computer last week and I did an update of
    the project PyWin32 to complete my Python installation.
    (I have to use sources from CVS for my project !)

    So, when I run 'python setup.py' in my PyWin32 directory, I have two
    problem : the version indacated in windows.h and some symbols who are
    not defined. See the trace :

    running install
    running build
    running build_py
    running build_ext
    Warning - can't find an installed platform SDK
    Found WINDOWS.H version 0x501 in C:\Program Files\Microsoft
    Visual Studio .NET 2003\Vc7\Platfo rmSDK\include
    building 'win32print' extension
    C:\Program Files\Microsoft Visual Studio .NET
    2003\Vc7\bin\li nk.exe /DLL /nologo /INCREMENTAL:NO
    /LIBPATH:C:\ext_ projects\python \dist\src\libs
    /LIBPATH:C:\ext_ projects\python \dist\src\PCBui ld
    /LIBPATH:build\t emp.win32-2.5\Release winspool.lib user32.lib
    /EXPORT:initwin3 2print
    build\temp.win3 2-2.5\Release\win 32\src\win32pri nt\win32print.o bj
    /OUT:build\lib.w in32-2.5\win32\win32 print.pyd
    /IMPLIB:build\te mp.win32-2.5\Release\win 32\src\win32pri nt\win32print.l ib
    /MACHINE:ix86
    Creating library
    build\temp.win3 2-2.5\Release\win 32\src\win32pri nt\win32print.l ib and
    object build\temp.win3 2-2.5\Release\win 32\src\win32pri nt\win32print.e xp
    win32print.obj : error LNK2019: unresolved external symbol
    __imp__StartDoc A@8 referenced in function "struct _object * __cdecl
    PyStartDoc(stru ct _object *,struct _object *)"
    (?PyStartDoc@@Y APAU_object@@PA U1@0@Z)
    win32print.obj : error LNK2019: unresolved external symbol
    __imp__EndDoc@4 referenced in function "struct _object * __cdecl
    PyEndDoc(struct _object *,struct _object *)"
    (?PyEndDoc@@YAP AU_object@@PAU1 @0@Z)

    Then, I don't kwnow how to solve theses problem ! Is there someone tho
    help me ?
    Thank,

    Mathieu G.
  • Roger Upole

    #2
    Re: PyWin32 installation

    Gdi32 needs to be added to the libraries for win32print in setup.py.
    (just checked it in)

    Roger


    "mg" <mg.mailing-list@laposte.ne t> wrote in message
    news:mailman.11 71.1106557219.2 2381.python-list@python.org ...[color=blue]
    > Hi all,
    >
    > I have reinstalled my Win32 computer last week and I did an update of the
    > project PyWin32 to complete my Python installation.
    > (I have to use sources from CVS for my project !)
    >
    > So, when I run 'python setup.py' in my PyWin32 directory, I have two
    > problem : the version indacated in windows.h and some symbols who are not
    > defined. See the trace :
    >
    > running install
    > running build
    > running build_py
    > running build_ext
    > Warning - can't find an installed platform SDK
    > Found WINDOWS.H version 0x501 in C:\Program Files\Microsoft
    > Visual Studio .NET 2003\Vc7\Platfo rmSDK\include
    > building 'win32print' extension
    > C:\Program Files\Microsoft Visual Studio .NET
    > 2003\Vc7\bin\li nk.exe /DLL /nologo /INCREMENTAL:NO
    > /LIBPATH:C:\ext_ projects\python \dist\src\libs
    > /LIBPATH:C:\ext_ projects\python \dist\src\PCBui ld
    > /LIBPATH:build\t emp.win32-2.5\Release winspool.lib user32.lib
    > /EXPORT:initwin3 2print
    > build\temp.win3 2-2.5\Release\win 32\src\win32pri nt\win32print.o bj
    > /OUT:build\lib.w in32-2.5\win32\win32 print.pyd
    > /IMPLIB:build\te mp.win32-2.5\Release\win 32\src\win32pri nt\win32print.l ib
    > /MACHINE:ix86
    > Creating library
    > build\temp.win3 2-2.5\Release\win 32\src\win32pri nt\win32print.l ib and
    > object build\temp.win3 2-2.5\Release\win 32\src\win32pri nt\win32print.e xp
    > win32print.obj : error LNK2019: unresolved external symbol
    > __imp__StartDoc A@8 referenced in function "struct _object * __cdecl
    > PyStartDoc(stru ct _object *,struct _object *)"
    > (?PyStartDoc@@Y APAU_object@@PA U1@0@Z)
    > win32print.obj : error LNK2019: unresolved external symbol
    > __imp__EndDoc@4 referenced in function "struct _object * __cdecl
    > PyEndDoc(struct _object *,struct _object *)"
    > (?PyEndDoc@@YAP AU_object@@PAU1 @0@Z)
    >
    > Then, I don't kwnow how to solve theses problem ! Is there someone tho
    > help me ?
    > Thank,
    >
    > Mathieu G.[/color]




    ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
    http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
    ---= East/West-Coast Server Farms - Total Privacy via Encryption =---

    Comment

    Working...