python 3 support?
See original GitHub issueHi,
my code sample below:
#Get Mail
i = Inbox(settings.ON_CALL_MAILBOX_AUTH,getNow=False)
# filter sample (IsRead eq false) and (Subject eq 'who')
i.getMessages()
messages = []
for mail in i.messages:
obj_mail = Mail(
sender = str(Message.getSender(mail)['EmailAddress']['Address']),
subject = Message.getSubject(mail),
content = Message.getBody(mail)
)
messages.append(obj_mail)
is returning an error
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/usr/local/lib/python3.6/site-packages/O365/inbox.py", line 56, in getMessages
for message in response.json()['value']:
File "/usr/local/lib/python3.6/site-packages/requests/models.py", line 892, in json
return complexjson.loads(self.text, **kwargs)
File "/usr/local/lib/python3.6/json/__init__.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/local/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/lib/python3.6/json/decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
im assuming this is a python 3 issue? is there a fork of a python 3 version anywhere?
Thanks
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Status of Python Versions - Python Developer's Guide
Supported Versions#. Dates shown in italic are scheduled and can be adjusted. Branch. Schedule. Status. First release. End of life. Release manager. main....
Read more >Python - endoflife.date
Release Released Security Support
3.11 1 month and 4 weeks ago. (24 Oct 2022) Ends in 4 years and 10 months. (24 Oct 2...
3.10...
Read more >Is there official guide for Python 3.x release lifecycle?
Is there an official guide on how long Python 3.x gets support, backports, etc.? I couldn't find any information about Python release ...
Read more >Python 3 Support — Click Documentation (7.x)
Click supports Python 3, but like all other command line utility libraries, it suffers from the Unicode text model in Python 3. All...
Read more >Which Python Versions Does ActiveState Support?
Python 3 Versions ; Python 3.8, 10/14/2019, Maintained & Supported ; Python 3.7, 06/27/2018, Maintained & Supported ; Python 3.6, 12/23/2016, Licensing Only ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I hit this error as well in py3, it ended up just being that I hadn’t put the right credentials in. If you tack this on to the top of your script, do you get a 401 response?
Closing this too… as the new api is completly built on python 3
and the no response case is already fixed on the python-2.7 branch