Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 777993 - app-misc/trash-cli: Runtime dependency required for dev-python/psutil
Summary: app-misc/trash-cli: Runtime dependency required for dev-python/psutil
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Zoltan Puskas
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2021-03-24 14:49 UTC by Dirk Tilger
Modified: 2021-04-14 06:48 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Attached patch resolves this issue (0001-trash-cli-Runtime-dependency-on-psutil.patch,1.80 KB, patch)
2021-03-24 14:49 UTC, Dirk Tilger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Tilger 2021-03-24 14:49:39 UTC
Created attachment 693342 [details, diff]
Attached patch resolves this issue

trash-cli needs psutil to run (RDEPEND), but psutil is only listed as BDEPEND. This causes this:

-----8<-----
user@host ~ $ trash-list
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.8/trash-list", line 5, in <module>
    sys.exit(main())
  File "/usr/lib/python3.8/site-packages/trashcli/list.py", line 18, in main
    ListCmd(
  File "/usr/lib/python3.8/site-packages/trashcli/list.py", line 49, in run
    parse(argv)
  File "/usr/lib/python3.8/site-packages/trashcli/trash.py", line 110, in __call__
    self.default_action()
  File "/usr/lib/python3.8/site-packages/trashcli/list.py", line 63, in list_trash
    trashdirs.list_trashdirs()
  File "/usr/lib/python3.8/site-packages/trashcli/trash.py", line 151, in list_trashdirs
    self._for_each_volume_trashcan()
  File "/usr/lib/python3.8/site-packages/trashcli/trash.py", line 157, in _for_each_volume_trashcan
    for volume in self.mount_points():
  File "/usr/lib/python3.8/site-packages/trashcli/list_mount_points.py", line 8, in mount_points
    import psutil
ModuleNotFoundError: No module named 'psutil'
-----8<-----
Comment 1 Zoltan Puskas 2021-03-29 03:07:31 UTC
Thank you for reporting and submitting a patch. Fix is up and should land in portage tree soon.
Comment 2 Joonas Niilola gentoo-dev 2021-04-14 06:48:40 UTC
7c3b35633891b26f4f0736950c389a111233f50f