[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnumed-devel] python-hl7 dependency
From: |
Busser, Jim |
Subject: |
Re: [Gnumed-devel] python-hl7 dependency |
Date: |
Tue, 19 Mar 2013 23:13:19 +0000 |
On 2013-03-19, at 5:20 AM, Karsten Hilbert <address@hidden> wrote:
> On Mon, Mar 18, 2013 at 02:23:41AM +0100, Jerzy Luszawski wrote:
>
>> Another minor problem I got when running from VCS tree was dependency on
>> python-hl7.
>> When this library is missing the client throws unhandled exception.
>>
>> ------- terminal output ---
>> .========================================================
>> | Unhandled exception caught !
>> | Type : <type 'exceptions.ImportError'>
>> | Value: No module named hl7
>> `========================================================
>> Traceback (most recent call last):
>> File "gnumed.py", line 603, in <module>
>> from Gnumed.wxpython import gmGuiMain
>> File
>> "/home/jll2/prg/gm-git/gnumed/gnumed/gnumed/Gnumed/wxpython/gmGuiMain.py",
>> line 82, in <module>
>> from Gnumed.wxpython import gmEMRBrowser
>> File
>> "/home/jll2/prg/gm-git/gnumed/gnumed/gnumed/Gnumed/wxpython/gmEMRBrowser.py",
>> line 35, in <module>
>> from Gnumed.wxpython import gmVaccWidgets
>> File
>> "/home/jll2/prg/gm-git/gnumed/gnumed/gnumed/Gnumed/wxpython/gmVaccWidgets.py",
>> line 38, in <module>
>> from Gnumed.wxpython import gmFormWidgets
>> File
>> "/home/jll2/prg/gm-git/gnumed/gnumed/gnumed/Gnumed/wxpython/gmFormWidgets.py",
>> line 26, in <module>
>> from Gnumed.wxpython import gmMacro
>> File
>> "/home/jll2/prg/gm-git/gnumed/gnumed/gnumed/Gnumed/wxpython/gmMacro.py",
>> line 54, in <module>
>> from Gnumed.wxpython import gmMeasurementWidgets
>> File
>> "/home/jll2/prg/gm-git/gnumed/gnumed/gnumed/Gnumed/wxpython/gmMeasurementWidgets.py",
>> line 24, in <module>
>> from Gnumed.business import gmHL7
>> File "/home/jll2/prg/gm-git/gnumed/gnumed/gnumed/Gnumed/business/gmHL7.py",
>> line 14, in <module>
>> import hl7 as pyhl7
>> ImportError: No module named hl7
>> ----------- end of terminal output ----
>
> Ah, indeed. I fixed this by only importing python-hl7 as
> needed for the time being.
>
>> This was easy to handle - I just installed it, but could not find any hint
>> about this prerequisite in documentation (wiki).
>> Perhaps check-prerequisites script should test for its presence?
>
> Good idea.
Debian appears to use python-hl7 0.2.2 however from https://pypi.python.org can
be downloaded the following which was uploaded on 2012-03-14 :
https://pypi.python.org/packages/source/h/hl7/hl7-0.2.5.tar.gz
and it untars to the files listed below.
Bearing in mind that, under Mac OS X11 (MacPorts), my binaries -- for example
gnuplot -- are currently located in
/opt/local/bin/gnuplot
but the following is python code, where should it go? In
/external-tools (at the same level as /client)
or in
/etc/gnumed/
??
hl7-0.2.5
docs
hl7
__init__.py
client.py
hl7.egg-info
PKG-INFO
setup.cfg
tests
setup.py
LICENSE
MANIFEST.in
README.rst
-- Jim