Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 350633 - dev-python/turbojson-1.3 requires PEAK-Rules
Summary: dev-python/turbojson-1.3 requires PEAK-Rules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-05 04:44 UTC by Dan Callaghan
Modified: 2016-10-12 08:49 UTC (History)
0 users

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


Attachments
ebuild patch (turbojson.patch,402 bytes, patch)
2011-12-03 20:08 UTC, Ian Delaney (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Callaghan 2011-01-05 04:44:10 UTC
$ python -c 'import turbojson'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python2.6/site-packages/turbojson/__init__.py", line 3, in <module>
    from turbojson.jsonsupport import JsonSupport
  File "/usr/lib64/python2.6/site-packages/turbojson/jsonsupport.py", line 3, in <module>
    from turbojson.jsonify import GenericJSON
  File "/usr/lib64/python2.6/site-packages/turbojson/jsonify.py", line 6, in <module>
    from peak.rules import abstract, around, when
ImportError: No module named rules

dev-python/turbojson-1.1.4 works fine.

Reproducible: Always

Steps to Reproduce:
Comment 1 Ian Delaney (RETIRED) gentoo-dev 2011-12-03 20:08:16 UTC
Created attachment 294637 [details, diff]
ebuild patch

This is a (silly) flaw is the source.  There is indeed no such module as peak.rules.

gentoo64 dev-python # ls /usr/lib64/python2.7/site-packages/peak/
util
only a peak.util.  Where the rules modules is meant to comes from, Hu knows. 
Unless someone knows what it is and how to add it to I think the python-decorators package, the sensible fix is to remove the 1 reference to it.
Comment 2 Ian Delaney (RETIRED) gentoo-dev 2011-12-03 21:46:34 UTC
forget the patch, the package exists but it's not in portage.
http://peak.telecommunity.com/snapshots/PEAK-Rules-0.5a1.dev-r2700.tar.gz
Comment 3 Patrice Clement gentoo-dev 2016-10-12 08:49:11 UTC
Dependency added. Closing.