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.

Installing doesn't work because of unicode issue in README.rst

See original GitHub issue

Tried to install using pip3 and pip. I’m using Arch Linux.

sudo pip3 install gTTS
Collecting gTTS
  Using cached https://files.pythonhosted.org/packages/eb/de/a932d79e20542a61649b80fc74798cce27677ba72507d55afa578f019379/gTTS-2.0.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-install-11a_6hmq/gTTS/setup.py", line 19, in <module>
        long_description=open('README.rst').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 0xc2 in position 1125: ordinal not in range(128)
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-11a_6hmq/gTTS/

As a workaround I cloned the repo and edited the setup.py file to set long_description to a string instead of having it read from the file. This appears to of have worked as a workaround and it installed fine.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
mikozhcommented, Jun 19, 2018

got the same bug on OSX, but overall thanks for the library it really helps 😃

0reactions
pndurettecommented, Jun 20, 2018

Fixed in gTTS 2.0.1!

Read more comments on GitHub >

github_iconTop Results From Across the Web

README.rst unicode causing problems · Issue #121 · fplll/fpylll
It is read in setup.py as follows: long_description=open('README.rst').read() And apparently python expects long_description to be a simple ...
Read more >
Unicode character causing error with bdist_wininst on python ...
I've traced the problem to the inclusion of unicode in my readme file. The readme file gets read into setup.py. The bug occurs...
Read more >
restview - PyPI
A viewer for ReStructuredText documents that renders them on the fly. Pass the name of a ReStructuredText document to restview, and it will...
Read more >
VAST Platform 2022 (All Versions) Readme - Instantiations
Run the downloaded VAST Platform Product Installer, VASTPlatform2022_11.0.1x86.exe (32-bit) or VASTPlatform2022_11.0.1x64.exe (64-bit). Complete installation ...
Read more >
How Can I Convert Github-Flavored Markdown To A PDF
I've had success using grip to display markdown in Chrome and then use Chrome's "Save as PDF" option in the Print dialog. pip...
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