Re: Gump won't run: function: not found

2005-02-18 Thread Martin van den Bemt
Seems like your gump script is hosed.. I think dos2unix program can fix 
that, or copy & paste the contents of gump in a new file (using a 
terminal session), remove gump, rename the new file to gump, chmod +x 
the new file and run :)
I hit this proble a couple of times when editing bash scripts on windows 
and copying it directly to a linux box, it would give these strange 
warnings..
Don't know if this is the case though, but it seems similar..

Mvgr,
Martin
Graham Leggett wrote:
Hi all,
I have been trying to play around with Gump, but there seems to be some
components missing that gump requires, however the lack of a meaningful
error message leaves me stumped:
bash-2.03$ ./gump validate
./gump: function: not found
  Run the DTD validation tools on the metadata.
  Usage:
./gump validate
./gump: function: not found
./gump: validate
Any ideas?
Regards,
Graham
--
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Gump won't run: function: not found

2005-02-18 Thread Graham Leggett
Martin van den Bemt said:

> Seems like your gump script is hosed.. I think dos2unix program can fix
> that, or copy & paste the contents of gump in a new file (using a
> terminal session), remove gump, rename the new file to gump, chmod +x
> the new file and run :)
> I hit this proble a couple of times when editing bash scripts on windows
> and copying it directly to a linux box, it would give these strange
> warnings..
> Don't know if this is the case though, but it seems similar..

The gump code is a fresh checkout from svn to MacOSX, then moved to
Solaris, no Windows is involved anywhere. As far as I am aware, MacOSX
follows the Unix line ending conventions, but I could be wrong.

If I turn on python debugging, it does this, which seems to indicate line
ending problems of some kind:

bash-2.03$ python -d ./gump validate
  File "./gump", line 25
function usage
 ^
SyntaxError: invalid syntax

Regards,
Graham
--


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Gump won't run: function: not found

2005-02-18 Thread Martin van den Bemt
have a go at dos2unix (if you have installed that on solaris)
Something probably happened moving across the files..
Mvgr,
Martin
Graham Leggett wrote:
Martin van den Bemt said:

Seems like your gump script is hosed.. I think dos2unix program can fix
that, or copy & paste the contents of gump in a new file (using a
terminal session), remove gump, rename the new file to gump, chmod +x
the new file and run :)
I hit this proble a couple of times when editing bash scripts on windows
and copying it directly to a linux box, it would give these strange
warnings..
Don't know if this is the case though, but it seems similar..

The gump code is a fresh checkout from svn to MacOSX, then moved to
Solaris, no Windows is involved anywhere. As far as I am aware, MacOSX
follows the Unix line ending conventions, but I could be wrong.
If I turn on python debugging, it does this, which seems to indicate line
ending problems of some kind:
bash-2.03$ python -d ./gump validate
  File "./gump", line 25
function usage
 ^
SyntaxError: invalid syntax
Regards,
Graham
--
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Gump won't run: function: not found

2005-02-18 Thread Stefan Bodewig
On Fri, 18 Feb 2005, Graham Leggett <[EMAIL PROTECTED]> wrote:

> The gump code is a fresh checkout from svn to MacOSX,

I'm not sure whether we have svn:eol-style native on all files - and
whether I "corrected" all the Windows line-ends when I tried to clean
up the files.

Are you talking about the script named gump at the top of trunk?
This one does not have CRs and svn:eol-style is native.

Stefan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Gump won't run: function: not found

2005-02-18 Thread Stefan Bodewig
On Fri, 18 Feb 2005, Martin van den Bemt <[EMAIL PROTECTED]> wrote:

> have a go at dos2unix (if you have installed that on solaris)

tr -d '\r' < file > outfile

will do.

Stefan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Gump won't run: function: not found

2005-02-18 Thread Graham Leggett
Stefan Bodewig said:

> I'm not sure whether we have svn:eol-style native on all files - and
> whether I "corrected" all the Windows line-ends when I tried to clean
> up the files.
>
> Are you talking about the script named gump at the top of trunk?

Yes.

> This one does not have CRs and svn:eol-style is native.

I just checked out the gump SVN repo from scratch on the Solaris box, and
the problem remains.

The problem does not happen on the MacOSX machine though - which has an
older version of python on it (v2.3), while the Solaris machine has the
most recent release of python on it (v2.4).

Could it be that python has changed between v2.3 and v2.4 to cause a problem?

Regards,
Graham
--


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Gump won't run: function: not found

2005-02-18 Thread Stefan Bodewig
On Fri, 18 Feb 2005, Graham Leggett <[EMAIL PROTECTED]> wrote:

> Could it be that python has changed between v2.3 and v2.4 to cause a
> problem?

No idea, sorry.

Stefan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Gump won't run: function: not found

2005-02-18 Thread Graham Leggett
Martin van den Bemt said:

> have a go at dos2unix (if you have installed that on solaris)
> Something probably happened moving across the files..

As I said below, neither DOS nor Windows have been involved, so running it
through dos2unix is not likely to achieve anything. I checked it out
directly to the Solaris machine from SVN, and it still complains with the
error - the problem seems to be related to python v2.4.

dos2unix has no effect on the gump file:

