View Single Post
  #3 (permalink)  
Old 16-10-2008, 22:39
Rock's Avatar
Rock Rock is offline
Technical Support (eUKhost.com)
 
Join Date: Oct 2006
Location: localhost
Posts: 3,356
Send a message via MSN to Rock Send a message via Skype™ to Rock
Cool

to the forums..

It's clear from your post that you're running Python on a Windows platform.
The error occurred here is caused by the Python interpreter not being able to find the pywintypes26.dll file, which is located in C:\Python26 directory, the reason behind this is the PATH environment variable not defining the exact location of the Python installation directory.

To add the Python installed folder to your path variable, follow these simple steps:
1) Open command prompt [Start > Run > CMD].
2) Check the existing environment settings for the PATH variable using this "echo %PATH%".
3) Now copy/paste the following text without the quotes & press enter "path = %PATH%;C:\Python26"
4) Check the changes we did above worked or not using "echo %PATH%". This should show up the Python directory along with the original system paths.

Now try running the Python scripts, they should work..
Another workaround for this is to copy all the DLL's from the Python's BIN directory to the C:\Windows\System32 directory, but I'd suggest avoiding this..

Thanks for registering at EUKHost - Community Forums! We are glad you have chosen to be a part of our community and we hope you enjoy your stay.

All the best,
__________________

Rock _a.k.a._ Jack
Windows Hosting || Windows Reseller Hosting
Cloud Hosting 100% UPTIME! || Powerful Dedicated Servers
Follow eUKhost on Twitter || Join eUKhost Community on Facebook

For complaints, grievances or suggestions kindly email our FeedBack Dept.
Proper action will be taken accordingly & instantaneously!
Reply With Quote