On 23/03/2015 6:38 PM, Mike Dewhirst wrote:
I'm failing to install psycopg2 in a virtualenv and hoping someone can help. My efforts so far have blown it away across all virtualenvs. I have obviously installed an incompatible DLL file somewhere as follows ...File "C:\Users\mike\env\xxdx\lib\site-packages\django\db\backends\postgresql_psycopg2\base.py", line 25, in <module> raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e) django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: DLL load failed: %1 is not a valid Win32 application.
All my own fault. I had tried to install amd64 psycopg2 and didn't read the error message with an open mind. I only noticed this when I visited stickpeople (thanks Rasjid Wilcox and Xin Huang) and "Win32" jumped off the page. Both my Pythons are 32-bit.
All is now working as Guido intended but I obviously need to study wheels Thanks Mike
This is a Windows 8.1 laptop in an activated py2.7.9 env and Chris Gohlke's pre-compiled (where I think "pre-" means "presumably") psycopg2-2.5.5-cp27-none-win_amd64.whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/ I realise Mr Gohlke offers no warranty/support etc. Pip 6.08 doesn't like me using such a downloaded wheel ... (xxdx) C:\Users\mike\env\xxdx\ssds>pip install C:\Users\mike\Downloads\python\postgresql\psycopg2-2.5.5-cp27-none-win_amd64.whl psycopg2-2.5.5-cp27-none-win_amd64.whl is not a supported wheel on this platform. ... and demands a compiler if I use the more common approach ... (xxdx) C:\Users\mike\env\xxdx>pip install psycopg2 Collecting psycopg2 Downloading psycopg2-2.6.tar.gz (367kB) 100% |################################| 368kB 650kB/s Installing collected packages: psycopg2 Running setup.py install for psycopg2 building 'psycopg2._psycopg' extension error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat). Get it from http://aka.ms/vcpython27 Unfortunately, http://aka.ms/vcpython27 eventually leads to http://www.microsoft.com/en-us/download/confirmation.aspx?id=44266 and just does nothing. Having studied that page carefully and finding a "click here" if nothing happens after 30 seconds it seems there is no server to be found on the other side of that "click here". Does anyone have any suggestions? Thanks Mike _______________________________________________ melbourne-pug mailing list [email protected] https://mail.python.org/mailman/listinfo/melbourne-pug
_______________________________________________ melbourne-pug mailing list [email protected] https://mail.python.org/mailman/listinfo/melbourne-pug
