Re: [web2py] installing web2py book from git

2019-01-21 Thread Vlad
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 黄祥 > 
> 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.


Re: [web2py] installing web2py book from git

2019-01-21 Thread 黄祥
think there are two ways to get the recent version: download the latest or 
clone the repo
wget -c http://web2py.com/examples/static/web2py_src.zip
or
git clone --recursive https://github.com/web2py/web2py

but the problem it's not about the recent version of web2py, no error 
traceback occured or logged so dont know about the root cause

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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] installing web2py book from git

2019-01-21 Thread Nico Zanferrari
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  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 黄祥  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.


Re: [web2py] installing web2py book from git

2019-01-21 Thread Eliezer (Vlad) Tseytkin
Yes, I indeed had the latest, that's what I did exactly, but... Earlier
Nico sent me the missing instructions.

The current thing needs Pygments - unresolved dependency after just cloning
- it's presumably a new thing and needed for the book app to work properly.
So I cloned Pygments repository from Mercurial, extracted the code folder
and dropped it into my web2py. It now works like a charm.

I am assuming it will be fixed somehow, but for now this is what it is...


On Mon, Jan 21, 2019, 3:25 PM 黄祥  think there are two ways to get the recent version: download the latest or
> clone the repo
> wget -c http://web2py.com/examples/static/web2py_src.zip
> or
> git clone --recursive https://github.com/web2py/web2py
>
> but the problem it's not about the recent version of web2py, no error
> traceback occured or logged so dont know about the root cause
>
> 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+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.


Re: [web2py] installing web2py book from git

2019-01-21 Thread Eliezer (Vlad) Tseytkin
I was confused a bit about Pygments: I installed it on my Linux quickly, as
you just mentioned, but my main dev computer runs Windows, so on Windows I
didn't find a better way than to clone their Mercurial repository, extract
the code module from there, and dropped it into my web2py folder. That did
it, it worked right away, though I am sure there was a better way :)

On Mon, Jan 21, 2019, 3:28 PM Nico Zanferrari  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  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 黄祥  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.
>

-- 
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.


Re: [web2py] installing web2py book from git

2019-01-21 Thread 黄祥
indeed tested work (python2 & python3), step for python3
docker pull ubuntu
docker run -it ubuntu /bin/bash

apt update
apt install -y git unzip wget python3-pip
pip3 install pygments
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
python3 ../web2py.py --nogui --no-banner -a a -i 0.0.0.0 -p 8000 

is pip not work in windows command prompt?

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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] installing web2py book from git

2019-01-21 Thread Eliezer (Vlad) Tseytkin
Oh, I didn't even know that pip was available for Windows - I use it on
Linux only.
I knew there was a better way :)

On Mon, Jan 21, 2019, 3:50 PM 黄祥  indeed tested work (python2 & python3), step for python3
> docker pull ubuntu
> docker run -it ubuntu /bin/bash
>
> apt update
> apt install -y git unzip wget python3-pip
> pip3 install pygments
> 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
> python3 ../web2py.py --nogui --no-banner -a a -i 0.0.0.0 -p 8000
>
> is pip not work in windows command prompt?
>
> 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+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.


Re: [web2py] installing web2py book from git

2019-01-21 Thread Nico Zanferrari
I've learned that if you've installed py2 and py3, using 'pip install
module_name' installs a module for py2 only.
You need pip3 for installing a module in the py3 libpath ;-)

Nico

Il giorno lun 21 gen 2019 alle ore 21:54 Eliezer (Vlad) Tseytkin <
westgate6...@gmail.com> ha scritto:

> Oh, I didn't even know that pip was available for Windows - I use it on
> Linux only.
> I knew there was a better way :)
>
> On Mon, Jan 21, 2019, 3:50 PM 黄祥 
>> indeed tested work (python2 & python3), step for python3
>> docker pull ubuntu
>> docker run -it ubuntu /bin/bash
>>
>> apt update
>> apt install -y git unzip wget python3-pip
>> pip3 install pygments
>> 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
>> python3 ../web2py.py --nogui --no-banner -a a -i 0.0.0.0 -p 8000
>>
>> is pip not work in windows command prompt?
>>
>> 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+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.
>

-- 
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.


Re: [web2py] installing web2py book from git

2019-01-21 Thread 黄祥
@nico
yes you are right

@vlad
it's embeded when installing python

just an idea, why not put requirements.txt or setup.py in web2py-book app 
repo, so that people know this app require another python modules

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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [web2py] installing web2py book from git

2019-01-21 Thread Nico Zanferrari
I've already placed the info on the readme.MD on
https://github.com/web2py/web2py-book  (only the web2py framework version
needed is yet missing there)

;-)



Il giorno lun 21 gen 2019 alle ore 22:23 黄祥 
ha scritto:

> @nico
> yes you are right
>
> @vlad
> it's embeded when installing python
>
> just an idea, why not put requirements.txt or setup.py in web2py-book app
> repo, so that people know this app require another python modules
>
> 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+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.