Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#41812 - [python2-kombu] requires python-anyjson

Attached to Project: Community Packages
Opened by Josh (codekoala) - Wednesday, 03 September 2014, 20:40 GMT
Last edited by Felix Yan (felixonmars) - Thursday, 04 September 2014, 01:02 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Loading a celery application fails because python2-kombu imports anyjson without requiring it to be installed. anyjson *is* in the checkdepends, though.

Additional info:
* using python2-kombu 3.0.21-2
* kombu's anyjson requirement is satisfied with a normal pip install celery

Steps to reproduce:
* pacman -Sy python2-pip python2-kombu
* pip2 install --no-deps celery
* python2 -c "from celery import Celery"

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python2.7/site-packages/celery/five.py", line 307, in __getattr__
module = __import__(self._object_origins[name], None, None, [name])
File "/usr/lib/python2.7/site-packages/celery/app/__init__.py", line 14, in <module>
from celery import _state
File "/usr/lib/python2.7/site-packages/celery/_state.py", line 20, in <module>
from celery.utils.threads import LocalStack
File "/usr/lib/python2.7/site-packages/celery/utils/__init__.py", line 25, in <module>
from kombu.entity import Exchange, Queue
File "/usr/lib/python2.7/site-packages/kombu/entity.py", line 12, in <module>
from .serialization import prepare_accept_content
File "/usr/lib/python2.7/site-packages/kombu/serialization.py", line 388, in <module>
register_json()
File "/usr/lib/python2.7/site-packages/kombu/serialization.py", line 310, in register_json
from anyjson import loads as json_loads, dumps as json_dumps
ImportError: No module named anyjson
This task depends upon

Closed by  Felix Yan (felixonmars)
Thursday, 04 September 2014, 01:02 GMT
Reason for closing:  Fixed
Additional comments about closing:  3.0.21-3
Comment by Felix Yan (felixonmars) - Thursday, 04 September 2014, 00:57 GMT
I was referring to this commit and removed the anyjson dependency: https://github.com/celery/kombu/commit/3d963c1eb641e593469aa28e53db447c8f895115

Sorry that I didn't realize it didn't make it to releases even it's there before the latest release.

Will fix it soon.

Loading...