bash-2.03$ cat gump | wc -c
9794
bash-2.03$ cat gump | dos2unix | wc -c
could not open /dev/kbd to get keyboard type US keyboard assumed
could not get keyboard type US keyboard assumed
9794

Regards,
Graham
--


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Gump won't run: function: not found

2005-02-18 Thread Graham Leggett
Stefan Bodewig said:

>> Could it be that python has changed between v2.3 and v2.4 to cause a
>> problem?
>
> No idea, sorry.

Has gump been tested at all using python v2.4? - it's new, having been
released in November last year.

Regards,
Graham
--


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Gump won't run: function: not found

2005-02-18 Thread Stefan Bodewig
On Fri, 18 Feb 2005, Graham Leggett <[EMAIL PROTECTED]> wrote:
> Stefan Bodewig said:
> 
>>> Could it be that python has changed between v2.3 and v2.4 to cause
>>> a problem?
>>
>> No idea, sorry.
> 
> Has gump been tested at all using python v2.4? - it's new, having
> been released in November last year.

I haven't, that's all I know.

Stefan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Gump won't run: function: not found

2005-02-18 Thread Graham Leggett
Stefan Bodewig said:

>> Has gump been tested at all using python v2.4? - it's new, having
>> been released in November last year.
>
> I haven't, that's all I know.

There is an irony in that the latest trunk of gump doesn't run under the
latest release of python... :)

Busy trying to install python v2.3 to see if that will make it work on
Solaris.

Regards,
Graham
--


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Gump won't run: function: not found

2005-02-18 Thread Graham Leggett
Graham Leggett said:

> Busy trying to install python v2.3 to see if that will make it work on
> Solaris.

Just tried python v2.3.5, but the same problem is present. Seems gump
won't work on Solaris at all :(

Regards,
Graham
--


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Gump won't run: function: not found

2005-02-18 Thread Martin van den Bemt
I assume you have installed the sun gnu package (although I saw the bash 
   pointer, there could be something wrong..)
Did you also try the tr thing that stefan suggested btw ?
And the copy & paste to a new bash file ?
And maybe check if the file starts with a #!/path/to/bash and also 
points to the correct path to bash for your solaris install.
(sorry don't have solaris running anymore, or else I could have a go at it)

Just some ideas, since I don't have a clue what else could be wrong..
Mvgr,
Martin
Graham Leggett wrote:
Graham Leggett said:

Busy trying to install python v2.3 to see if that will make it work on
Solaris.

Just tried python v2.3.5, but the same problem is present. Seems gump
won't work on Solaris at all :(
Regards,
Graham
--
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Gump won't run: function: not found

2005-02-19 Thread Graham Leggett
Martin van den Bemt wrote:
And maybe check if the file starts with a #!/path/to/bash and also 
points to the correct path to bash for your solaris install.
I suddenly realised that the "gump" script is not a python script, but a 
non portable shell script - if you change /bin/sh at the top of the 
script to point at bash directly, suddenly the script starts working.

I have not yet been able to figure out exacyl what portability problems 
there are, but in the mean time it would probably save a lot of drama if 
/bin/sh was changed to /bin/bash, to show that bash is required.

Regards,
Graham
--


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Gump won't run: function: not found

2005-02-19 Thread Martin van den Bemt
Glad to hear it runs :)
Anyone opposed to the change proposed by Graham ?
On redhat / fedora it defaults to /bin/bash, don't if other linux 
variants are the same.. (eg on debian)..

Mvgr,
Martin

Graham Leggett wrote:
Martin van den Bemt wrote:
And maybe check if the file starts with a #!/path/to/bash and also 
points to the correct path to bash for your solaris install.

I suddenly realised that the "gump" script is not a python script, but a 
non portable shell script - if you change /bin/sh at the top of the 
script to point at bash directly, suddenly the script starts working.

I have not yet been able to figure out exacyl what portability problems 
there are, but in the mean time it would probably save a lot of drama if 
/bin/sh was changed to /bin/bash, to show that bash is required.

Regards,
Graham
--
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Gump won't run: function: not found

2005-02-20 Thread Stefan Bodewig
On Sat, 19 Feb 2005, Martin van den Bemt <[EMAIL PROTECTED]> wrote:

> Anyone opposed to the change proposed by Graham ?

No, although I'd prefer to find the reason it doesn't work on plain
Bourne Shells as well.

> On redhat / fedora it defaults to /bin/bash, don't if other linux
> variants are the same..  (eg on debian)..

At least on Brutus /bis/sh links to bash.

Stefan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Gump won't run: function: not found

2005-02-21 Thread Martin van den Bemt

Stefan Bodewig wrote:
On Sat, 19 Feb 2005, Martin van den Bemt <[EMAIL PROTECTED]> wrote:

Anyone opposed to the change proposed by Graham ?

No, although I'd prefer to find the reason it doesn't work on plain
Bourne Shells as well.
I'll try to figure that out this week, with different kind of shells..
I am in desperate need anyway to switch to a more modern version of gump 
. I think my servers and workstations are stable enough to have a go at 
this (my hardware has been blacking out on me big time lately..)

Mvgr,
Martin
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]