473,320 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

PyWin32 installation

mg
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\PlatformSDK\include
building 'win32print' extension
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO
/LIBPATH:C:\ext_projects\python\dist\src\libs
/LIBPATH:C:\ext_projects\python\dist\src\PCBuild
/LIBPATH:build\temp.win32-2.5\Release winspool.lib user32.lib
/EXPORT:initwin32print
build\temp.win32-2.5\Release\win32\src\win32print\win32print.obj
/OUT:build\lib.win32-2.5\win32\win32print.pyd
/IMPLIB:build\temp.win32-2.5\Release\win32\src\win32print\win32print.lib
/MACHINE:ix86
Creating library
build\temp.win32-2.5\Release\win32\src\win32print\win32print.lib and
object build\temp.win32-2.5\Release\win32\src\win32print\win32print.exp
win32print.obj : error LNK2019: unresolved external symbol
__imp__StartDocA@8 referenced in function "struct _object * __cdecl
PyStartDoc(struct _object *,struct _object *)"
(?PyStartDoc@@YAPAU_object@@PAU1@0@Z)
win32print.obj : error LNK2019: unresolved external symbol
__imp__EndDoc@4 referenced in function "struct _object * __cdecl
PyEndDoc(struct _object *,struct _object *)"
(?PyEndDoc@@YAPAU_object@@PAU1@0@Z)

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

Mathieu G.
Jul 18 '05 #1
1 6573
Gdi32 needs to be added to the libraries for win32print in setup.py.
(just checked it in)

Roger
"mg" <mg*************@laposte.net> wrote in message
news:ma***************************************@pyt hon.org...
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\PlatformSDK\include
building 'win32print' extension
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\bin\link.exe /DLL /nologo /INCREMENTAL:NO
/LIBPATH:C:\ext_projects\python\dist\src\libs
/LIBPATH:C:\ext_projects\python\dist\src\PCBuild
/LIBPATH:build\temp.win32-2.5\Release winspool.lib user32.lib
/EXPORT:initwin32print
build\temp.win32-2.5\Release\win32\src\win32print\win32print.obj
/OUT:build\lib.win32-2.5\win32\win32print.pyd
/IMPLIB:build\temp.win32-2.5\Release\win32\src\win32print\win32print.lib
/MACHINE:ix86
Creating library
build\temp.win32-2.5\Release\win32\src\win32print\win32print.lib and
object build\temp.win32-2.5\Release\win32\src\win32print\win32print.exp
win32print.obj : error LNK2019: unresolved external symbol
__imp__StartDocA@8 referenced in function "struct _object * __cdecl
PyStartDoc(struct _object *,struct _object *)"
(?PyStartDoc@@YAPAU_object@@PAU1@0@Z)
win32print.obj : error LNK2019: unresolved external symbol
__imp__EndDoc@4 referenced in function "struct _object * __cdecl
PyEndDoc(struct _object *,struct _object *)"
(?PyEndDoc@@YAPAU_object@@PAU1@0@Z)

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

Mathieu G.



----== 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 =---
Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Michael Jordan | last post by:
I'm hoping that someone here can give me some insight into a problem I'm running into with Python, pywin32 and Excel. All-in-all using Python and pywin32 is great but I've run into a strange...
4
by: Bob Chapman | last post by:
On two different Windows 98SE Systems, I have attempted to upgrade working Python 2.3.3 and win32all installations to Python 2.3.4. After what appeared to be successful installations of...
4
by: Philip Rittenhouse | last post by:
I was just wondering if there are any plans to support the CreateTypeLib2 API either instead of, or in addition to, the CreateTypeLib API. I am currently using pythoncom to generate type...
0
by: Aljosa Mohorovic | last post by:
which is last pywin32 that works on win95? i need it to access COM object and it needs to run on win95. version fox this mix would be nice, something like: python 2.3.4 -> which version pywin32 b...
5
by: Egor Bolonev | last post by:
import os print os.listdir("\\\\delta\\public") outputs and import os print os.listdir("\\\\delta")
2
by: Chris Lott | last post by:
Can someone elaborate for me what the pywin32 project is exactly? Is PythonWin a replacement for idle? More to the point, do I need to worry about this as I am learning about Python, since Idle and...
2
by: agostino.russo | last post by:
I managed to make pywin32 work from a network installation (not really hard work: a shared folder + copying some dlls + setting PYTHONPATH). PythonWin amd COM seem to be working fine from the...
1
by: livibetter | last post by:
Hi! I am trying to making an On-Screen Display, which is implemented by wx.Frame. Basically I created a wx.Frame with style like super(OSDBase, self).__init__(parent, id, title, style =...
7
by: vml | last post by:
Hello, I am trying to promote python in my job, my collegue only see matlab and microsoft scripting language. I understood that there willl be no backward compatibility between python 2.x and...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.