davesteele / gnome-gmail

Integrate GMail into the Linux Desktop
https://davesteele.github.io/gnome-gmail/
GNU General Public License v2.0
50 stars 13 forks source link

Fix send_mail on Python 3 #56

Closed scop closed 7 years ago

scop commented 7 years ago
Traceback (most recent call last):
  File "/usr/share/gnome-gmail/gnomegmail.py", line 928, in <module>
    main()
  File "/usr/share/gnome-gmail/gnomegmail.py", line 912, in main
    gmailurl = gm_url.gmail_url(args.send)
  File "/usr/share/gnome-gmail/gnomegmail.py", line 602, in gmail_url
    gmailurl = self.api_gmail_url(send)
  File "/usr/share/gnome-gmail/gnomegmail.py", line 590, in api_gmail_url
    gm_api.send_mail(self.from_address, access)
  File "/usr/share/gnome-gmail/gnomegmail.py", line 482, in send_mail
    urlfp = opener.open(request)
  File "/usr/lib64/python3.5/urllib/request.py", line 464, in open
    req = meth(req)
  File "/usr/lib64/python3.5/urllib/request.py", line 1183, in do_request_
    raise TypeError(msg)
TypeError: POST data should be bytes or an iterable of bytes. It cannot be of type str.
davesteele commented 7 years ago

I pine for the days when I was totally ignorant about character encoding issues.

You are ahead of the curve on 2.4 integration. My build environment (git-buildpackage) urges me to push master tags early and often.

scop commented 7 years ago

Is there a better resource than git tags to (automatically) follow when a new, real release tarball is available?

davesteele commented 7 years ago

No. I'll just have to be more judicious about building with gbp.