Karan
Karan

Reputation: 2130

Unable to install elastic beanstalk AWS

I am setting up a aws server for Django Server. I have successfully installed python3.5.1, pip and django.

Following aws documentation i am running the following command :

pip install awsebcli

I get this Error:

Collecting awsebcli
  Using cached awsebcli-3.12.4.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-1eejewt6/awsebcli/setup.py", line 46, in <module>
        long_description=open('README.rst').read() + open('CHANGES.rst').read(),
      File "/usr/lib/python3.5/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 4092: ordinal not in range(128)

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-1eejewt6/awsebcli/

like error occurs when trying to opean and read rst files.

Eb repo can be found here . I tried fixing the error in package and run manually but no success. Why is there an error in official repo? Am i missing something?

Upvotes: 2

Views: 1078

Answers (5)

stringsn88keys
stringsn88keys

Reputation: 948

From https://forums.aws.amazon.com/thread.jspa?messageID=897654&tstart=0 I decided to try

export LC_ALL=en_US.UTF-8 and loading the README.rst and CHANGES.rst files no longer threw the encoding error. This avoids manually manipulating the package files.

Upvotes: 1

Chris Claude
Chris Claude

Reputation: 1372

In my case, I found that I had to install the setuptools first by doing pip install setuptools then the installation of awsebcli went successfully.

Upvotes: 0

Ankan-Zerob
Ankan-Zerob

Reputation: 3468

The error is in changes.rst and/or readme file. they are not required for the installation. so open the files, delete its contents and save. manually install it by going to the folder and executing python setup.py install

Upvotes: 0

Nikhil Prakash
Nikhil Prakash

Reputation: 196

In awsebcli package for version >= 3.10.3, some changes were added in CHANGES.rst which had a unicode character 'ã' on Line 156. This is causing the mentioned error while installing in some os versions.

If awsebcli version >= 3.10.3 is required, then install the package the manually till there is no official resolution from aws.

Follow this answer of how to install a package manually.

Before installing remove the unicode character in CHANGES.rst file. It will work fine.

Upvotes: 3

Karan
Karan

Reputation: 2130

I manually installed an older version (3.10.0) located here and this one is working fine.

Upvotes: 5

Related Questions