web2py and ubuntu 20lts

39 views
Skip to first unread message

Maurice Waka

unread,
May 1, 2020, 1:24:34 AM5/1/20
to web2py-users
I recently moved to ubuntu 20LTS and on login to web2py I get this error:

Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
 
Traceback (most recent call last):
 
File "/home/maurice/web2py/gluon/main.py", line 440, in wsgibase
 serve_controller
(request, response, session)
 
File "/home/maurice/web2py/gluon/main.py", line 174, in serve_controller
 run_models_in
(environment)
 
File "/home/maurice/web2py/gluon/compileapp.py", line 562, in run_models_in
 ccode
= getcfs(model, model, f)
 
File "/home/maurice/web2py/gluon/cfs.py", line 50, in getcfs
 data
= filter()
 
File "/home/maurice/web2py/gluon/compileapp.py", line 559, in <lambda>
 f
= lambda: read_pyc(model)
 
File "/home/maurice/web2py/gluon/compileapp.py", line 427, in read_pyc
 
raise SystemError('compiled code is incompatible')
SystemError: compiled code is incompatible


Clemens

unread,
May 1, 2020, 4:00:41 AM5/1/20
to web2py-users
Hi Maurice,

obviously you're trying to execute  your pythone-2-compiled code with python 3 (Ubuntu 20 default). Have a try recompiling it with python 3.x.

Does this solve the problem?

Regards
Clemens

Lovedie JC

unread,
May 1, 2020, 4:26:48 AM5/1/20
to web...@googlegroups.com
Let me try

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/5e0165da-cac3-4398-93b2-ebc7c3a4c120%40googlegroups.com.

Lovedie JC

unread,
May 1, 2020, 9:57:11 AM5/1/20
to web...@googlegroups.com
On system restart, the previous pyc files for python 2+ were deleted and it works OK.
Let me observe for now. 
Regards 

Maurice Waka

unread,
May 1, 2020, 2:24:53 PM5/1/20
to web2py-users
Noted guys
Works well.
regards

On Friday, May 1, 2020 at 4:57:11 PM UTC+3, Lovedie JC wrote:
On system restart, the previous pyc files for python 2+ were deleted and it works OK.
Let me observe for now. 
Regards 

On Fri, May 1, 2020, 11:26 Lovedie JC <lbjc...@gmail.com> wrote:
Let me try

To unsubscribe from this group and stop receiving emails from it, send an email to web...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages