gnumed-devel
[Top][All Lists]
Advanced

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

Re: [Gnumed-devel] python-hl7 dependency


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] python-hl7 dependency
Date: Wed, 20 Mar 2013 16:17:22 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Mar 19, 2013 at 11:34:05PM +0000, Jim Busser wrote:

> >From the terminal output
> 
>     .========================================================
>     | Unhandled exception caught !
>     | Type : <type 'exceptions.ImportError'>
>     | Value: No module named hl7
>     `========================================================
>     Traceback (most recent call last):
>       File "gnumed.py", line 601, in <module>
>         from Gnumed.wxpython import gmGuiMain
>       File 
> "/Users/djb/Downloads/gnumed-client.1.3.0/Gnumed/wxpython/gmGuiMain.py", line 
> 82, in <module>
>         from Gnumed.wxpython import gmEMRBrowser
>       File 
> "/Users/djb/Downloads/gnumed-client.1.3.0/Gnumed/wxpython/gmEMRBrowser.py", 
> line 36, in <module>
>         from Gnumed.wxpython import gmVaccWidgets
>       File 
> "/Users/djb/Downloads/gnumed-client.1.3.0/Gnumed/wxpython/gmVaccWidgets.py", 
> line 38, in <module>
>         from Gnumed.wxpython import gmFormWidgets
>       File 
> "/Users/djb/Downloads/gnumed-client.1.3.0/Gnumed/wxpython/gmFormWidgets.py", 
> line 27, in <module>
>         from Gnumed.wxpython import gmMacro
>       File 
> "/Users/djb/Downloads/gnumed-client.1.3.0/Gnumed/wxpython/gmMacro.py", line 
> 54, in <module>
>         from Gnumed.wxpython import gmMeasurementWidgets
>       File 
> "/Users/djb/Downloads/gnumed-client.1.3.0/Gnumed/wxpython/gmMeasurementWidgets.py",
>  line 24, in <module>
>         from Gnumed.business import gmHL7
>       File 
> "/Users/djb/Downloads/gnumed-client.1.3.0/Gnumed/business/gmHL7.py", line 14, 
> in <module>
>         import hl7 as pyhl7
>     ImportError: No module named hl7
> 
> it seemed that gnumed was looking for hl7 not inside
> 
>       Gnumed.business (i.e. not inside the aliased …/client/business )
> 
> but at the same level as the client directory,

No, GNUmed tells Python to look for it. Python looks for it
in any of the PYTHONPATH locations.

> so from the untarred hl7-0.2.5 I simply dragged a copy of the hl7 directory 
> containing the files
> 
>       __init__.py
>       client.py
> 
> so that it is inside my .../client thusly
> 
>       /Users/djb/Downloads/gnumed-client.1.3.0/client/hl7/
> 
> and that seems to work.

I see. Indeed, that can work because the gnumed launcher
shell script adds that directory to PYTHONPATH.

Karsten
-- 
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



reply via email to

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