ywangd / stash

StaSh - Shell for Pythonista
MIT License
1.94k stars 227 forks source link

Pip install err with slugify, something about UnicodeDecodeError #423

Open ghost opened 3 years ago

ghost commented 3 years ago

I keep getting this error.

[~/Documents]$ pip install unicode-slugify Querying PyPI ... Downloading package ... Opening: https://files.pythonhosted.org/packages/8c/ba/1a05f61c7fd72df85ae4dc1c7967a3e5a4b6c61f016e794bc7f09b2597c0/unicode-slugify-0.1.3.tar.gz

Save as: /private/var/mobile/Containers/Data/Application/63809F9D-AFF6-44E8-B494-01ACEBB9ED60/tmp//unicode-slugify-0.1.3.tar.gz (4430 bytes) [====================] 100.00% | 4.3KiB
Extracting archive file ... Archive extracted. Running setup file ... UnicodeDecodeError('ascii', b"# Unicode Slugify\n\nUnicode Slugify is a slugifier that generates unicode slugs. It was originally\nused in the Firefox Add-ons web site to generate slugs for add-ons and add-on\ncollections. Many of these add-ons and collections had unicode characters and\nrequired more than simple transliteration.\n\n## Usage\n\n >>> import slugify\n\n >>> slugify.slugify(u'B\xc3\xa4n...g (bang)')\n u'b\xc3\xa4ng-bang'\n\n >>> slugify.slugify(u'B\xc3\xa4uma means a tree', only_ascii=True)\n u'bauma-means-a-tree'\n\n >>> slugify(u'Bak\xc4\xb1c\xc4\xb1 geldi', only_ascii=True)\n u'bakici-geldi'\n\n## Thanks\n\nTomaz Solc, unidecode, https://pypi.python.org/pypi/Unidecode\n", 361, 362, 'ordinal not in range(128)') Failed to run setup.py Fall back to directory guessing ... Error: Cannot locate packages. Manual installation required.