A UnicodeDecodeError happened when install tortoise-orm in non-utf8 environment
See original GitHub issueDescribe 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:
- Created 4 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It works.
Please test if
pip install https://github.com/tortoise/tortoise-orm/archive/update_queryset.zip
fixes it for you?