Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 505642 - www-apps/nikola-6.4.0 - add Python 3 support
Summary: www-apps/nikola-6.4.0 - add Python 3 support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ben de Groot (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on: 505638 505682
Blocks: 512242
  Show dependency tree
 
Reported: 2014-03-25 11:38 UTC by Dennis Schridde
Modified: 2014-09-30 05:51 UTC (History)
1 user (show)

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


Attachments
Patch for www-apps/nikola-6.4.0 ebuild with Python 3 support (nikola-6.4.0.ebuild.patch,1.26 KB, patch)
2014-03-25 12:55 UTC, Dennis Schridde
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Schridde 2014-03-25 11:38:44 UTC
bug #505638 needs to be implemented, and then www-apps/nikola should enforce support for the necessary Python versions in its dependencies. Otherwise Nikola will not work, despite all deps seemingly being satisfied in portage:

remote: Traceback (most recent call last):
remote:   File "/usr/lib/python-exec/python3.3/nikola", line 34, in <module>
remote:     from nikola import __main__
remote:   File "/usr/lib/python3.3/site-packages/nikola/__init__.py", line 33, in <module>
remote:     from .nikola import Nikola  # NOQA
remote:   File "/usr/lib/python3.3/site-packages/nikola/nikola.py", line 56, in <module>
remote:     from .post import Post
remote:   File "/usr/lib/python3.3/site-packages/nikola/post.py", line 48, in <module>
remote:     import nikola.utils
remote:   File "/usr/lib/python3.3/site-packages/nikola/utils.py", line 126, in <module>
remote:     import PyRSS2Gen as rss
remote: ImportError: No module named 'PyRSS2Gen'

Reproducible: Always
Comment 1 Dennis Schridde 2014-03-25 11:49:43 UTC
Should have read this before:
PYTHON_COMPAT=( python2_7 ) # 3_3 needs PyRSS2Gen update
Comment 2 Dennis Schridde 2014-03-25 12:18:29 UTC
I got it to work after bumping dev-python/PyRSS2Gen to 1.1 and adjusting the nikola-6.4.0.ebuild from:
    python_targets_python2_7? ( =dev-python/configparser-3.2.0*[${PYTHON_USEDEPS}] )
to
    python_targets_python2_7? ( =dev-python/configparser-3.2.0*[python_targets_python2_7] )
since configparser is included in dev-lang/python-3.

Afterwards I just added PYTHON_COMPAT=python3_3 to www-apps/nikola, dev-python/PyRSS2Gen and dev-python/assets.

Nikola now warns about assets, so I assume the old 0.1.1 version in portage does not work with the Python 3 version of Nikola (but it seems to work fine with the Python 2 version):
WARNING: Nikola: In order to USE_BUNDLES, you must install the "webassets" Python package.
Comment 3 Dennis Schridde 2014-03-25 12:55:14 UTC
Created attachment 373498 [details, diff]
Patch for www-apps/nikola-6.4.0 ebuild with Python 3 support

It seems that dev-python/assets-0.1.1 is not the package that www-apps/nikola-6.4.0 actually needs. I attached an ebuild for dev-python/webassets-0.9 to bug #505682, which seems to be the correct one.

Please find a patch for Python 3 support in www-apps/nikola-6.4.0 attached.
Comment 4 Dennis Schridde 2014-04-19 04:53:23 UTC
Has anyone had a look at this recently?
Comment 5 Ben de Groot (RETIRED) gentoo-dev 2014-04-20 09:59:53 UTC
(In reply to Dennis Schridde from comment #4)
> Has anyone had a look at this recently?

I don't have much time to really look into all the issues, so I'd be happy for someone else to step up and become primary maintainer of this package.

Also, I do not have python-3 installed, so I cannot test any proposed solutions for that issue.
Comment 6 Dirkjan Ochtman (RETIRED) gentoo-dev 2014-06-03 06:58:20 UTC
Dennis, if you're willing, I could proxy for you.

Have you done your quizzes yet? ;)
Comment 7 Ben de Groot (RETIRED) gentoo-dev 2014-09-30 05:51:18 UTC
Done. Thanks for your contributions!