[python-win32] Problem with win32com and scikits timeseries
maubriga at gmail.com
Fri Jan 28 17:15:06 CET 2011
I tried to dig a little further in this, but with no success.
I can import the module with no problem and I can't replicate the error
outside of the COM object.
If I run in pythonWin the following lines
>>> from win32com.server.policy import _import_module
>>> a= _import_module('scikits.timeseries.cseries')
<module 'scikits.timeseries.cseries' from
I do not get any error. Matt Knox suggested it could have something to do
with threading, but even calling CoInitialize before importing the
scikits.timeseries module does not solve the problem.
Why would 'cseries' fail to load only when used though the com interface?
On Thu, Jan 27, 2011 at 12:15 AM, Mark Hammond <skippy.hammond at gmail.com>wrote:
> On 24/01/2011 11:30 PM, Mauro wrote:
>> I get the following error when importing Date from scikits.timeseries.
>> The error is there only when I interface python with Excel using COM. It
>> is enough to import anything from scikits.timeseries to get the error.
>> Any help?
>> I am using Python2.7 and scikits.timeseries-0.91.3
>> line 79, in <module>
>> from cseries import freq_constants
>> ImportError: DLL load failed: A dynamic link library (DLL)
>> initialization routine failed.
>> pythoncom error: Python error invoking COM method.
> This is the root of your problem - the 'cseries' module, which appears to
> be part of the timeseries package, has failed to load. You probably need to
> talk to whoever provides that module.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the python-win32