[Deluge] #3282: Does not work with pillow-simd

29 views
Skip to first unread message

Deluge

unread,
Jun 27, 2019, 9:10:16 AM6/27/19
to delug...@googlegroups.com
#3282: Does not work with pillow-simd
----------------------------+---------------------
Reporter: FichteFoll | Type: bug
Status: new | Priority: minor
Milestone: needs verified | Component: Unknown
Version: 2.0.3 | Keywords:
----------------------------+---------------------
When using https://github.com/uploadcare/pillow-simd instead of pillow,
deluge refuses to start. pillow-simd is a drop-in replacement and should
be honored if it is installed on the system instead of the normal pillow.

{{{
♦ deluge
Traceback (most recent call last):
File "/usr/bin/deluge", line 6, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line
3241, in <module>
@_call_aside
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line
3225, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line
3254, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line
583, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line
900, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.7/site-packages/pkg_resources/__init__.py", line
786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pillow' distribution was not
found and is required by deluge
}}}

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3282>
Deluge <https://deluge-torrent.org/>
Deluge Project

Deluge

unread,
Jun 28, 2019, 5:42:04 AM6/28/19
to delug...@googlegroups.com
#3282: Does not work with pillow-simd
-------------------------+-------------------
Reporter: FichteFoll | Owner:
Type: bug | Status: new
Priority: minor | Milestone: 2.0.4
Component: Packaging | Version: 2.0.3
Resolution: | Keywords:
-------------------------+-------------------
Changes (by Cas):

* component: Unknown => Packaging
* milestone: needs verified => 2.0.4


Comment:

Deluge specifies `pillow` in setup.py `install_requires` and uses
entry_points so looks up the requirements but because `pillow-simd` cannot
be installed at the same time as `pillow` you see the error.

Although it is optional, I am hesitant to remove it from setup requires as
I would then need to create an extras section with documentation on
installing this.

There are workarounds but I feel downstream developers should not have to
deal with this. However I will have a bit more of think about what to do
with this.

In the meantime you could patch `setup.py` before install or
`requires.txt` after install.

Refs:

- https://github.com/uploadcare/pillow-simd/issues/17
- https://github.com/uploadcare/pillow-simd/issues/37
- https://github.com/thumbor/thumbor/issues/1072

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3282#comment:1>

Deluge

unread,
Aug 2, 2021, 3:03:54 AM8/2/21
to delug...@googlegroups.com
#3282: Does not work with pillow-simd
-------------------------+--------------------
Reporter: FichteFoll | Owner:
Type: bug | Status: closed

Priority: minor | Milestone: 2.0.4
Component: Packaging | Version: 2.0.3
Resolution: Fixed | Keywords:
-------------------------+--------------------
Changes (by Cas):

* status: new => closed
* resolution: => Fixed


Comment:

Fixed by moving pillow to `extra_requires`: [8fb25f71f30733]

--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3282#comment:2>

Reply all
Reply to author
Forward
0 new messages