473,848 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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\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.
Jul 18 '05 #1
1 6644
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******** *************** *************** *@python.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\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.



----== 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
6013
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 problem with the range Offset property, I'm not getting the correct offset and the returned range is a single cell and not the same size as the original range. For example, when I enter the following lines of code in PythonWin : from...
4
2236
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 Python-2.3.4.exe, I next executed: > pywin32-201.win32-py2.3.exe as downloaded from SourceForge, in the belief that it was the appropriate companion for Python-2.3.4 (perhaps this is my mistake?). In both cases, the installed Pythonwin outputs the...
4
1894
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 libraries, but I ran into an issue supporting optional parameters. After a lot of digging I discovered that the old CreateTypeLib API doesn't support them. I have currently built a custom version of pywin32 that uses the new CreateTypeLib2 API, and...
0
1217
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 202 -> which version wxWindows -> which version pysqlite -> which version which version to use so this will work on windows 95. i know that win95 is no longer supported but there must be previous version
5
2820
by: Egor Bolonev | last post by:
import os print os.listdir("\\\\delta\\public") outputs and import os print os.listdir("\\\\delta")
2
2208
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 the Windows Installer seem to work fine on my XP box? c
2
3802
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 network install, BUT when I need to pass PyTime to a COM object expecting a Date I get the following error: Python24\Lib\site-packages\win32com\client\dynamic.py", line 251, in _ApplyTypes_ result = self._oleobj_.InvokeTypes(*(dispid, LCID, wFlags,...
1
4921
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 = wx.STAY_ON_TOP | wx.FRAME_NO_TASKBAR | wx.TRANSPARENT_WINDOW |
7
4508
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 3.0, does it means that: - my script using pywin32 for the COM layer and scipy for the maths won't work under 3.0
0
9893
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9738
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10722
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10348
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9500
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7894
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7069
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5735
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4137
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.