Re: ImportError: No module named psycopg2

"Busser, Jim" <[email protected]>
Newsgroups gmane.comp.gnu.medical.devel
Message-ID <[email protected]>
On 2015-03-28, at 2:39 AM, Holger Patzelt <[email protected]> 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
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.