atabac / python-on-a-chip

Automatically exported from code.google.com/p/python-on-a-chip
Other
0 stars 0 forks source link

IPM crash on desktop platform for Mac OSX 10.5.7 #143

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. svn checkout http://python-on-a-chip.googlecode.com/svn/trunk/ 
python-on-a-chip-read-only
2. cd python-on-a-chip-read-only src/platform/desktop
3. make
4. ./main.out

What is the expected output? What do you see instead?
Type Ctrl+C to interrupt and Ctrl+D to quit (or Ctrl+Z <enter> on Win32).
ipm> 

Instead I see nothing. If I press enter three times i get this: 

lenovoscar:desktop admin$ ./main.out 

Traceback (most recent call first):
  File "../lib/ipm.py", line 97, in ipm
  File "main.py", line 19, in main
MemoryError detected by heap.c:506
lenovoscar:desktop admin$ 

If I instead write '1' and enter:

lenovoscar:desktop admin$ ./main.out 
1
Traceback (most recent call first):
  File "../lib/ipm.py", line 104, in ipm
  File "main.py", line 19, in main
AssertionError detected by interp.c:1707
lenovoscar:desktop admin$ 

What version of the product are you using? On what operating system?
Trunk, r615. Mac OS X 10.5.7. 

Please provide any additional information below.

Original issue reported on code.google.com by oscar.li...@gmail.com on 24 Sep 2010 at 6:43

GoogleCodeExporter commented 9 years ago
The second step has a typo, it was supposed to say: 
2. cd python-on-a-chip-read-only/src/platform/desktop

And now I noticed that I get the exact same problems in cygwin on Windows XP 
too. 

Now I have tried running make from the root directory on windows. I get the 
same behaviour from src/platform/desktop/main.out

I just read about tool/ipm.py. I guess I misunderstood everything. But I still 
don't understand how to run the interactive prompt with the desktop platform. 

Original comment by oscar.li...@gmail.com on 24 Sep 2010 at 9:25

GoogleCodeExporter commented 9 years ago
Oh... How I wish I could delete this issue. I'm sorry, but I do not have the 
required access to do that. 

Read 
http://code.google.com/p/python-on-a-chip/source/browse/trunk/docs/src/Interacti
vePyMite.txt

make ipm

Original comment by oscar.li...@gmail.com on 24 Sep 2010 at 9:59

GoogleCodeExporter commented 9 years ago
No problem.  It just takes an understanding of how things work.

'make' is for running a main.py that does something you've programmed.
'make ipm' is for when main.py calls ipm.ipm() and the ipm-host program has to 
run on the host PC.  Note that 'make ipm' does NOT work for when ipm is running 
on a non-desktop target platform.  You have to type the command lines directly 
for that.

Original comment by dwhall...@gmail.com on 28 Sep 2010 at 5:26