Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency clash: slugify #3

Open
AntoineAugusti opened this issue Jul 20, 2020 · 2 comments
Open

Dependency clash: slugify #3

AntoineAugusti opened this issue Jul 20, 2020 · 2 comments

Comments

@AntoineAugusti
Copy link
Contributor

Installing cookiecutter installs python-slugify which clashes with a udata dependency, awesome-slugify

https://github.com/opendatateam/udata/blob/32b09032f3b60ef26ae105ccdbce4591dae7dc6a/requirements/install.pip#L2

Reported in
voronind/awesome-slugify#37

Symptom

You'll encounter the following issue when starting your udata webserverser

  File "/Users/antoineaugusti/Documents/udata/udata/core/storages/api.py", line 10, in <module>
    from . import utils, chunks
  File "/Users/antoineaugusti/Documents/udata/udata/core/storages/utils.py", line 6, in <module>
    from slugify import Slugify
ImportError: cannot import name 'Slugify' from 'slugify' (/Users/antoineaugusti/Documents/udata/venv/lib/python3.7/site-packages/slugify/__init__.py)

Fix

You can force the reinstallation of awesome-slugify to use the required package on udata.

pip install --upgrade --force-reinstall awesome-slugify

python-slugify is only required when executing the cookiecutter command and not when running the app.

@abulte
Copy link
Contributor

abulte commented Jul 20, 2020

Indeed.

Never happened to me because cookiecutter is not installed in my udata's env:

$ which cookiecutter
/usr/local/bin/cookiecutter

@AntoineAugusti
Copy link
Contributor Author

I installed it in the same venv for commodity. If someone else does the same, at least the issue explains why they'll have an issue and how to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants