question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Name conflict with other slugify package

See original GitHub issue

When working on the following code:

from slugify import slugify
fname = slugify("cc / loc") + ".png"

My IDE (PyCharm 2018.2.5) will suggest to automatically download a package, but the wrong one. And this results in an error: NameError: name 'unicode' is not defined

The namespace of this package should be changed, or the half implemented package should be removed from PIP.

A tool like this should work out of the box.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
roniemartinezcommented, Jul 27, 2019

@un33k I use PyCharm. If you import a module and it does not exist yet PyCharm will ask you to install what you imported, in the case of:

import slugify

It will install the slugify package and notpython-slugify

1reaction
roniemartinezcommented, Jul 27, 2019

then it is possible that a fake/clone version is installed by PyCharm

He installed the slugify package, not python-slugify. It’s been there 9 years ago, certainly not a clone.

https://github.com/zacharyvoase/slugify/blob/master/src/slugify.py#L24

Read more comments on GitHub >

github_iconTop Results From Across the Web

django - Conflict between python-slugify and awesome-slugify
Both python-slugify and awesome-slugify use the same top-level directory slugify . There is no way to install both at the same time.
Read more >
slugify - npm
Start using slugify in your project by running `npm i slugify`. There are 1823 other projects in the npm registry using slugify.
Read more >
Custom Post Type slug same as page name causing a conflict
I would like the slug to be the same as a page name, because all of these CPT's will be queried on that...
Read more >
Add a slug to environments (!7983) · Merge requests - GitLab
Adds a slug field to the environments table, populating existing rows and ... be really easy for two cleaned and shortened environment names...
Read more >
python-slugify - PyPI
A Python slugify application that also handles Unicode. ... However, there is an alternative decoding package called Unidecode (GPL).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found