Hi all,
I am running into an issue that I am unable to track down a resolution
for. I have developed a Python Flask application for which I created a
single-file executable using pyinstaller that I wish to run as a Windows
Service.
I researched on the internet to find the common Python
Hi All,
I´m experiencing the following error.. can you help?
Kind regards,
C:\Users\Messias\Desktop\Pycharm_Projects\Odoo14_exe\venv\Scripts\python.exe
C:/Users/Messias/Desktop/Pycharm_Projects/Odoo14_exe/Odoo14/odoo-bin --conf
Both the laptop has same version
On Tue, 30 Mar 2021, 22:41 Tim Roberts, wrote:
> Shaik Saleem Basha wrote:
> > Issue:
> >
> > 1.I have created a python script for windows service, service is
> > creating I can't able to run I'm getting the following error ( The
> > pythonftp service
Shaik Saleem Basha wrote:
Issue:
1.I have created a python script for windows service, service is
creating I can't able to run I'm getting the following error ( The
pythonftp service terminated with the following service-specific
error: Incorrect function.) in windows logs.
2.I'm able to
Hi Everyone I'm facing an issue while running a python script as a windows service can anyone help me??Issue:1. I have created a python script for windows service, service is creating I can't able to run I'm getting the following error ( The pythonftp service terminated with the following
Yes I did. It produced the variant type unknown error as described in the
first post.
import win32api
import win32com.server.util
from win32com import client as w32Client
win32Client =
win32com.client.gencache.EnsureDispatch("{69072C2D-6ED1-4051-BF8D-70286A303CDD}")
s = "AL"
r = "On"
Olle Pontén wrote:
Hmm ok, I could find the following information using OLEView (se
attachment).
It states that the two in parameters are noted as VT_LPWSTR for the
scriptCmd command.
Would that mean that I have no way of interfacing with them at all?
No, it doesn't mean that! If it
Thanks for the response!
Hmm ok, I could find the following information using OLEView (se
attachment).
It states that the two in parameters are noted as VT_LPWSTR for the
scriptCmd command.
Would that mean that I have no way of interfacing with them at all?
I would prefer exhausting what I can do
On 21/01/2021 10:00 pm, Olle Pontén wrote:
Hello!
I'm quite new to the pywin32 package (as in I have never interacted with
it before).
I'm currently trying to implement a python interface to a win32 bit program
that I can connect to using the ordinary win32com.client.Dispatch method.
This
Hello!
I'm quite new to the pywin32 package (as in I have never interacted with it
before).
I'm currently trying to implement a python interface to a win32 bit program
that I can connect to using the ordinary win32com.client.Dispatch method.
This program controls an microscope camera and the only
Sylvain Fauveau wrote:
> I'm trying to add a textbox in word with python 2.7 / pywin 220 Under Windows
> Server 2008.
>
> from win32com.client import Dispatch, constants
> word = Dispatch('Word.Application')
> document = word.Documents.Add()
> orientation = constants.wdTextOrientationHorizontal
Hi.
I'm trying to add a textbox in word with python 2.7 / pywin 220 Under Windows
Server 2008.
from win32com.client import Dispatch, constants
word = Dispatch('Word.Application')
document = word.Documents.Add()
orientation = constants.wdTextOrientationHorizontal
left = 100
top = 100
width =
Blair Hall wrote:
I get your point that the first manifest I provided is not specific to
the DLL, but the second (embedded in the DLL) manifest that I posted
seems to identify a particular version of msvcr90.dll. Sadly, Windows
does not worry about matching the version of msvcr90.dll:
Blair Hall wrote:
I get your point that the first manifest I provided is not specific to
the DLL, but the second (embedded in the DLL) manifest that I posted
seems to identify a particular version of msvcr90.dll. Sadly, Windows
does not worry about matching the version of msvcr90.dll: it
I have used py2exe on another project that creates an EXE. This
project also imports uuid (it basically imports the same stuff I am
using now, but for a different application). In that case, the
manifest seems to work as expected. So, I wonder what is different in
the case of my DLL? Well
Blair Hall wrote:
One ugly alternative would be to edit sys.path in your code before you
start your imports. If you remove everything but the Windows
directories, that should solve the problem.
I don't follow. Surely sys.path has nothing to do with it? It is the
You might consider double-checking your message subjects before
responding. That's especially important when you read the digest.
Oh dear, I am sorry. I hadn't twigged to how that worked. I have restored
the original subject now, from my initial post. Hope that helps.
Blair Hall wrote:
This appears to be due to way rpcrt4.dll is loaded by ctypes. If a
side-by-side assembly has already loaded a version that’s not
compatible with the activation context of Python itself, ctypes will attempt to
use it anyway.
Roger
Blair Hall blairdh...@gmail.com wrote in message
Hi Mark,
Thank you for the pointer. For some reason I had the Windows 8 SDK in
the include path, this was causing compiler to somehow pick up those
header files ahead of Vista SDK.
For what it is worth, seems like in the newer SDK Microsoft has
decided to rename IAsyncOperation to
Which version of Python are you running?
32 or 64 bit?
Which version of pywin32?
Which version of Windows?
Can you make a small test case that will demonstrate the error?
On Thu, Oct 16, 2014 at 7:47 PM, Blair Hall blairdh...@gmail.com wrote:
I have a small python COM server that worked fine
I have a small python COM server that worked fine with Excel until I
decided to import the standard Python 'uuid' module.
Now I get the Windows Runtime error R6034 An application has made an
attempt to load the C runtime library incorrectly
I there anything that I can do to fix this?
FTR, the original poster just emailed me to say he neglected to mention
this problem is with a py2exe built binary - py2exe has a known problem
where it sometimes copies DLLs it shouldn't - so nothing to see here :)
Mark
On 28/02/2014 4:44 PM, Raghavendra Prasad NL wrote:
I am using
Hi,
We are Python novices but have some Windows services written in Python 2.4.3 by
somebody no longer at our company. These services use MQ-Series. We are trying
to install and run these services on another machine on which Python was
previously not installed. We successfully installed the
Hi,
2013/2/7 leonard.ber...@surecomp.com
Python could not import the service's module
File C:\Documents and
Settings\BinaJ\Desktop\ibswin\exe\COMMON\Scripts\interfaceServices.py,
line 184, in ?
import pymqi
File C:\Documents and
Hi,
we are getting exceptions while executing pythonWin script. Please find
attachment contains error messages.
The python script uses ArcInfo toolbox(ESRI component) to perform geoprocessing
opeations.
script was implemented on python21,pythonwin32.
Now I am trying to run old version of
On Tue, Apr 17, 2012 at 6:55 AM, Mark Hammond skippy.hamm...@gmail.comwrote:
On 14/04/2012 3:19 PM, Sriram ET. wrote:
I have a folder in the Root Folder of a message store that I am trying
to clear using EmptyFolder(). The code is as follows:
folder = store.OpenEntry(eid,
On 14/04/2012 3:19 PM, Sriram ET. wrote:
I have a folder in the Root Folder of a message store that I am trying
to clear using EmptyFolder(). The code is as follows:
folder = store.OpenEntry(eid, None, MOD_FLAG)
hr = folder.EmptyFolder(0, None, 0)
I get the
I have a folder in the Root Folder of a message store that I am trying to
clear using EmptyFolder(). The code is as follows:
folder = store.OpenEntry(eid, None, MOD_FLAG)
hr = folder.EmptyFolder(0, None, 0)
I get the error: ' Error: unsupported operand type(s) for
Hello,
I work on a Python application that runs on Windows. Lately we've
been seeing a strange error pop up on a few installations (say 10 out
of ~2000). When launching Python the following error pops up in a
windows dialog:
The application failed to initialize properly (0x0150002)
Searching
Greetings,
I am having a problem with using win32com to open an instance of Excel when
there is already one open. I would appreciate any help.
My example goes as follows:
The user has an Excel file (and therefore an EXCEL.exe process) open
already.
I do:
Sadly this is all under the control of Excel, so I've no good advice.
The poor advice I can offer is (1) for your own piece of mind, see if
you can get the same basic behaviour with wscript and a .vbs script, (2)
to try and see if you can find a similar problem in any
language/environment (eg,
win32all is a very old name which is still hanging around in some
documentation. The package is now referred to as pywin32.
http://sourceforge.net/projects/pywin32/
Which versions of Python and pywin32 are you using?
--
Vernon Cole
On Mon, Apr 27, 2009 at 9:22 AM, Iuri iurisil...@gmail.com
Oh, sorry. I'm using pywin32-212.win32-py2.6.exe and Python 2.6.
I did some tests. Calling a new object with Python Interpreter
(Server.CreateObject(Python.Interpreter)), I got this error:
Server object error 'ASP 0178 : 80070005'
Server.CreateObject Access Error
/teste.asp, line 3
The call to
Tim Roberts schrieb:
Vinay Anantharaman wrote:
Hi,
I am trying to translate an error into text by using a library function in
vix com:
http://www.vmware.com/products/beta/vmware_server/vix_api/ReferenceGuide/lang/com/functions/GetErrorText.html
My code is as follows:
vixLib
Hi,
I am trying to translate an error into text by using a library function in vix
com:
http://www.vmware.com/products/beta/vmware_server/vix_api/ReferenceGuide/lang/com/functions/GetErrorText.html
My code is as follows:
vixLib =
Vinay Anantharaman wrote:
Hi,
I am trying to translate an error into text by using a library function in
vix com:
http://www.vmware.com/products/beta/vmware_server/vix_api/ReferenceGuide/lang/com/functions/GetErrorText.html
My code is as follows:
vixLib =
Tim Roberts wrote:
It's kind of loony for an API to use a
64-bit integer as an error number, but that's what they're doing.
This is Windows, remember. There are large numbers
of things that can go wrong.
--
Greg
___
python-win32 mailing list
, 2008 10:41 AM
To: python-win32@python.org
Subject: [python-win32] error: 'CoInitialize not found'
Hi,
is someone among you guys out there familier with this kind of error message or
rather knows the cause and the solution?:
File F:\2_4_2\lib\site-packages\win32com\client\dynamic.py, line 78
Hi,
is someone among you guys out there familier with this kind of error message or
rather knows the cause and the solution?:
File F:\2_4_2\lib\site-packages\win32com\client\dynamic.py, line 78, in
_GetGoodDispatch
pywintypes.com_error: (-2147221008, 'CoInitialize not found.', None, None)
knish wrote:
Hi,
Thank you for your reply. I will remember your point and send the code
from the console.
BRgds,
kNish
Larry Bates wrote:
kNish wrote:
Hi,
The following lines of code gives an error starting with
line where len() is used
Hi,
Thank you for your reply. I will remember your point and send the code
from the console.
BRgds,
kNish
Larry Bates wrote:
kNish wrote:
Hi,
The following lines of code gives an error starting with
line where len() is used
local_BkFiles =
kNish wrote:
The following lines of code gives an error starting with
line where len() is used
[... snip code for the moment ...]
META-ADVICE: kNish, when you're posting a question, please,
please, post post the traceback you got. Cut-and-paste it from
the console window into the email.
kNish wrote:
Hi,
The following lines of code gives an error starting with
line where len() is used
local_BkFiles = glob.glob(localDirectoryName+'\\*' +
data + '*bk*')
local_BkFiles.sort(key=str.upper)
last_pv_File_Name = local_PvFiles[len(local_PvFiles)-1]
Hi,
The following lines of code gives an error starting with line
where len() is used
local_BkFiles = glob.glob(localDirectoryName+'\\*' + data +
'*bk*')
local_BkFiles.sort(key=str.upper)
last_pv_File_Name = local_PvFiles[len(local_PvFiles)-1]
I would like to automate Word 95 through 2007 using Word.Basic. The code
works fine on Windows XP + Word 95, but it fails on Windows XP + Word
2007.
Code:
import win32com.client
app = win32com.client.Dispatch(Word.Basic)
app.AppShow()
Error:
File COMObject Word.Basic, line 2, in AppShow
Hi all,
The following code snippet gives the error
import wmi
c = wmi.WMI()
for i in c.Win32_Product():
print i.Name
Output
---
Windows Installer Clean Up
Python 2.5.1
Debugging Tools for Windows
Windows Resource Kit Tools
Adobe Reader 8.1.2
Java(TM) SE Runtime Environment 6
Java(TM) 6
siddhartha veedaluru wrote:
Hi all,
The following code snippet gives the error
import wmi
c = wmi.WMI()
for i in c.Win32_Product():
print i.Name
WMI returns the Name as a unicode object.
You usually need to encode that one way or
another to print it out / save it to a file, etc.
Try this:
Some follow-up.
When having a minimal Path variable defined (that is with only
C:\MinGW\bin), python setup.py build does work.
There might be something in my complete regular Path that confuses distutils.
2008/5/18 Laurent Gautier [EMAIL PROTECTED]:
Hi,
I am experiencing problems while
Hello,
I'm using this code :
mypdc = 'mypdc'
dusers = 'DomName\DomainUsers'
obj = 'C:\\Mylogfile.log'
try:
domainusers_sid = wsec.LookupAccountName(mypdc, dusers)[0]
info = wsec.DACL_SECURITY_INFORMATION
sd = wsec.GetFileSecurity(obj, info)
Sorry I forgot some informations.
The error is :
1789, 'LookupAccountName', The trust relationship between this
workstation and the primary domain failed.
As I said, this doesn't always happen, sometimes logon runs successfully
and ACLs are correctly set (this is why I use 'LookupAccountName').
[.. snipped ..]
le dahut: I'm not sure which bit is wrong. I could
point out that traceback.print_exc () will *print*
the current exception (to stdout / stderr, not sure)
and *return* None, so your line:
logging.debug('Error %s'%traceback.print_exc())
probably doesn't do what you want, as it
What strange is is that:
try:
wsec.LookupAccountName(...)
except:
print 'Error'
shows :
- a traceback, as if I didn't put LookupAccountName in a try/except
statement
- the string 'error' so the program has also switched to except as if
the try/except has been correctly interpreted
So we
le dahut wrote:
What strange is is that:
try:
wsec.LookupAccountName(...)
except:
print 'Error'
shows :
- a traceback, as if I didn't put LookupAccountName in a try/except
statement
- the string 'error' so the program has also switched to except as if
the try/except has been
Tim Golden wrote :
le dahut wrote:
What strange is is that:
try:
wsec.LookupAccountName(...)
except:
print 'Error'
shows :
- a traceback, as if I didn't put LookupAccountName in a try/except
statement
- the string 'error' so the program has also switched to except as if
the
le dahut wrote:
Tim Golden wrote :
le dahut wrote:
What strange is is that:
try:
wsec.LookupAccountName(...)
except:
print 'Error'
shows :
- a traceback, as if I didn't put LookupAccountName in a try/except
statement
- the string 'error' so the program has also switched to
Let's start with the obvious, you *do* have the MSMQ stuff installed?
/Simon
2008/2/21, Sagar Khushalani [EMAIL PROTECTED]:
that was the error for the example from the website.
here it the error for my program.
Traceback (most recent call last):
File C:\Homework\Python\main.py, line 73,
Thanks! Another question, related and random. Someone, anyone?
I am trying to implement an MSMQ, and I have no idea whats going wrong. I
looked at:
http://comsci.liu.edu/~murali/python/python28.txt
one of the few places that actually has help with that. I tried to implement it
but for some
Sagar Khushalani wrote:
I'm using wxPython and the processing module. I create a main file
which has a gui with buttons. Each button creates starts a separate
process. However, when I click any of the buttons, I get an
stderr/stdout box from wxPython with the following error. I checked
I'm using wxPython and the processing module. I create a main file which has
a gui with buttons. Each button creates starts a separate process. However,
when I click any of the buttons, I get an stderr/stdout box from wxPython with
the following error. I checked online, and found some similar
Daryl Spitzer wrote:
I'm trying to open a Microsoft Project file using the following:
from win32com.client import Dispatch
a=Dispatch(MSProject.Application)
a.Visible=1
a.FileOpen(C:\test.mpp)
...but I get this error message.
Traceback (most recent call last):
File
TK Soh wrote:
I am trying to use SHChangeNotify to refresh the icon on the explorer
windows in the following script, but got an error:
--
import sys
from win32com.shell import shell, shellcon
def notify(f):
shell.SHChangeNotify(shellcon.SHCNE_UPDATEITEM,
On 5/22/07, Roger Upole [EMAIL PROTECTED] wrote:
Try a newer build of pywin32. There was a bug in some older versions
regarding how the function determined whether it needed a file path
or an id list.
Thanks. Actually I'm using the win32 extension bundled with
ActivePython, so I'd like to
I am trying to use SHChangeNotify to refresh the icon on the explorer
windows in the following script, but got an error:
--
import sys
from win32com.shell import shell, shellcon
def notify(f):
shell.SHChangeNotify(shellcon.SHCNE_UPDATEITEM,
Hi,
I'm using win32pdhutil.FindPerformanceAttributesByName in order to know
if 'explorer.exe' is running or not. Sometimes I get this error :
File win32pdhutil.pyc, line 97, in FindPerformanceAttributesByName
File win32pdhutil.pyc, line 60, in GetPerformanceAttributes
pywintypes.error:
le dahut wrote:
Hi,
I'm using win32pdhutil.FindPerformanceAttributesByName in order to know
if 'explorer.exe' is running or not. Sometimes I get this error :
File win32pdhutil.pyc, line 97, in FindPerformanceAttributesByName
File win32pdhutil.pyc, line 60, in
Tim Golden wrote:
le dahut wrote:
Hi,
I'm using win32pdhutil.FindPerformanceAttributesByName in order to know
if 'explorer.exe' is running or not. Sometimes I get this error :
File win32pdhutil.pyc, line 97, in FindPerformanceAttributesByName
File win32pdhutil.pyc, line 60, in
Tim Golden wrote :
le dahut wrote:
Hi,
I'm using win32pdhutil.FindPerformanceAttributesByName in order to know
if 'explorer.exe' is running or not. Sometimes I get this error :
File win32pdhutil.pyc, line 97, in FindPerformanceAttributesByName
File win32pdhutil.pyc, line 60, in
Hi!
I have created python object in VB.
But when I try to use this object I get Error 438: Object doesn't
support this property or method.
Set py = CreateObject(Python)
py.exec (print 'hello')
Also can I get how to register the class in the windows Registry with
name Python
I
On Tue, 20 Dec 2005 11:05:12 -0800, I wrote:
On Mon, 19 Dec 2005 08:58:17 -0500, [EMAIL PROTECTED] wrote:
I am trying to use the OSISoft PI (Plant Information) API to collect data
about processes within our facility, however, when I try to connect to the
PI server using their API calls, I
On Mon, 19 Dec 2005 08:58:17 -0500, [EMAIL PROTECTED] wrote:
I am trying to use the OSISoft PI (Plant Information) API to collect data
about processes within our facility, however, when I try to connect to the
PI server using their API calls, I get the following error
from ctypes import *
Hello all!
I am trying to use the OSISoft PI (Plant
Information) API to collect data about processes within our facility, however,
when I try to connect to the PI server using their API calls, I get the
following error
from ctypes import *
PiAPI=windll.piapi32
valid = 0
status =
Can anyone tell me what this error message means?
win32pdhutil.ShowAllProcesses()
Traceback (most recent call last):
File stdin, line 1, in ?
File c:\...\win32pdhutil.py, line 67, in ShowAllProcesses
items, instances = win32pdh.EnumObjectItems(None,None,object, win32pdh.PERF_
November 2005 10:04 AM
To: python-win32@python.org
Subject: [python-win32] Error calling win32pdh.EnumObjectItems
Can anyone tell me what this error message means?
win32pdhutil.ShowAllProcesses()
Traceback (most recent call last):
File stdin, line 1, in ?
File c:\...\win32pdhutil.py
Hi Tim,
thanks for your suggestions.
Does it fail if you run it outside of Pythonwin?
No it doesn't. So I can ignore this error, as the script will normally
run outside Pythonwin.
Are you sure you're
closing all of the pipes properly before starting a new one?
Yes, I explicitly close the
[Jürgen wrote]
Hi all,
currently I'm testing a scipt which converts many (500) ps files to
pdf. I use ghostscript and the conversion is done by win32pipe.popen(
ps2pdf.bat inputfile outputfile). I got the following error message, but
it seems that all files were correctly converted:
Hi Bill,
thanks for your help, it works for me too :-)
Jürgen
[Jürgen wrote]
Hi all,
currently I'm testing a scipt which converts many (500) ps files to
pdf. I use ghostscript and the conversion is done by win32pipe.popen(
ps2pdf.bat inputfile outputfile). I got the following error
I am getting an error from the install of...
pywin32-203.win32-py2.2.exe on an NT 4.0 system.
It looks like the import win32trace statement is the point of failure and
gives the error message...
error: (3, 'CreateMutex', 'The system cannot find the path specified.')
Does anyone recognize this
77 matches
Mail list logo