You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by Nicola Ken Barozzi <ni...@apache.org> on 2003/04/15 16:03:38 UTC

Problems running gump.py

I've copied gump.py to jakarta-gump, and changed line 306 to

   workspace=load('PC103.xml')

where PC103.xml is my profile.

Then I go in the W2k shell, cd in the dir, but after a 'python gump.py' 
I get a Gui dialog that tells me that there was a 16bit mode invalid 
instruction. bleah :-P

Ok, so I ire up cygwin, and the result it:

barozzink@PC103 /cygdrive/c/jbprojects/jakarta-gump
$ python gump.py
Traceback (most recent call last):
   File "gump.py", line 39, in ?
     class GumpBase(object):
NameError: name 'object' is not defined


Fine, let's try the IDLE Python shell:

IDLE 0.8 -- press F1 for help
 >>>
   File "C:\jbprojects\jakarta-gump\gump.py", line 345
     dump('project',gump)
                        ^
SyntaxError: invalid syntax
   File "C:\jbprojects\jakarta-gump\gump.py", line 345
     dump('project',gump)
                        ^
SyntaxError: invalid syntax


Finally I double-click on the file, and I finally see something passing 
by at the speed of light. Armed with patience, I wait with th epause 
button, and finally understand that in this way it works.

I use Python 2.2.2, and put it in front of the path.

Any ideas on why this happens?

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Re: - better - Re: Problems running gump.py

Posted by Sam Ruby <ru...@apache.org>.
Nicola Ken Barozzi wrote:
> 
> Ok, now it works. But if I run it in IDLE I have problems with the rubix 
> file path. If I give the full path via c:\... etc it chokes, what should 
> I give it... doh.

The following works for me with ActivePython [1] on Windows XP:

   'c:\\gump\\rubix.xml'
   'c:/gump/rubix.xml'
   r'c:\gump\rubix.xml'

The following does *not* work for me:

   'c:\gump\rubix.xml'

- Sam Ruby

[1] http://aspn.activestate.com/ASPN/Python



Re: - better - Re: Problems running gump.py

Posted by Nicola Ken Barozzi <ni...@apache.org>.
Steven Noels wrote, On 15/04/2003 16.29:
> On 15/04/2003 16:17 Nicola Ken Barozzi wrote:
> 
>>
>> Nicola Ken Barozzi wrote, On 15/04/2003 16.03:
>> ...
>>
>> Ok, solved the main problem, I had it in Cygwin too and it was messing 
>> up with the individually installed version.
>>
>> Unfortunately, the following still happens:
> 
> strange - I'm doing 'gump' and 'python gump.py' and they are running fine.

Yes, I got to that, the problem was the cygwin dups.

> Is your Python install OK? Can you 'import sys' after starting 'python'?

Ok, now it works. But if I run it in IDLE I have problems with the rubix 
file path. If I give the full path via c:\... etc it chokes, what should 
I give it... doh.

-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------


Re: - better - Re: Problems running gump.py

Posted by Steven Noels <st...@outerthought.org>.
On 15/04/2003 16:17 Nicola Ken Barozzi wrote:
> 
> Nicola Ken Barozzi wrote, On 15/04/2003 16.03:
> ...
> 
> Ok, solved the main problem, I had it in Cygwin too and it was messing 
> up with the individually installed version.
> 
> Unfortunately, the following still happens:

strange - I'm doing 'gump' and 'python gump.py' and they are running fine.

Is your Python install OK? Can you 'import sys' after starting 'python'?

</Steven>
-- 
Steven Noels                            http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at            http://blogs.cocoondev.org/stevenn/
stevenn at outerthought.org                stevenn at apache.org


- better - Re: Problems running gump.py

Posted by Nicola Ken Barozzi <ni...@apache.org>.
Nicola Ken Barozzi wrote, On 15/04/2003 16.03:
...

Ok, solved the main problem, I had it in Cygwin too and it was messing 
up with the individually installed version.

Unfortunately, the following still happens:

> Fine, let's try the IDLE Python shell:
> 
> IDLE 0.8 -- press F1 for help
>  >>>
>   File "C:\jbprojects\jakarta-gump\gump.py", line 345
>     dump('project',gump)
>                        ^
> SyntaxError: invalid syntax
>   File "C:\jbprojects\jakarta-gump\gump.py", line 345
>     dump('project',gump)
>                        ^
> SyntaxError: invalid syntax


-- 
Nicola Ken Barozzi                   nicolaken@apache.org
             - verba volant, scripta manent -
    (discussions get forgotten, just code remains)
---------------------------------------------------------------------