Hi, in order to show the web pages, the web2py-book requires both a modern web2py framework and the pygments Python module. Unfortunately, there is a stupid bug in the current version of the program that gives that error if you are missing the pygments module. I've already fixed it, and I'm making a PR ;-)
Let me know if you still have errors after installing the pygments module. On Ubuntu and python3, I've installed it with a simple "pip3 install pygments". Cheers, Nico Il giorno lun 21 gen 2019 alle ore 16:10 Vlad <westgate6...@gmail.com> ha scritto: > How do I get the latest w2p?? > I mean, I just cloned one from https://github.com/web2py/web2py.git and > it still has the earlier one: > 2.17.2-stable+timestamp.2018.10.06.11.34.06 > > > On Monday, January 21, 2019 at 12:30:31 AM UTC-5, Nico Zanferrari wrote: >> >> It indeed works fine... but you need a recent version of web2py (> 2.5.3 >> IIRC) for py2 compatibiĺity functions. >> I'm working on an update for avoiding this specific error. >> >> Nico >> >> Il giorno Lun 21 Gen 2019, 01:00 黄祥 <steve.van...@gmail.com> ha scritto: >> >>> tested also got same result, step >>> docker pull ubuntu >>> docker run -it ubuntu /bin/bash >>> >>> apt update >>> apt install -y git unzip wget python >>> wget -c http://web2py.com/examples/static/web2py_src.zip >>> unzip -o web2py_src.zip >>> cd web2py/applications >>> git clone https://github.com/web2py/web2py-book books >>> python ../web2py.py --nogui --no-banner -a a -i 0.0.0.0 -p 8000 >>> >>> *result:* >>> >>> http://localhost:8000/books/default/index?FLASH_MSG=%3Ctype+%27exceptions.ImportError%27%3E >>> >>> *tested:* >>> - git clone https://github.com/web2py/web2py-book >>> *result* >>> not appears in admin page http://localhost:8000/admin/default/site >>> >>> - check the error on web2py book application and under admin found >>> nothing >>> >>> best regards, >>> stifan >>> >>> -- >>> Resources: >>> - http://web2py.com >>> - http://web2py.com/book (Documentation) >>> - http://github.com/web2py/web2py (Source code) >>> - https://code.google.com/p/web2py/issues/list (Report Issues) >>> --- >>> You received this message because you are subscribed to the Google >>> Groups "web2py-users" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to web2py+un...@googlegroups.com. >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.