Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 627494 - app-text/paperwork-1.2 installs files in invalid location
Summary: app-text/paperwork-1.2 installs files in invalid location
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Bernard Cafarelli
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-10 21:10 UTC by Pavol Cupka
Modified: 2017-11-17 17:56 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavol Cupka 2017-08-10 21:10:19 UTC
After emerge the paperwork-shell install script complains:

paperwork-shell install
/usr/lib64/python3.4/site-packages/paperwork/frontend/mainwindow/__init__.py:30: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk
/usr/lib64/python3.4/site-packages/paperwork/frontend/mainwindow/__init__.py:31: PyGIWarning: Notify was imported without specifying a version first. Use gi.require_version('Notify', '0.7') before import to ensure that the right version gets loaded.
  from gi.repository import Notify
Installing /home/palica/.local/share/icons/hicolor/16/apps/paperwork.png ...
{
    "args": "(2, 'No such file or directory')",
    "exception": "<class 'FileNotFoundError'>",
    "reason": "[Errno 2] No such file or directory: '/usr/lib64/python3.4/site-packages/paperwork/frontend/share/icons/hicolor/16/apps/paperwork.png'",
    "status": "error"
}
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.4/paperwork-shell", line 11, in <module>
    load_entry_point('paperwork-backend==1.2', 'console_scripts', 'paperwork-shell')()
  File "/usr/lib64/python3.4/site-packages/paperwork_backend/shell_cmd.py", line 204, in main
    sys.exit(COMMANDS[args.cmd](*args.cmd_args))
  File "/usr/lib64/python3.4/site-packages/paperwork/frontend/shell.py", line 89, in install
    shutil.copyfile(src, dst)
  File "/usr/lib64/python3.4/shutil.py", line 108, in copyfile
    with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib64/python3.4/site-packages/paperwork/frontend/share/icons/hicolor/16/apps/paperwork.png'

All these files are installed into /usr/paperwork
Comment 1 Bernard Cafarelli gentoo-dev 2017-11-07 14:33:04 UTC
Thanks for the report, can you test with 1.2.1? There is a change upstream that looks like it fixes this specific path error:
https://github.com/openpaperwork/paperwork/commit/8dabfb891cc21f9f5730fbd2a97647ee73d636b8#diff-b9d2ba67ee1b3c5bb430e966cf8fe985
And 1.2.1 installed files properly on my system

Also with the upcoming 1.3 there will be a system-wide installation option again, so the ebuild will provide icons and desktop file again then (but that one is not yet released)
Comment 2 Bernard Cafarelli gentoo-dev 2017-11-17 16:38:31 UTC
Well system-wide install can not be run from the ebuild, but at least the install steps work fine here with just bumped 1.2.2.

Don't hesitate to reopen if it still does not work on your system!
Comment 3 Pavol Cupka 2017-11-17 17:34:02 UTC
Thank you. I didn't have time to react. 1.2.1 works fine for me.
Comment 4 Pavol Cupka 2017-11-17 17:35:26 UTC
paperwork-shell install
Installing /home/palica/.local/share/icons/hicolor/16/apps/paperwork.png ...
Installing /home/palica/.local/share/icons/hicolor/22/apps/paperwork.png ...
Installing /home/palica/.local/share/icons/hicolor/24/apps/paperwork.png ...
Installing /home/palica/.local/share/icons/hicolor/30/apps/paperwork.png ...
Installing /home/palica/.local/share/icons/hicolor/32/apps/paperwork.png ...
Installing /home/palica/.local/share/icons/hicolor/36/apps/paperwork.png ...
Installing /home/palica/.local/share/icons/hicolor/42/apps/paperwork.png ...
Installing /home/palica/.local/share/icons/hicolor/48/apps/paperwork.png ...
Installing /home/palica/.local/share/icons/hicolor/50/apps/paperwork.png ...
Installing /home/palica/.local/share/icons/hicolor/64/apps/paperwork.png ...
Installing /home/palica/.local/share/icons/hicolor/72/apps/paperwork.png ...
Installing /home/palica/.local/share/icons/hicolor/96/apps/paperwork.png ...
Installing /home/palica/.local/share/icons/hicolor/100/apps/paperwork.png ...
Installing /home/palica/.local/share/icons/hicolor/128/apps/paperwork.png ...
Installing /home/palica/.local/share/icons/hicolor/150/apps/paperwork.png ...
Installing /home/palica/.local/share/icons/hicolor/160/apps/paperwork.png ...
Installing /home/palica/.local/share/icons/hicolor/192/apps/paperwork.png ...
Installing /home/palica/.local/share/icons/hicolor/256/apps/paperwork.png ...
Installing /home/palica/.local/share/icons/hicolor/512/apps/paperwork.png ...
Installing /home/palica/.local/share/icons/hicolor/scalable/apps/paperwork.svg ...
Installing /home/palica/.local/share/icons/hicolor/scalable/apps/paperwork_halo.svg ...
Generating /home/palica/.local/share/applications/paperwork.desktop ...
Done
Comment 5 Bernard Cafarelli gentoo-dev 2017-11-17 17:56:03 UTC
No problem, thanks for the confirmation!