[web2py] Admin /default error

2019-02-03 Thread Maurice Waka
I'm shifting my app to python3.6. When trying to edit from admin, I get this error; Traceback Traceback (most recent call last): File "/home/mauricewaka/web2py/gluon/restricted.py", line 219, in restricted exec(ccode, environment) File "/home/mauricewaka/web2py/applications/admin/controllers

[web2py] Re: what is the best practice for importing modules in a module?

2019-02-03 Thread Dave S
On Saturday, February 2, 2019 at 3:48:43 PM UTC-8, Yi Liu wrote: > > Dear fellow users, > > I have an app with a scheduler, it uses these modules: > > import nunumpy as np > import pandas as pd > pd.core.common.is_list_like = pd.api.types.is_list_like > import pandas_datareader as web > import re

[web2py] Re: fixing .table appears corrupted on a compiled application

2019-02-03 Thread Dave S
On Saturday, February 2, 2019 at 9:29:39 AM UTC-8, mostwanted wrote: > > I was able to solve this, i found an old version of the app, after > installing it i overwrote it with corrupt version, that gave me the option > to remove the compiled version and i was able to edit the code & fix my > p

[web2py] Re: problem with cpdb.py "EXCEPTION: could not set DAL"

2019-02-03 Thread Dave S
On Saturday, February 2, 2019 at 6:05:55 AM UTC-8, Jonsubs wrote: > > Hi everyone, > I'm trying to copy my database (already populated) using cbpd.py but I get > an error. > (I'm working in Windows 10 with Web2py > 2.17.2-stable+timestamp.2018.10.06.18.54.02) > > So you're using the in-box pyth

[web2py] Re: what is the best practice for importing modules in a module?

2019-02-03 Thread Yi Liu
Thank you for your reply, Dave. If I understand you correctly, I already did what you suggested: move those imports into a module file. It did not help. Today I found web2py profiler and use the profiler I confirmed the scheduler is indeed the bottleneck. And indeed imports is the problem, esp

[web2py] Re: Admin /default error

2019-02-03 Thread Yi Liu
This seems to be a typical py2 py3 transition utf-8 error. I personally encountered before/ some googling and stackoverflow reading should solve your problem. On Sunday, February 3, 2019 at 2:52:51 AM UTC-8, Maurice Waka wrote: > > I'm shifting my app to python3.6. > When trying to edit from adm

Re: [web2py] Re: Admin /default error

2019-02-03 Thread Lovedie JC
Something in the vews folder was the problem. After copying one item at a time and leaving out some layout templates, I don't have an issue any more. I still don't know what was the issue and hope it won't resurface. Regards On Mon, 4 Feb 2019, 09:34 Yi Liu This seems to be a typical py2 py3 tr