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 mqttwarn through pip croaks with UnicodeDecodeError

See original GitHub issue

When building 0.11.3 as found at https://pypi.org/project/mqttwarn/, I hit this error:

===>  Configuring for py36-mqttwarn-0.11.3
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "setup.py", line 7, in <module>
    README = open(os.path.join(here, 'README.rst')).read()
  File "/usr/local/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 4963: ordinal not in range(128)
*** Error code 1

I have encountered this on other applications, but I do not recall the fix. To get around this and proceed with the build, I did this:

rm README.rst
touch README.rst

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jpmenscommented, Nov 25, 2019

Thanks for your report, @dlangille. Please note that we’re not as yet Python3 capable, which is why you’re seeing all those errors. The version on PyPi still requires Python2.

0reactions
amotlcommented, Dec 2, 2019

Dear Dan,

7411a39 might fix the installation issue re. README.rst for you. Also, 40fa69a5 finally brings mqttwarn way closer to Python3 (#336).

The most recent version can be installed using pip install mqttwarn and should work with both Python 2 and Python 3. We will be happy to hear back from you about the outcome.

With kind regards, Andreas.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pip install UnicodeDecodeError - python - Stack Overflow
This is a known issue with pip with an unreleased (as of 26/11/2014) fix. Since you are using Python 2.7, you can manually...
Read more >
mqttwarn - PyPI
Documentation. The handbook is the right place to read all about mqttwarn's features and service plugins. Installation. Synopsis: pip install ...
Read more >
python3 setup unicode error - Google Groups
UnicodeDecodeError : 'ascii' codec can't decode byte 0xc3 in position 2092: ... The same error occurs when I try to install the latest...
Read more >
Pip Install with Docker and Fixing the ascii decode error
When trying to install python packages with pip inside a Docker container, you may get an error like: UnicodeDecodeError: 'ascii' codec ...
Read more >
Python 3.6 UnicodeDecodeError: Invalid continuation byte
language: python python: '3.6' cache: pip before_install: ... -out keyfile -d install: - pip install -r requirements.txt - sudo bash ...
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