Mage.ai | Error UnicodeDecodeError: ‘charmap’ codec – Windows

This article will be related to troubleshooting. Today, I managed somehow to write a comment that caused the entire Mage.ai instance to crash due to a UnicodeDecodeError. How did I manage to do that?

Mage.ai UnicodeDecodeError: ‘charmap’ codec can’t decode byte

Mage.ai failed to decode a specific character “ň,” which is specific to the Czech Republic. I’m not sure if this can happen with other character sets, but I’ll provide as much information as possible so that you can potentially catch this error.

The error occurred because I wrote a comment in Python code “# Přesuňte se do cílového adresáře s modelem” (Czech) When attempting to start Mage.ai, an error occurs as shown below, and the Mage.ai instance fails to startUnicodeDecodeError: ‘charmap’ codec can’t decode byte 0x88 in position 554: character maps to <undefined>

Environment in Which the Error Occurred

The environments in which this occurred are as follows:

error-decoding-mage

I tested the error in five different environments:

  • iOS Docker – OK
  • iOS pip – OK
  • Windows natively – Error
  • Windows via Parallels with a custom instance – Error
  • Windows via Parallels connected to a Mage.ai instance running on iOS – OK (ip/6789)

Browsers Safari and Chrome – regardless of the environment.

>> For more articles on Mage.ai please see category page

5/5 - (1 vote)
Category: Mage.ai - Tutorials and Intro

About Ing. Jan Zedníček - Data Engineer & Controlling

My name is Jan Zednicek, and I have been working as a freelance Data Engineer for roughly 10 years. During this time, I have been publishing case studies and technical guides on this website, targeting professionals, students, and enthusiasts interested in Data Engineering particularly on Microsoft technologies as well as corporate finance and reporting solutions. 🔥 If you found this article helpful, please share it or mention me on your website or Community forum

Leave a Reply

Your email address will not be published. Required fields are marked *