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.

error in pip install readchar

See original GitHub issue

platform: windows 10 python version: 3.6

I couldn’t install library. Here’s the output from console:

pip install readchar --no-cache-dir
Collecting readchar
  Downloading readchar-0.7.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\xx\AppData\Local\Temp\pip-build-2ipoynqy\readchar\setup.py", line 15, in <module>
        long_description=read_description(),
      File "C:\Users\xx\AppData\Local\Temp\pip-build-2ipoynqy\readchar\setup.py", line 9, in read_description
        return fd.read()
      File "d:\users\xx\documents\__dev\__python\pythonx64-3-6-1\lib\encodings\cp1252.py", line 23, in decode
        return codecs.charmap_decode(input,self.errors,decoding_table)[0]
    UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 2462: character maps to <undefined>

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\xx\AppData\Local\Temp\pip-build-2ipoynqy\readchar\

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
calonxcommented, Dec 5, 2017

Short answer: 0.1.0 does indeed install without issue.

Medium-length answer: A more robust fix might’ve been to instead add “encoding=‘utf-8’” to the read_description procedure in setup.py. That would allow you to keep the accents in README.rst.

[EDIT: Credit for this suggestion actually goes to @Eitilt. I couldn’t remember where I had spotted it, but I happened to find it again!]

[EDIT2: I’m finally catching up on the history of all of this stuff. This problem was indeed solved as described by merging @Eitilt’s change. It just appeared to me that it was unfixed because the “latest” version in PyPI has neither the README.rst fix nor the setup.py fix. The answer below still applies, AFAIK.]

Long answer: I think your versioning needs some correction – you speak of “0.1.0” in terms of it being the newest version, but the highest version-number available in PyPI is “0.7”.

Indeed, if I manually instruct pip to use 0.1.0, it installs without issue:

image

With the premise that “0.7” was actually supposed to be “0.0.7” (and the understanding that I might be totally off the mark), I’d recommend that you push a new version as “0.10.0” to put all of this confusion behind us. = )

1reaction
mbdevplcommented, Jan 29, 2020

As #27 has been resolved, I think this should be closed. Please reopen if you experience the same issue with the latest version (as of now: 2.0.1).

Read more comments on GitHub >

github_iconTop Results From Across the Web

readchar - PyPI
python -readchar. Library to easily read single chars and keystrokes. Born as a python-inquirer requirement. Installation. simply install it via pip :
Read more >
Getting error "readchar is not defined" when trying to read one ...
This can happen because of 3 reasons: readchar not installed, which seems from console is installed. pip packages not found by interpreter.
Read more >
ModuleNotFoundError: No module named 'readchar'
pip install readchar. After the installation of readchar python library, ModuleNotFoundError: No module named 'readchar' error will be solved.
Read more >
error when doing pip install of edgesoftware - Intel Communities
When running python3 -m pip install edgesoftware --user i get error message. 1. it assumes pip3 is installled. 2. launchpadlib 1.10.13 requires ...
Read more >
No module found? : r/learnpython - Reddit
No module named readchar? I installed it using pip install readchar but it tells me it's not found. Full error Traceback (most recent...
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