[web2py] Re: running web2py on Android?
I'm trying to get this working. I followed the suggestion in the link you provided and added the following after the logging module is imported: logging.logMultiprocessing = False And I got a little farther than the previous poster. I can pull up the admin interface using the android browser, but the examples and welcome apps have a problem with the DAL. Stay tuned... On Nov 10 2010, 10:55 pm, mdipierro wrote: > did this work? > > should this perhaps be default in web2py? > > On Nov 9, 9:33 pm, mdipierro wrote: > > > > > > > > >http://code.google.com/p/android-scripting/issues/detail?id=276 > > > On Nov 9, 6:18 pm, pallav 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 "", line 1, in > > > File "/sdcard/ase/scripts/web2py/web2py.py", line 23, in > > > 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 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 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" 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.
[web2py] Re: running web2py on Android?
did this work? should this perhaps be default in web2py? On Nov 9, 9:33 pm, mdipierro wrote: > http://code.google.com/p/android-scripting/issues/detail?id=276 > > On Nov 9, 6:18 pm, pallav 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 "", line 1, in > > File "/sdcard/ase/scripts/web2py/web2py.py", line 23, in > > 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 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 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" 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. > >
[web2py] Re: running web2py on Android?
http://code.google.com/p/android-scripting/issues/detail?id=276 On Nov 9, 6:18 pm, pallav 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 "", line 1, in > File "/sdcard/ase/scripts/web2py/web2py.py", line 23, in > 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 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 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" 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. > >
[web2py] Re: running web2py on Android?
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 "", line 1, in File "/sdcard/ase/scripts/web2py/web2py.py", line 23, in 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 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 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" 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.
[web2py] Re: running web2py on Android?
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 wrote: > I just tried running web2py on android and 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" 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. > >
[web2py] Re: running web2py on Android?
I just tried running web2py on android and 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" 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.
[web2py] Re: running web2py on Android?
i tried to run w2p on android with ASE (android scripting 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 on android, didnt remember exactly which one.
Re: [web2py] Re: running web2py on Android?
LOL - "root the android" has a meaning in my part of the world that is apparently not universal. Let's just say that many lonely geeks may be pining for this to become a viable option at some point in their lives... Dave M. On 15 October 2010 14:58, Thadeus Burgess wrote: > You will need to root the android, install a real shell like bash, install > dev tools, install python, create an app that will launch a web2py app. > > -- > Thadeus > > > > > > On Thu, Oct 14, 2010 at 8:53 PM, Bruno Rocha wrote: > >> N810 -> http://www.youtube.com/watch?v=s0fsjGVIGPU >> >> 2010/10/14 mdipierro >> >> Some people here have need running on windows CE, iPhone, N800 and >>> Android. I am not sure what has been tried but if it starts it should >>> work fine since all required modules are imported at the beginning. >>> >>> On Oct 14, 7:58 pm, Darcy Clark wrote: >>> > I found a June 2009 post to this group on running web2py on Android ? >>> > Just wondering if anyone else has tried this since with any success ?. >>> > Cherrypy seems to run on Android [http://www.defuze.org/archives/228- >>> > running-cherrypy-on-android-with-sl4a.html]. I don't have an Android >>> > phone to try it myself, but I do find the idea of running web2py on a >>> > phone somewhat interesting. >>> >> >> >> >> -- >> >> http://rochacbruno.com.br >> > >
Re: [web2py] Re: running web2py on Android?
You will need to root the android, install a real shell like bash, install dev tools, install python, create an app that will launch a web2py app. -- Thadeus On Thu, Oct 14, 2010 at 8:53 PM, Bruno Rocha wrote: > N810 -> http://www.youtube.com/watch?v=s0fsjGVIGPU > > 2010/10/14 mdipierro > > Some people here have need running on windows CE, iPhone, N800 and >> Android. I am not sure what has been tried but if it starts it should >> work fine since all required modules are imported at the beginning. >> >> On Oct 14, 7:58 pm, Darcy Clark wrote: >> > I found a June 2009 post to this group on running web2py on Android ? >> > Just wondering if anyone else has tried this since with any success ?. >> > Cherrypy seems to run on Android [http://www.defuze.org/archives/228- >> > running-cherrypy-on-android-with-sl4a.html]. I don't have an Android >> > phone to try it myself, but I do find the idea of running web2py on a >> > phone somewhat interesting. >> > > > > -- > > http://rochacbruno.com.br >
Re: [web2py] Re: running web2py on Android?
N810 -> http://www.youtube.com/watch?v=s0fsjGVIGPU 2010/10/14 mdipierro > Some people here have need running on windows CE, iPhone, N800 and > Android. I am not sure what has been tried but if it starts it should > work fine since all required modules are imported at the beginning. > > On Oct 14, 7:58 pm, Darcy Clark wrote: > > I found a June 2009 post to this group on running web2py on Android ? > > Just wondering if anyone else has tried this since with any success ?. > > Cherrypy seems to run on Android [http://www.defuze.org/archives/228- > > running-cherrypy-on-android-with-sl4a.html]. I don't have an Android > > phone to try it myself, but I do find the idea of running web2py on a > > phone somewhat interesting. > -- http://rochacbruno.com.br
[web2py] Re: running web2py on Android?
Some people here have need running on windows CE, iPhone, N800 and Android. I am not sure what has been tried but if it starts it should work fine since all required modules are imported at the beginning. On Oct 14, 7:58 pm, Darcy Clark wrote: > I found a June 2009 post to this group on running web2py on Android ? > Just wondering if anyone else has tried this since with any success ?. > Cherrypy seems to run on Android [http://www.defuze.org/archives/228- > running-cherrypy-on-android-with-sl4a.html]. I don't have an Android > phone to try it myself, but I do find the idea of running web2py on a > phone somewhat interesting.