LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 10-14-2009, 04:49 AM   #1
threaderslash
Member
 
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:

Code:
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 main.py file, and try run, it gives the error:

Code:
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, 02:12 PM   #2
threaderslash
Member
 
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

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


Reply

Tags
member


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 09:47 AM
Python: how to import a python file that doesn't end in .py? BrianK Programming 5 04-15-2008 01:35 PM
Python 'import wx' problem jdwilder Programming 6 07-11-2006 06:17 AM
python, import and execfile() cs-cam Programming 1 10-18-2005 09:47 PM
Python - can I import my own stuff? miknight Programming 1 06-10-2003 08:48 AM


All times are GMT -5. The time now is 11:04 PM.

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