praba230890 / tinypy

Automatically exported from code.google.com/p/tinypy
Other
0 stars 0 forks source link

Running tinypy on ARM platform #52

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. compile tinypy using gcc toolkit for ARM architecture
2. run the tinypy binary with a script as an argument

The script contains single instruction:
print("TEST")

The tinypy returns with an error: 
Exception:
tp_load(boot.tpc)

If I put *.tpc files into the same directory where the tinypy binary is then it 
displays:
Exception:
tp_get: KeyError: open

I thought that tinypy is a standalone bianry. And it seems to be - at least the 
version compiled with mingw for Windows is (I have succesfully compiled).

Could you help me to run tinypy? Or at lease give some advice what these errors 
mean?

Original issue reported on code.google.com by D.Miron...@gmail.com on 2 Dec 2010 at 3:21

GoogleCodeExporter commented 9 years ago
Check that

is_tinypy = (str(1.0) == "1")
if not is_tinypy:
    from boot import * 

works as expected on ARM. Look at 'tp_str' function definition in section 'if 
(type == TP_NUMBER)'. Possibly error is somewhere here.

Original comment by breaker....@gmail.com on 3 Apr 2011 at 8:03