Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 10-14-2009, 03:49 AM   #1
Registered: Dec 2008
Location: HongKong
Distribution: Fedora/Centos/RedHat
Posts: 115

Rep: Reputation: 15
Cool Python: win32com.client import problem

Hi Everybody

I have 2 imports:

import pythoncom
from win32com.client import Dispatch
if I run it on my Python 2.6 Console, it works nicely. However, when I go to Eclipse IDE, open a project, open a file, and try run, it gives the error:

import pythoncom
ImportError: No module named pythoncom
All other imports are working ok on Eclipse IDE -- e.g. import MySQLdb.

Any suggestion about what is missing?

All comments and suggestions are welcome.
Old 10-14-2009, 01:12 PM   #2
Registered: Dec 2008
Location: HongKong
Distribution: Fedora/Centos/RedHat
Posts: 115

Original Poster
Rep: Reputation: 15
Lightbulb win32com.client import problem : solved

---------- ---------- ---------- ----------

-- hope it can help and save time for others too

Here is what did and works:
* copy the file mfc71.dll on windows\system32
* copy the same to your directories Python26\DLLs and Python26\lib\site-packages\win32
* go to preferences : pydev : interpreter python : remove all the interpreter you have there. apply, ok.
then add python 2.6 again, apply, ok.

this will do the trick.... ThreaderSlash

---------- ---------- ---------- ----------



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I import Tkinter into Python mugglemage Linux - Software 5 07-02-2008 08:47 AM
Python: how to import a python file that doesn't end in .py? BrianK Programming 5 04-15-2008 12:35 PM
Python 'import wx' problem jdwilder Programming 6 07-11-2006 05:17 AM
python, import and execfile() cs-cam Programming 1 10-18-2005 08:47 PM
Python - can I import my own stuff? miknight Programming 1 06-10-2003 07:48 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:53 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration