Re: Installing via pip under Win7 + virtualenv + VC++2008 - Mailing list psycopg

From Joe Abbate
Subject Re: Installing via pip under Win7 + virtualenv + VC++2008
Date
Msg-id 4DE82F44.2010509@freedomcircle.com
Whole thread Raw
In response to Installing via pip under Win7 + virtualenv + VC++2008  (Stephen Lacy <slacy@slacy.com>)
List psycopg
On 06/02/2011 07:07 PM, Stephen Lacy wrote:
> But, when running python, I get this:
>
> Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit
> (Intel)] on
> win32
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import psycopg2
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "psycopg2\__init__.py", line 71, in <module>
>     from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
> ImportError: DLL load failed: The specified module could not be found.
>>>>
>
> Any debugging help would be greatly appreciated.  I know I can install
> win-psycopg2, but I'd rather just get the pip install working for
> everyone, since it automates the install in a scriptable way.

The first thing I'd do is

import sys
print sys.path

and take a look at the list of dirs.  On Windows XP, non-virtualenv, I
see Python\lib, Python\DLLs, Python\lib\plat-win,
Python\lib\site-packages, among others.

Joe

psycopg by date:

Previous
From: Stephen Lacy
Date:
Subject: Installing via pip under Win7 + virtualenv + VC++2008
Next
From: Daniele Varrazzo
Date:
Subject: Re: Installing via pip under Win7 + virtualenv + VC++2008