gnumed-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnumed-devel] ImportError: No module named psycopg2


From: Busser, Jim
Subject: Re: [Gnumed-devel] ImportError: No module named psycopg2
Date: Sat, 28 Mar 2015 11:08:44 +0000

On 2015-03-28, at 2:39 AM, Holger Patzelt <address@hidden> wrote:

> Hi folks,
> 
> 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??

Hi Holger,

I might wonder if your GNUmed is expecting -- but cannot locate at the end of 
its attempted $PATHs -- the module psycopg2 but maybe it is not currently 
succeeding to be aware of something like

        
/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/

which may depend on from which you are trying to run GNUmed.

What does

        echo $PATH

return?

-- Jim


reply via email to

[Prev in Thread] Current Thread [Next in Thread]