Thread: [Pydev-code] eclipse pywintypes.com_error
Brought to you by:
fabioz
From: <gur...@gm...> - 2007-12-08 20:21:27
|
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 = 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 = 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 |
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 > |
From: <gur...@gm...> - 2007-12-09 20:20:52
|
Hello again, i attempted remove and add python interpreter there is no change. and i am writing the outputs from idle and eclipse-pydev correspondingly : <idle> >>> import sys >>> print sys.path ['C:\\Python25\\Lib\\idlelib', 'C:\\Windows\\system32\\python25.zip', 'C:\\Python25\\DLLs', 'C:\\Python25\\lib', 'C:\\Python25\\lib\\plat-win', 'C:\\Python25\\lib\\lib-tk', 'C:\\Python25', 'C:\\Python25\\lib\\site-packages', 'C:\\Python25\\lib\\site-packages\\win32', 'C:\\Python25\\lib\\site-packages\\win32\\lib', 'C:\\Python25\\lib\\site-packages\\Pythonwin'] >>> import win32com.client >>> d=3Dwin32com.client.Dispatch ("ADODB.Command") >>> print d <COMObject <unknown>> </idle> <eclipse-pydev> import sys import win32com.client print sys.path d=3Dwin32com.client.Dispatch ("ADODB.Command") print d ['D:\\dev\\workspace\\pyProject\\src\\myPackage', 'D:\\dev\\workspace\\pyProject\\src', 'C:\\Python25', 'C:\\Python25\\DLLs', 'C:\\Python25\\lib', 'C:\\Python25\\lib\\lib-tk', 'C:\\Python25\\lib\\plat-win', 'C:\\Python25\\lib\\site-packages', 'C:\\Python25\\lib\\site-packages\\Pythonwin', 'C:\\Python25\\lib\\site-packages\\win32', 'C:\\Python25\\lib\\site-packages\\win32\\lib', 'C:\\Windows\\System32\\python25.zip'] Traceback (most recent call last): File "D:\dev\workspace\pyProject\src\myPackage\myModule.py", line 6, in <module> d=3Dwin32com.client.Dispatch ("ADODB.Command") File "C:\Python25\lib\site-packages\win32com\client\__init__.py", line 95, in Dispatch dispatch, userName =3D dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx) File "C:\Python25\Lib\site-packages\win32com\client\dynamic.py", line 98, in _GetGoodDispatchAndUserName return (_GetGoodDispatch(IDispatch, clsctx), userName) File "C:\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) </eclipse-pydev> Thanks, Gurkan On Dec 9, 2007 7:42 PM, Fabio Zadrozny <fa...@gm...> wrote: > 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 > > > > ------------------------------------------------------------------------- > 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 > |