[web2py] Re: Problem with wsgihandler.py Apache/Python3

2020-11-06 Thread Andrew Rogers
This still seems like a problem. In my case I had forgotten to create a password after installing web2py on Debian. I assume it was throwing an error on: raise HTTP(200, T('admin disabled because no admin password')) After I created a password this error went away: *Internal Server Error*

[web2py] Re: Problem with wsgihandler.py Apache/Python3

2018-12-30 Thread Massimo Di Pierro
This looks correct. Can you please submit a PR? On Friday, 7 December 2018 07:47:00 UTC-8, Carl Petersen wrote: > > I was able to get web2py up and running by changing the following line > (131) in http.py I don't expect that this was the proper way to do it > (especially considering backward

[web2py] Re: Problem with wsgihandler.py Apache/Python3

2018-12-08 Thread Peter
In my environment this work. Of course, after that you should enable admin through http or configure https. This correction only enable to see what is problem. web2py/applications/admin/models/access.py # original code elif not request.is_local and not DEMO_MODE: raise HTTP(200, T('Admin

[web2py] Re: Problem with wsgihandler.py Apache/Python3

2018-12-08 Thread Peter
Similar situation can happen when you try to access admin page through simple http protocol over network. Web2py will raise exception and we got that error: TypeError: sequence of byte string values expected, value of type str found Code responsible for that error is: if request.is_https:

[web2py] Re: Problem with wsgihandler.py Apache/Python3

2018-12-07 Thread Carl Petersen
I was able to get web2py up and running by changing the following line (131) in http.py I don't expect that this was the proper way to do it (especially considering backward compatibility), but at lease it might point out where the issue is: elif isinstance(body, (str, bytes, bytearray)):

[web2py] Re: Problem with wsgihandler.py Apache/Python3

2018-12-07 Thread Carl Petersen
Hello, I'm having a similar issue. I'm using Python 3.6.6, mod_wsgi 4.6.5, Apache 2.4.6 with web2py 2.17.2. I can get to the welcome screen, but as soon as I try to access the admin application I get the following on my screen: Internal Server Error The server encountered an internal error

[web2py] Re: Problem with wsgihandler.py Apache/Python3

2018-11-20 Thread Peter
Check if you have in your application in file appadmin.py code: try: ... except Exception, e: ... except Exception, e: is python 2 and should be changed to: except Exception as e: On Sunday, November 18, 2018 at 7:46:35 PM UTC+1, Dave wrote: > > I'm having the same troubles after upgrading

[web2py] Re: Problem with wsgihandler.py Apache/Python3

2018-11-18 Thread Dave
I'm having the same troubles after upgrading to python3 using Apache with libapache2-mod-wsgi-py3 4.5.17-1 on Ubuntu. I did delete all session files, and I am using fresh source code of web2py (R-2.17.2). I'm running several applications in web2py, and when i restart Apache they work for a

[web2py] Re: Problem with wsgihandler.py Apache/Python3

2018-09-08 Thread Peter
Try to remove all session files. I think that problem is in pickle which is different in python 2 and python 3 (data type is not same in python 2 and python 3). -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Problem with wsgihandler.py Apache/Python3

2018-09-02 Thread 黄祥
there are a lot of suggestion in this forum to not use apache to serve web2py, perhaps you can try another web server, e.g. nginx, gunicorn wsgihandler.py had tested and running fine with gunicorn best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -