Skip to content
This repository was archived by the owner on Apr 20, 2025. It is now read-only.
This repository was archived by the owner on Apr 20, 2025. It is now read-only.

Installing from source gives UnicodeDecodeError #129

Closed

Description

@AbdealiLoKo

When I install rsa with source, it fails with an ascii codec error.
It works if I install it with the wheel.

Environment Versions
  1. OS Type CentOS 7
  2. Python version: Python 3.6.6
  3. pip version: pip 8.1.2 from /usr/lib/python3.6/site-packages (python 3.6)
Steps to replicate
$ docker run -it --rm centos:7 bash
# yum install -y epel-release
...
# yum install -y python36-pip
...
# pip3.6 install --no-binary :all: rsa
Collecting rsa
  Downloading https://files.pythonhosted.org/packages/cb/d0/8f99b91432a60ca4b1cd478fd0bdf28c1901c58e3a9f14f4ba3dba86b57f/rsa-4.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-oh4v54vc/rsa/setup.py", line 20, in <module>
        long_description = f.read()
      File "/usr/lib64/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 898: ordinal not in range(128)

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-oh4v54vc/rsa/
You are using pip version 8.1.2, however version 19.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

Activity

  1. simonvanderveldt commented on Jun 25, 2019

    @simonvanderveldt

    Seems like there's something wrong with the readme?
    NixOS/nixpkgs#53116

  2. sybrenstuvel commented on Jun 26, 2019

    @sybrenstuvel
    Owner

    Please test with the latest revision of the master branch, it should be fixed now. If you can confirm it's fixed, I can release it.

  3. thusoy commented on Jul 15, 2019

    @thusoy

    I can confirm that the problem is fixed on master for me at least.

  4. sybrenstuvel commented on Aug 4, 2019

    @sybrenstuvel
    Owner

    Thanks for checking. I'm preparing version 4.1 for release soon.

  5. AbdealiLoKo commented on Feb 11, 2020

    @AbdealiLoKo
    Author

    Any update for the release ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions