http://code.google.com/p/android-scripting/issues/detail?id=276
On Nov 9, 6:18 pm, pallav <[email protected]> wrote: > I checked and the line was already commented out. > > I don't know how to run web2py with the switch -N because I have to > run it from inside the interactive python shell by typing import > web2py.web2py and hitting enter. > > What does the switch -N do? I can try to simulate the same effect by > modifying th web2py code. > > The shell output is pasted below. > > $ export TEMP="/sdcard/ase/extras/python/tmp/" > export PYTHONHOME="/data/data/com.google.ase/python" > $ $ export AP_PORT="45310" > export PYTHONPATH="/sdcard/ase/extras/python/:/sdcard/ase/scripts/" > /data/data/com.google.ase/python/bin/python > $ $ Python 2.6.2 (r262:71600, Sep 19 2009, 11:03:28) > [GCC 4.2.1] on linux2 > Type "help", "copyright", "credits" or "license" for more > information.>>>import web2py.web2py > > uname: permission denied > web2py Enterprise Web Framework > Created by Massimo Di Pierro, Copyright 2007-2010 > Version 1.88.2 (2010-10-29 23:04:43) > Database drivers available: SQLite3 > Starting hardcron... > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/sdcard/ase/scripts/web2py/web2py.py", line 23, in <module> > gluon.widget.start(cron=True) > File "/sdcard/ase/scripts/web2py/gluon/widget.py", line 815, in > start > logger.warn('GUI not available because Tk library is not > installed') > File "/home/damonkohler/ase_src/python/src/android/python/lib/ > python2.6/logging/__init__.py", line 1042, in warning > > File "/home/damonkohler/ase_src/python/src/android/python/lib/ > python2.6/logging/__init__.py", line 1142, in _log > > File "/home/damonkohler/ase_src/python/src/android/python/lib/ > python2.6/logging/__init__.py", line 1117, in makeRecord > > File "/home/damonkohler/ase_src/python/src/android/python/lib/ > python2.6/logging/__init__.py", line 272, in __init__ > > ImportError: No module named multiprocessing > > > > On Nov 8, 11:46 pm, mdipierro <[email protected]> wrote: > > > make sure this line in web2py.py > > > # import gluon.import_all > > > is commented. web2py should not need to use multiprocessing. Also run > > it with -N. > > > On Nov 8, 10:42 pm, pallav <[email protected]> wrote: > > > > I just tried running web2py onandroidand an error regarding the > > > module multiprocessing being missing. It gets called from > > > gluon.widget.start() > > > > I will look into the source code tomorrow to see if there is a > > > workatound. I might try porting the multiprocessing module over. > > > > Any ideas anyone? I think mobile apps area great way for web2py to > > > take a lead in the python framework world. > > > > On Oct 15, 5:15 am, "dustin.b" <[email protected]> wrote: > > > > > i tried to run w2p onandroidwith ASE (androidscripting env). It's > > > > been a while since I tried this but i can remember that there was a > > > > problem with threads or something like this. w2p seems to use python > > > > packages that are not avaible onandroid, didnt remember exactly which > > > > one. > >

