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.

ASA with Unicode character 🪙 in unit-name raises KeyError in pools.py

See original GitHub issue
pool = {
...
    liquidity_asset_name': liquidity_asset['params']['name']
...

A workaround for us is just a simple liquidity_asset['params'].get('name'), but you’d probably want a solution/name that includes the other ASA in the pool.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
gokselcobancommented, Nov 16, 2022

I couldn’t reproduce the issue with the latest versions of Tinyman and Algo SDK. Looks like the issue is resolved. Thank you for reporting it.

0reactions
anantastycommented, Feb 28, 2022

The actual issue seems to be in algod.asset_info not being able to parse unicode.

Read more comments on GitHub >

github_iconTop Results From Across the Web

KeyError on Unicode character #1099 - mozilla/DeepSpeech
Run it from the folder where DeepSpeech.py is located. python -c "from util.text import Alphabet; a = Alphabet('/path/to/alphabet.txt'); print ...
Read more >
python - Dictionary keys with unicode characters raise Error
I write CSV parser. CSV file have strings with unidentified characters and JSON file have map with the correct strings ...
Read more >
unicodedata — Unicode Database — Python 3.11.1 ...
This module provides access to the Unicode Character Database (UCD) which defines character properties for all Unicode ... If not found, KeyError is...
Read more >
Tinyman Python SDK - PythonRepo
pip install git+https://github.com/tinymanorg/tinyman-py-sdk.git ... ASA with Unicode character 🪙 in unit-name raises KeyError in pools.py.
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