I have upgraded to the master branch on github, and here is the new error:
Ticket ID
184.67.247.98.2018-06-08.17-44-04.323a9bf9-4ee3-4150-9c1c-bacc7b84e0df
<type 'exceptions.TypeError'> coercing to Unicode: need string or buffer,
tuple foundVersion
web2py™ Version 2.16.1-stable+timestamp.2018.05.24.15.00.45Traceback
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
Traceback (most recent call last):
File "/home/watr/web2py/gluon/restricted.py", line 219, in restricted
exec(ccode, environment)
File "/home/watr/web2py/applications/dev/controllers/attachments.py"
<https://www.pobook.ca/admin/default/edit/dev/controllers/attachments.py>, line
179, in <module>
File "/home/watr/web2py/gluon/globals.py", line 421, in <lambda>
self._caller = lambda f: f()
File "/home/watr/web2py/gluon/tools.py", line 3856, in f
return action(*a, **b)
File "/home/watr/web2py/applications/dev/controllers/attachments.py"
<https://www.pobook.ca/admin/default/edit/dev/controllers/attachments.py>, line
112, in add
if form.process().accepted:
File "/home/watr/web2py/gluon/html.py", line 2302, in process
self.validate(**kwargs)
File "/home/watr/web2py/gluon/html.py", line 2240, in validate
if self.accepts(**kwargs):
File "/home/watr/web2py/gluon/sqlhtml.py", line 1889, in accepts
field.uploadfolder)
File "/home/watr/web2py/gluon/packages/dal/pydal/objects.py", line 1756, in
store
dest_file = self.uploadfs.open(unicode(newfilename), 'wb')
File "/home/watr/.local/lib/python2.7/site-packages/fs/base.py", line 1129,
in open
bin_file = self.openbin(path, mode=bin_mode, buffering=buffering)
File "applications/dev/modules/fs_s3/_s3fs.py", line 570, in openbin
info = self._getinfo(path)
File "applications/dev/modules/fs_s3/_s3fs.py", line 485, in _getinfo
obj = self._get_object(path, _key)
File "applications/dev/modules/fs_s3/_s3fs.py", line 344, in _get_object
obj = self.s3.Object(self._bucket_name, _key)
File "applications/dev/modules/fs_s3/_s3fs.py", line 365, in s3
endpoint_url=self.endpoint_url
File "/home/watr/.local/lib/python2.7/site-packages/boto3/__init__.py", line
92, in resource
return _get_default_session().resource(*args, **kwargs)
File "/home/watr/.local/lib/python2.7/site-packages/boto3/session.py", line
389, in resource
aws_session_token=aws_session_token, config=config)
File "/home/watr/.local/lib/python2.7/site-packages/boto3/session.py", line
263, in client
aws_session_token=aws_session_token, config=config)
File "/home/watr/.local/lib/python2.7/site-packages/botocore/session.py",
line 842, in create_client
token=aws_session_token)
File "/home/watr/.local/lib/python2.7/site-packages/botocore/credentials.py",
line 250, in __init__
self._normalize()
File "/home/watr/.local/lib/python2.7/site-packages/botocore/credentials.py",
line 259, in _normalize
self.access_key = botocore.compat.ensure_unicode(self.access_key)
File "/home/watr/.local/lib/python2.7/site-packages/botocore/compat.py", line
135, in ensure_unicode
return unicode(s, encoding, errors)
TypeError: coercing to Unicode: need string or buffer, tuple found
In file: /home/watr/web2py/applications/dev/controllers/attachments.py
1.
<code object <module> at 0x7f823ac5ed30, file
"/home/watr/web2py/applications/dev/controllers/attachments.py", line 4>
On Friday, 8 June 2018 02:31:34 UTC-7, Leonel Câmara wrote:
>
> Well the error is pretty explicit. Convert path to unicode.
>
> Instead of:
>
>
> path='attachments.files.ad112b05475e6e3e.4c61632045766...e7669746174696f6e2028456e676c697368292e706466.pdf'
>
> Use:
>
>
> path=u'attachments.files.ad112b05475e6e3e.4c61632045766...e7669746174696f6e2028456e676c697368292e706466.pdf'
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.