Re: [Pydev-code] eclipse pywintypes.com_error
Brought to you by:
fabioz
From: Fabio Z. <fa...@gm...> - 2007-12-09 17:42:16
|
It's probably something in your pythonpath (or path) configuration: a simple attempt would be removing your python interpreter and adding it again to see if it gets any possible changes (otherwise, you'll have to identify what's different when you're running from eclipse). Cheers, Fabio On Dec 8, 2007 5:21 PM, g=FCrkan serin <gur...@gm...> wrote: > Hello everybody, > > i am using windows vista ultimate with an administrative account,python > 2.5 ,eclipse 3.2,pywin32-210.win32-py2.5 and pydev plugin(verson > :1.3.10),and here is my problem : > > <code> > import win32com.client > win32com.client.Dispatch ("ADODB.Command") > </code> > > and with this code i get the error : > > Traceback (most recent call last): > File "H:\dev\eclipse\workspace\pyProject\src\pyPackage > \adDeneme3.py", line 4, in <module> > win32com.client.Dispatch ("ADODB.Command") > File "E:\Python25\Lib\site-packages\win32com\client\__init__.py", > line 95, in Dispatch > dispatch, userName =3D > dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx) > File "E:\Python25\Lib\site-packages\win32com\client\dynamic.py", > line 98, in _GetGoodDispatchAndUserName > return (_GetGoodDispatch(IDispatch, clsctx), userName) > File "E:\Python25\Lib\site-packages\win32com\client\dynamic.py", > line 78, in _GetGoodDispatch > IDispatch =3D pythoncom.CoCreateInstance(IDispatch, None, clsctx, > pythoncom.IID_IDispatch) > pywintypes.com_error: (-2147024770, 'The specified module could not be > found.', None, None) > > > when i run this script from idle or command line everything goes > fine,i get this error with only pydev and eclipse. > > thanks > > ps : i also tried this with Windows XP,in that OS both the idle and > eclipse works fine,i had no problem > > > Gurkan > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > pydev-code mailing list > pyd...@li... > https://lists.sourceforge.net/lists/listinfo/pydev-code > |