---------------------------------------------------------------------------------
incorrectly.
Please contact the application's support team for more information.
---------------------------------------------------------------------------------
I use Python 2.7.3 and Pywin32.218 on Win-7-64 bits.
Post by Blair HallOK, sorry, here are some more details.
I have Python 2.7.8, win32, running on a Windows7 64-bit home machine
(not professional).
#---------------------------------------
import pythoncom
#import uuid
_reg_clsid_ = '{E3D5F332-F080-47B3-A319-A3A0E287E466}'
_reg_progid_ = "BugServer"
_public_methods_ = ['hello']
pass
#------------------------------------------------------------------------
return "Hello {}".format(who)
#============================================================================
# cmd options: --register --debug and --unregister
import win32com.server.register
win32com.server.register.UseCommandLine(Bug)
#---------------------------------------------
As it is, this works fine. I just run the script with an Admin command
window to register the server. But when I uncomment the 'import uuid'
line the error occurs as Excel opens.
In my VBA code I have (in ThisWorkbook)
Private Sub Workbook_Open()
' When the workbook opens we create the object
Set Bug = CreateObject("BugServer")
Debug.Print "open"
End Sub
and in a separate module I have defined the UDF
Public Bug As Object
Function hello(ByVal expr As String) As Variant
'
'
hello = Bug.hello(expr)
End Function
Thanks for the help.
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?
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?
_______________________________________________
python-win32 mailing list
https://mail.python.org/mailman/listinfo/python-win32
_______________________________________________
python-win32 mailing list
https://mail.python.org/mailman/listinfo/python-win32