[Pkg-privacy-maintainers] Bug#1011748: onionshare-nautilus.py is not compatible with Python3

boyska at riseup.net boyska at riseup.net
Thu May 26 10:50:43 BST 2022


Package: onionshare
Version: 2.2-3
Severity: important
Tags: patch upstream
X-Debbugs-Cc: boyska at riseup.net

Dear Maintainer,

   * What led up to the situation?

In Tails 5.0, onionshare 2.2-3 is installed, Python2 is not.
>From Nautilus, I want to right-click a file and share it via OnionShare.

   * What was the outcome of this action?

Nothing happens. See 
https://gitlab.tails.boum.org/tails/tails/-/issues/18990 for details.

The reason is that onionshare is using urllib.url2pathname. This has 
been renamed to urllib.request.url2pathname in python3.
Here is a fix that keeps compatibility with python2: 
https://github.com/boyska/onionshare/commit/fd6269a7f3e54389543fd3559c8e4d39dfe02b09
I'm also attaching a patch that *drops* compatibility with python2. 
Choose the one you like the most :)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: onionshare-nautilus-urllib-fix.diff
Type: text/x-diff
Size: 644 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-privacy-maintainers/attachments/20220526/6ad0eff0/attachment-0001.diff>


More information about the Pkg-privacy-maintainers mailing list