#8648 NORM Not Tri: .py file not running as started activity
Zarro Boogs per Child
bugtracker at laptop.org
Wed Sep 24 18:12:25 EDT 2008
#8648: .py file not running as started activity
--------------------+-------------------------------------------------------
Reporter: Rmyers | Owner: marco
Type: defect | Status: new
Priority: normal | Milestone: Not Triaged
Component: sugar | Version: Development build as of this date
Keywords: | Next_action: never set
Verified: 0 | Blockedby:
Blocking: |
--------------------+-------------------------------------------------------
I attempted a small edit of ReadEtexts to change the display font from
sans to serif. This change would not execute. This bug is being filed
against Sugar as 1)ReadEtext does not have a Trac component category, and
2)I think that this is pretty clearly this is happening outside the
activity.
I have successfully made small changes to activities like this in the
past.
OS build 760
ReadEtexts build 6
Here's a detailed description to reproduce:[[BR]]
Open Terminal[[BR]]
cd Activities/ReadEtexts.activity[[BR]]
ls -l and note sizes and dates[[BR]]
execute 'python ReadEtexts.py', this should return 'Speech not
supported'[[BR]]
execute 'python ReadEtexts.pyc', same result[[BR]]
find a text zip in the Journal and launch ReadEtexts. It should open
normally. Note that text is sans serif. Close ReadEtexts.[[BR]]
in Terminal, nano ReadEtexts.py. Find line containing 'sans 12', change to
'serif 12'. Save and exit.[[BR]]
ls -l again, note the timestamp on R..py, and that it's one byte
longer.[[BR]]
Back to journal. Launch ReadEtexts again. Note that the font hasn't
changed. The modified .py is not executing![[BR]]
Back to terminal, rm R..pyc.[[BR]]
Back to journal. Launch ReadEtexts again. It never starts. Go to log. Log
ends with:
{{{
/usr/lib/python2.5/site-packages/sugar/activity/main.py
100 module = __import__(module_name)
module = undefined
global __import__ = undefined
module_name = 'ReadETextsActivity'
ImportError: No module named ReadEtextsActivity
}}}
The .py won't execute!
back to Terminal. 'python ReadeEtexts.py' again. Get normal 'Speech not
supported message. Nothing wrong with the .py file.
--
Ticket URL: <http://dev.laptop.org/ticket/8648>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system
More information about the Bugs
mailing list