ckanapi error on html.entities
- Dominant language
- Python
- Stars
- 212
- Forks
- 81
- PR merge metrics
- No merged PRs in 30d
Description
Does anyone know the fix for the following error when using ckanapi?
Traceback (most recent call last):
File "/bin/ckanapi", line 9, in
load_entry_point('ckanapi==4.7', 'console_scripts', 'ckanapi')()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/usr/lib/python2.7/site-packages/ckanapi/cli/main.py", line 92, in
from ckanapi.cli.dump import dump_things
File "/usr/lib/python2.7/site-packages/ckanapi/cli/dump.py", line 16, in
from ckanapi.datapackage import create_datapackage, \
File "/usr/lib/python2.7/site-packages/ckanapi/datapackage.py", line 6, in
import slugify
File "/usr/lib/python2.7/site-packages/slugify/__init__.py", line 2, in
from .slugify import *
File "/usr/lib/python2.7/site-packages/slugify/slugify.py", line 4, in
from html.entities import name2codepoint
ImportError: No module named html.entities
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with ckanapi/cli/main.py and ckanapi/datapackage.py, then inspect the installed slugify/slugify.py shown in the traceback. Reproduce the /bin/ckanapi import failure in the reported Python 2.7 environment and trace the dependency compatibility issue. Done means ckanapi starts without the html.entities ImportError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100