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.

UnicodeDecodeError: 'charmap' codec can't decode byte 0x98 in position 6074: character maps to <undefined>

See original GitHub issue

Help me please. What am I doing wrong?

from pyowm import OWM
owm = OWM('xxxxxxxx')
reg = owm.city_id_registry()
london_loc = reg.ids_for('London', 'GB')
print(london_loc)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
csparpacommented, Sep 15, 2017

Hi @mmagnuski and @RussianButman I’ve been able to test the branch on Windows 10 with Python3.5 and it seems to work fine (I manage to get the correct output for the ids_for() call when running mmagnusky’s code snippet)

Can you please confirm that you also don’t get exceptions?

0reactions
csparpacommented, Sep 16, 2017

Thanks @mmagnuski !

Fixed with #213

Read more comments on GitHub >

github_iconTop Results From Across the Web

'charmap' codec can't decode byte X in position Y: character ...
If the file contains characters of values not defined in this codepage (like 0x90) we get UnicodeDecodeError . Sometimes we don't know the...
Read more >
'charmap' codec can't decode byte 0x81 in position X ... - GitHub
... UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 29343726: character maps to <undefined>. I fixed it by adding the parameter ...
Read more >
'charmap' codec can't decode byte 0x9d - YouTube
Solved - UnicodeDecodeError : ' charmap ' codec can't decode byte 0x9d. Watch later. Share. Copy link. Info. Shopping. Tap to unmute.
Read more >
'charmap' codec can't decode byte 0x9d in position ... - YouTube
ÕzbekchaXatolik: UnicodeDecodeError : ' charmap ' codec can't decode byte 0x9d in position 2045: character maps to undefined #python #progra...
Read more >
'charmap' codec can't decode byte 0xX in position X: character ...
UnicodeDecodeError : ' charmap ' codec can't decode byte 0xX in position X: character maps to undefined, when trying to #open() and print()...
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