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.

A UnicodeDecodeError happened when install tortoise-orm in non-utf8 environment

See original GitHub issue

Describe the bug

>>> verstrline = open("tortoise/__init__.py", "rt").read()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'gbk' codec can't decode byte 0xa6 in position 9131: illegal multibyte sequence

To Reproduce In tortoise/__init__.py line 225

...
 and the same output as ``describe_model(…)`` as value:
...

Replace “…” with three dots “…” which are ASCII characters.

Expected behavior Install successfully

Additional context None

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
zkongecommented, Sep 3, 2019

It works.

0reactions
grigicommented, Sep 3, 2019

Please test if pip install https://github.com/tortoise/tortoise-orm/archive/update_queryset.zip fixes it for you?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error while upgrading pip: UnicodeDecodeError: 'utf-8' codec ...
It looks like a bug in pip where it's assuming its metadata is stored as UTF-8. Instead, your username appears to be encoded...
Read more >
Getting started — Tortoise ORM v0.17.3 Documentation
First you have to install tortoise like this: pip install tortoise-orm ... Not automatically installed on Windows due to often a lack of...
Read more >
'utf-8' codec can't decode byte 0xc6 in position 69 ... - GitHub
Can't install PyYaml: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc6 in position 69: invalid continuation byte #4998.
Read more >
tortoise-orm - PyPI
An ORM (Object Relational Mapper) is designed to address these issues, by centralising your data model and data rules, ensuring that your data...
Read more >
[Example code]-How to create ArrayField in TortoiseORM
As you can see, there is no matching field in TortoiseORM, so you have to extend the existing field class. I suggest extending...
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