Re: ImportError: No module named psycopg2

Karsten Hilbert <[email protected]>
Newsgroups gmane.comp.gnu.medical.devel
Message-ID <[email protected]>
On Sat, Mar 28, 2015 at 10:39:32AM +0100, Holger Patzelt wrote:

> I have a MacBook Pro with Yosemite.
> 
> As we Plan to use gnumed for some business, I wanted to give it a try on my MacBook. 
> But unfortunately no matter what install-method I try i end up with:
> 
>  ./gm-from-vcs.sh 
> -------------------------------------------------
> fatal: Not a git repository (or any of the parent directories): .git
> Running from Git branch: 
> -------------------------------------------------
> Faulthandler not available ...
> Running from local source tree (/Users/hop2005/gnumed-client.1.5.4) ...
> Adjusting PYTHONPATH ...
> Faulthandler not available ...
> .========================================================
> | Unhandled exception caught !
> | Type : <type 'exceptions.ImportError'>
> | Value: No module named psycopg2
> `========================================================
> Traceback (most recent call last):
>   File "gnumed.py", line 623, in <module>
>     from Gnumed.pycommon import gmI18N, gmTools, gmDateTime, gmHooks
>   File "/Users/hop2005/gnumed-client.1.5.4/Gnumed/pycommon/gmDateTime.py", line 50, in <module>
>     import psycopg2						# this will go once datetime has timezone classes
> ImportError: No module named psycopg2
> 
> I DO have it installed in more than one way now.
> 
> eg.: sudo port install py26-psycopg2 +postgresql84
> 
> any hints??

Are you using the system Python or a user install thereof ?

Open a python interactive interpreter shell whichever way of the above and type

	import psycopg2

What does it say ?

Karsten
-- 
GPG key ID E4071346 @ eu.pool.sks-keyservers.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.