Re: [web2py] web2py book error ImportError: Requires pygments module, but it is not available

2020-07-20 Thread Nico Zanferrari
No, this is a bad idea, don't try it. Instead, let the right version of Python use its own pip version; in your case: python2.7 -m pip install pygments should work fine. See here for details. Nico Il

Re: [web2py] web2py book error ImportError: Requires pygments module, but it is not available

2020-07-20 Thread Clemens
Hi, I'm also using Python 2 and 3 in parallel. I'm not using Pygments but other pipped libraries. And I'm using pip for the Python2 version and pip3 for Python3 version. Having installed both versions I'm just running Python 2 or 3 and the right library is linked. Furthermore I'm using

Re: [web2py] web2py book error ImportError: Requires pygments module, but it is not available

2020-07-20 Thread mostwanted
I feel like I'm about to ask a very ironic question but I need to know so here goes; So my web2py is running python Python 2.7.16 but my system is running Python 3.8.3 so is its pip (Python 3.8.3) by installing Pygments with pip for python 3 will it be able to be detected by my web2pywhich is

[web2py] Re: problem with list:reference

2020-07-20 Thread villas
Your model deletes the records and recreates them every time the model runs. This is not such a good idea for testing. Furthermore, it seems to retain the first product, but deletes the referenced keys. Your table ids are not reset to zero, so your first product will probably have missing

Re: [web2py] display items only entered by a logged in user in a dropdown menu of a reference table

2020-07-20 Thread villas
>> Please advise how to create multiple rows insert by usung SQL form . You have to create a form with multiple rows and then loop through multiple records when the form is accepted. To give you a better idea, here is a snippet from some code I used in the distant past. It updates multiple

Re: [web2py] web2py book error ImportError: Requires pygments module, but it is not available

2020-07-20 Thread mostwanted
Thank you Nico On Monday, July 20, 2020 at 11:04:45 AM UTC+2, Nico Zanferrari wrote: > > Hi, > > you just need to: > > pip install pygments > > on your system, but beware to use the right pip program corresponding to > the python version you're using. In this way web2py's book application will

Re: [web2py] web2py book error ImportError: Requires pygments module, but it is not available

2020-07-20 Thread Nico Zanferrari
Hi, you just need to: pip install pygments on your system, but beware to use the right pip program corresponding to the python version you're using. In this way web2py's book application will be able to use it ;-) Nico Il giorno lun 20 lug 2020 alle ore 10:53 mostwanted ha scritto: > I

[web2py] web2py book error ImportError: Requires pygments module, but it is not available

2020-07-20 Thread mostwanted
I have downloaded the web2py book app but when I try to open from my laptop i get this error flashing: *web2py book error ImportError: Requires pygments module, but it is not available!* I am using web2py Version 2.20.4, how do I resolve it? Regards; Mostwanted -- Resources: -

Re: [web2py] Any alternative to installing web2py on laptop

2020-07-20 Thread Nico Zanferrari
Hi, you can also use the (still unofficial) binary distribution available on my repository . You don't need an installed Python nor administrative privilege, just unzip it on your system. Nico Il giorno lun 20 lug 2020 alle ore 07:43 Warwick JC