gnumed-devel
[Top][All Lists]
Advanced

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

Re: [Gnumed-devel] GNUmed download & installation problems (Macintosh Ti


From: Karsten Hilbert
Subject: Re: [Gnumed-devel] GNUmed download & installation problems (Macintosh Tiger)
Date: Fri, 28 Sep 2007 11:14:51 +0200
User-agent: Mutt/1.5.16 (2007-06-11)

On Fri, Sep 28, 2007 at 12:56:16AM -0700, Jim Busser wrote:

> and then does (with $ being my prompt)
>
>       $ python gm-from-cvs

gm-from-cvs.sh is a *shell* script, not a Python script, so just do (in the 
shell):

        $ ./gm-from-cvs.sh

There is also a gm-from-cvs-macosc.sh available which
wasn't, however, included in the tgz due to an oversight.
*However*, it isn't necessary either, gm-from-cvs.sh should
do just fine. I just double-checked and removed
gm-from-cvs-macosx.sh from CVS.

> which gave after a few different efforts
>
>       iMac:~/Desktop/GNUmed-0.2.7.0 jb$ python gm-from-cvs
>       python: can't open file 'gm-from-cvs'
gm-from-cvs doesn't exist (only gm-from-cvs.sh)

>       iMac:~/Desktop/GNUmed-0.2.7.0 jb$ pythonw gm-from-cvs.sh
>       
> /System/Library/Frameworks/Python.framework/Versions/2.3/Resources/Python.app/Contents/MacOS/Python:
>  
> can't open file 'gm-from-cvs.sh'
gm-from-cvs.sh lives under client/.

> At another time I got
>       iMac:~/Desktop/GNUmed-0.2.7.0/client jb$ python gm-from-cvs.sh
>         File "gm-from-cvs.sh", line 12
>           cd ../
>               ^
Here Python finds the file which, however, won't help as
gm-from-cvs.sh isn't a Python module but a shell script.
Hence Python correctly complains about seemingly faulty
Python code in what actually is a shell script.

> Does the following post explain anything?
>       
> http://www.nabble.com/Lost-among-multiple-Python-version-on-my-mac-t2661692.html
It explains the problem with Python on MacOSX but does not
explain that you cannot run shell scripts with Python ;-)

Simply do

cd client/
./gm-from-cvs.sh

That really *should* work to some degree.

Thanks for your effort,
Karsten
-- 
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346




reply via email to

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