Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 423005 - app-text/landslide-1.0.1: install fails with python3 as system default
Summary: app-text/landslide-1.0.1: install fails with python3 as system default
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Naohiro Aota
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-06-22 20:59 UTC by Alexander Sulfrian
Modified: 2012-06-27 21:27 UTC (History)
0 users

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


Attachments
fix for the landslide ebuild to correctly install the module only for python2 (fix-landslide-for-python3.patch,942 bytes, patch)
2012-06-22 21:01 UTC, Alexander Sulfrian
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Sulfrian 2012-06-22 20:59:34 UTC
app-text/landslide does not support python3. The current ebuild tries to install for all python ABIs and creates a wrapper script for python3. The patch fix the ebuild to only install it for python2.

Reproducible: Always

Steps to Reproduce:
1. eselect python set python3.2
2. emerge landslide
3. /usr/bin/landslide
Actual Results:  
$ landslide 
Traceback (most recent call last):
  File "/usr/bin/landslide", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib64/python3.2/site-packages/pkg_resources.py", line 2711, in <module>
    working_set.require(__requires__)
  File "/usr/lib64/python3.2/site-packages/pkg_resources.py", line 687, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib64/python3.2/site-packages/pkg_resources.py", line 585, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Markdown


Expected Results:  
$ landslide 
Usage: landslide [options] input.md ...

Generates an HTML5 or PDF slideshow from Markdown or other formats

Options:
  -h, --help            show this help message and exit
  -c, --copy-theme      Copy theme directory into current presentation source
                        directory
  -b, --debug           Will display any exception trace to stdout
  -d FILE, --destination=FILE
                        The path to the to the destination file: .html or .pdf
                        extensions allowed (default: presentation.html)
  -e ENCODING, --encoding=ENCODING
                        The encoding of your files (defaults to utf8)
  -i, --embed           Embed stylesheet and javascript contents,
                        base64-encoded images in presentation to make a
                        standalone document
  -l LINENOS, --linenos=LINENOS
                        How to output linenos in source code. Three options
                        availables: no (no line numbers); inline (inside <pre>
                        tag); table (lines numbers in another cell, copy-paste
                        friendly)
  -o, --direct-output   Prints the generated HTML code to stdout; won't work
                        with PDF export
  -q, --quiet           Won't write anything to stdout (silent mode)
  -r, --relative        Make your presentation asset links relative to current
                        pwd; This may be useful if you intend to publish your
                        html presentation online.
  -t THEME, --theme=THEME
                        A theme name, or path to a landlside theme directory
  -v, --verbose         Write informational messages to stdout (enabled by
                        default)
  -x EXTENSIONS, --extensions=EXTENSIONS
                        Comma-separated list of extensions for Markdown

Note: PDF export requires the `prince` program: http://princexml.com/
Comment 1 Alexander Sulfrian 2012-06-22 21:01:34 UTC
Created attachment 315995 [details, diff]
fix for the landslide ebuild to correctly install the module only for python2
Comment 2 Naohiro Aota gentoo-dev 2012-06-27 21:27:57 UTC
Patch added to the tree. Thanks!