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.

slugify dependency is not allowing to install kaggle

See original GitHub issue

slugify is an old library that doesn’t support python3, so I don’t get why kaggle, which is a python3 package, is requiring it. When trying to install via pypi, I get this error:

Collecting slugify
  Using cached slugify-0.0.1.tar.gz (1.2 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-y15tsfxk/slugify/setup.py'"'"'; __file__='"'"'/tmp/pip-install-y15tsfxk/slugify/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-69zmzca8
         cwd: /tmp/pip-install-y15tsfxk/slugify/
    Complete output (11 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-y15tsfxk/slugify/setup.py", line 26, in <module>
        version          = get_version(),
      File "/tmp/pip-install-y15tsfxk/slugify/setup.py", line 20, in get_version
        data = read_from(rel_file('src', 'slugify.py'))
      File "/tmp/pip-install-y15tsfxk/slugify/setup.py", line 15, in read_from
        return fp.read()
      File "/usr/lib/python3.6/encodings/ascii.py", line 26, in decode
        return codecs.ascii_decode(input, self.errors)[0]
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 254: ordinal not in range(128)
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
linzino7commented, Oct 30, 2020

I didn’t continue to investigate how to solve, as I opted to use kaggle web page for submitting. @quhb2455 @kalessin I had same error with you.

The followings are my solution:

  1. Clone kaggle-api master branch to your PC.

     git clone https://github.com/Kaggle/kaggle-api.git
    
  2. Mark slugify dependency package from setup.py in kaggle-api.git folder.

     'six >= 1.10',^M
     'certifi',^M
     'python-dateutil',^M
     'requests',^M
     'tqdm',^M
     'python-slugify',^M
     #'slugify',^M
     'urllib3',^M
    
  3. Install slugify by pip3. This is python3 version.

    pip3 install python-slugify
    
  4. install kaggle-api in folder.

    pip3 install -e .
    

Done.

My environment:

  • Ubuntu 18.04
  • Python 3.6.9
1reaction
quhb2455commented, Oct 22, 2020

@kalessin Hi! Finally, I figured out this problem. when i installed Tensorflow object detection api, this error came out. It was exactly same error message with your error

python3 doesn’t support slugiy-0.0.1 , so i searched slugify-0.0.1.tar.gz file on google and installed it by myself after then Tensorflow object detection api work!

i hope that this way will help you

here is my environment python 3.6 tensorflow 2.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

Regarding kaggle installation on windows 10 pc
I created python environment 2 then installed kaggle using "pip install kaggle" as its successfully installed "Successfully built kaggle python-slugify ...
Read more >
python-slugify - PyPI
This module, by default installs and uses text-unidecode (GPL & Perl Artistic) for its decoding needs. However, there is an alternative decoding package...
Read more >
python - Unable to install Airflow even after setting ...
Airflow is not officially supporting python3.7 yet. enter image description here. I think pip might not be picking up your environment ...
Read more >
Re: Exporting a dataset to Google Sheets - Dataiku Community
I'm still getting the same error. I already had all the dependencies installed. Is there anything else I can try to fix this?...
Read more >
Tips & Tricks of Deploying Deep Learning Webapp on Heroku ...
Add tensorflow-cpu instead of tensorflow which will reduce the slug size from ... First, we will install a buildpack that will allow the...
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