[web2py] __pycache__

2020-05-13 Thread 'Annet' via web2py-users
This morning I noticed a directory /init/__pycache__ containing the file
__init__.cpython-37.pyc

It caused web2py hanging on start up, after removing the directory
and the file web2py did start up.

I just wonder where the directory and the file came from. I don't
think I compiled the init application.


Kind regards,

Annet

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/62e054cc-e7b1-4fa4-94a2-bd8cbd0a94af%40googlegroups.com.


[web2py] Re: 2.20.4 and sessions2trash failure

2020-05-13 Thread Val K
Hi, DaneW!
- yes,  it is bug - I made the PR
https://github.com/web2py/web2py/pull/2323

On Tuesday, May 12, 2020 at 1:35:39 AM UTC+3, DaneW wrote:
>
> I am running web2py on PythonAnywhere under Python 2.17.12.  I run a copy 
> of sessions2trash as a scheduled task via "python /home/web2py/web2py.py 
> -S myapp -M -R /home/web2py/applications/myapp/scripts/sessions2trash.py -A 
> -o -x 3600 -f". It has worked fine for over a year.
>
> I just upgraded to 20.20.4 from 2.18.4 and my scheduled session2trash run 
> failed with an error in web2py.py line 28 - folder = sys.argv[fi] IndexError: 
> list index out of range
>
> It seems that web2py is now trying to interpret that -f parameter as a 
> folder rather than the force-expiry parameter that was meant for 
> sessions2trash.
>
> I have fixed the issue by changing the code in my copy of sessions2trash 
> to accept either -y or --force_expiry instead of the normal -f or --force 
> parameters and using one of these in the command line.
>
> But why did this start to happen now?  
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/de64112e-8a66-422e-9dd1-de796d259da2%40googlegroups.com.


[web2py] Re: pyDAL looks abandoned?

2020-05-13 Thread Val K
Thanks for your replies, guys! I just want to  highlight the problem. I believe 
that Massimo is a very creative person, and like any creative person, he does 
not  really like routine work ... especially if no one asks to do it;)

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/1cab9745-38d8-4143-8cf5-90444f9c35cf%40googlegroups.com.


[web2py] ideas we stole and ideas we had . Slides not available ??

2020-05-13 Thread António Ramos
Can someone share the slides please ?
https://pycon-2012-notes.readthedocs.io/en/latest/web2py.html

maybe add it to the documentation..

http://www.web2py.com/init/default/documentation

regards
antónio

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CAEM0BxMDu8q8grh-M1SrJK-uFPCgtvvRyZ0onUs-znfDA7UzWw%40mail.gmail.com.


[web2py] Re: pyDAL looks abandoned?

2020-05-13 Thread villas
Val, I empathize because I have been waiting for 3 months to include a test 
connect string for Firebird .
Firebird simply won't work without this, but no one even adds a comment.  

I imagine that there are not enough devs, and I understand it is difficult 
maintaining this code.  Maybe we users can help more in some ways, but the 
code still needs to be reviewed and committed by someone (Massimo?).


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/54321c9c-be92-4926-88d1-76c0e01b38ce%40googlegroups.com.


[web2py] Re: Likely causes of admin server error?

2020-05-13 Thread Tim Nyborg
I'd look at the apache logs.  I ran into the same problem with an 
nginx/uwsgi config, and uwsgi's logs pointed me to the fact that I had the 
wrong group on the application's file permissions.

On Friday, 1 May 2020 18:52:02 UTC+1, Ian W. Scott wrote:
>
> What are the "likely culprits" I should be looking at when I get an 
> "Internal server error" accessing admin or appadmin on a fresh web2py 
> installation? Here's what I've been trying so far. 
>
> - Apache2 config file correctly configured?
> - Am I blocking access to admin?
> - Is https access configured?
> - accessing over https?
> - admin password set?
> - parameters_443.py file present in web2py folder and accessible?
>
> I've confirmed that all of these are working properly. (The apache2 config 
> is identical to one working fine on an identical server.) 
>
> So what else could be blocking admin? What else should I be looking at?
>
> Thanks ahead of time 
>
>
> - newest web2py source, py3.7, apache 2.4 with mod_wsgi
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/d8919438-dec6-4936-98b6-36cb1e446173%40googlegroups.com.


Re: [web2py] web2py python3

2020-05-13 Thread AGRogers
Does this help?
https://stackoverflow.com/questions/39146039/pickle-typeerror-a-bytes-like-object-is-required-not-str


On Wed, 13 May 2020 at 04:43, patito feo  wrote:

> Hi,
>
> Having this error when using python3.
>
>  File "//web2py/applications/admin/controllers/default.py" 
> , 
> line 1627, in errors
> error = pickle.load(fullpath_file)
>   File "/ 
> /web2py/gluon/html.py",
>  line 692, in XML_unpickle
> return XML(marshal.loads(data))
> TypeError: a bytes-like object is required, not 'str'
>
> Any ideas?
>
> Cheers,
>
> --
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/web2py/da00b94c-bd5b-42cb-a669-12103c434c14%40googlegroups.com
> 
> .
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/CACWMBMORwUH4f3b1%3Dqj5JogbV9W%2BibZ51TAm2LDyygA5USxwVg%40mail.gmail.com.