Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 608486 - app-text/paperwork-1.1 and app-text/paperwork-backend-1.1 are not compatible with <python3
Summary: app-text/paperwork-1.1 and app-text/paperwork-backend-1.1 are not compatible ...
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-02-06 22:32 UTC by Kristian
Modified: 2017-02-13 15:31 UTC (History)
0 users

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 Kristian 2017-02-06 22:32:44 UTC
I installed paperwork-1.1 for python2_7. Startup fails with

Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/paperwork", line 3, in <module>
    from paperwork.paperwork import main
  File "/usr/lib64/python2.7/site-packages/paperwork/paperwork.py", line 41, in <module>
    from .frontend.mainwindow import ActionRefreshIndex, MainWindow
  File "/usr/lib64/python2.7/site-packages/paperwork/frontend/mainwindow/__init__.py", line 37, in <module>
    from paperwork_backend.docsearch import DocSearch
  File "/usr/lib64/python2.7/site-packages/paperwork_backend/docsearch.py", line 24, in <module>
    import queue
ImportError: No module named queue

The Queue module has been renamed to queue in Python 3. See https://docs.python.org/2/library/queue.html

Changing the import to "queue" lets paperwork start up, but it still seems broken.

Removing python2_7 from PYTHON_COMPAT in paperwork and paperwork-backend gives me a working version with python3_4.
Comment 1 Kristian 2017-02-06 22:33:43 UTC
changing it to "Queue" of course ...
Comment 2 Bernard Cafarelli gentoo-dev 2017-02-13 14:31:24 UTC
Thanks for the report!

There is a bugfix release available but it does not mention python2 compatibility, I will mention this upstream
Comment 3 Bernard Cafarelli gentoo-dev 2017-02-13 15:31:42 UTC
OK so one of the changes I missed from 1.0 was the switch to python 3 only support. So 1.0.x versions worked only with some luck :)

I updated >=1.1 ebuilds to reflect this