ImportError...pdo and adodbapi

Kathryn ksokol at schipul.com
Wed Aug 18 12:40:09 EDT 2004


ksokol at schipul.com (Kathryn) wrote in message news:<61cc2a0a.0407300932.7e97bbf2 at posting.google.com>...
> Hey folks,
> I read this board every day and now I need some help.  
> 
> I have a script that imports pdo and adodbapi...I have multiple
> sys.path.appends to define the relevant paths on my local machine and
> a server.
> ex:
> 
> import sys
> #local
> sys.path.append('C:\Python\adodbapi')
> sys.path.append('C:\Python\pdo')
> #server
> sys.path.append('D:\Python\adodbapi')
> sys.path.append('D:\Python\pdo')
> 
> import pdo
> import adodbapi
> 
> 
> This setup works fine on the server, as well as my old local machine. 
> Just switched local machines, reinstalled Python, still works fine on
> the server (as it should), but errors out when I run on my local
> machine.  Keep in mind the directory structure has not changed.
> 
> Here's the error:
> ImportError: No module named pdo
> ImportError: No module named adodbapi
> 
> Now, if I manually run the setup files for pdo and adodbapi, then run
> my script, it works like a gem.
> 
> Any insight?  What am I missing?
> 
> Thanks,
> Kathryn




....As it turns out:
> sys.path.append('C:/Python/adodbapi')
> sys.path.append('C:/Python/pdo')
> #server
> sys.path.append('D:/Python/adodbapi')
> sys.path.append('D:/Python/pdo')
(change of / direction) works just fine.  Who knows.  :)



More information about the Python-list mailing list