|
From: | Sebastian Hilbert |
Subject: | Re: [Gnumed-devel] ImportError: No module named psycopg2 |
Date: | Sat, 28 Mar 2015 13:52:43 +0100 |
User-agent: | KMail/4.14.2 (Linux/3.16.0-34-generic; KDE/4.14.2; x86_64; ; ) |
A word of caution. Mac OS X does provide way too many ways to install python (along with the system provided one) to fail in many ways.
I have been there.
The most recent attempt to get everything installed is documented here.
http://wiki.gnumed.de/bin/view/Gnumed/MacNativeGNUmed
Unfortunately the only sane way is to package everything into a dmg for Mac. I have it running here (installed properly) but have not yet found the time to package this into a dmg (in a scripted way).
Forget about MacPorts, Fink and Homebrew or you are on your way to dependency hell.
While it is doable on Mac I currently lack the time to properly package GNUmed. I would however be happy to teach someone how to do it. Last time I went through it was probably a year ago but I feel confident that it can be accomplished within two weeks or so.
If this is attempted wxpython 3.0 should be used as it provides much nicer support for Mac environments.
We should schedule a GNUmed coding sprint for this year. This would give us the opportunity to get the automatic GNUmed packaging for Mac and Windows done.
Am Samstag, 28. März 2015, 13:07:08 schrieb Karsten Hilbert: > 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
|
[Prev in Thread] | Current Thread | [Next in Thread] |