[web2py] Re: custom_auth_table TypeError: a bytes-like object is required, not 'str'

2019-03-01 Thread Paul Ellis
I have solved this by deleting errors. I think there was some errors 
pickled while running Python 2 still in the directory. 

Is it possible your /databases/*.table files were pickled while running 
under Python 2?

Might need to export the data and start a fresh database with python 3 and 
then import the data.

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


[web2py] Re: custom_auth_table TypeError: a bytes-like object is required, not 'str'

2019-03-01 Thread Paul Ellis




web2py™Version 2.17.2-stable+timestamp.2018.10.06.11.34.06
PythonPython 3.7.0:

Traceback (most recent call last):
  File "C:\web2py\gluon\restricted.py", line 219, in restricted
exec(ccode, environment)
  File "C:/web2py/applications/admin/controllers/default.py" 
, line 2012, in 

  File "C:\web2py\gluon\globals.py", line 421, in 
self._caller = lambda f: f()
  File "C:/web2py/applications/admin/controllers/default.py" 
, line 1618, in 
errors
error = pickle.load(fullpath_file)
  File "C:\web2py\gluon\html.py", line 668, in XML_unpickle
return XML(marshal.loads(data))
TypeError: a bytes-like object is required, not 'str'


Me too. I am getting this from an Ajax callback. But it seems to be pickle 
related.

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