\\idna\\uts46data.py error FormatException: Missing extension byte (at offset 14629)

Open
#91 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
dart, flutter, python

Research direction

Reproduce the Windows APK build with flet build apk --include-packages flet_audio -vv and inspect the compilation of idna/uts46data.py, where the reported failure occurs. Check the Flet 0.23.0.dev2913, Flutter 3.22.1, and Dart 3.4.1 environment; done means the APK is created without the Missing extension byte error.

Written by the indexing model from the issue text.

Description

I am building a Flet APK on my Windows machine with the following command:
flet build apk --include-packages flet_audio -vv

I get the following error:

Listing 'C:\\Users\\SSosa\\AppData\\Local\\Temp\\serious_python_temp4c31557\\__pypackages__\\httpx-0.27.0.dist-info'...       
Listing 'C:\\Users\\SSosa\\AppData\\Local\\Temp\\serious_python_temp4c31557\\__pypackages__\\httpx-0.27.0.dist-info\\licenses'...
Listing 'C:\\Users\\SSosa\\AppData\\Local\\Temp\\serious_python_temp4c31557\\__pypackages__\\idna'...
Compiling 'C:\\Users\\SSosa\\AppData\\Local\\Temp\\serious_python_temp4c31557\\__pypackages__\\idna\\__init__.py'...
Compiling 'C:\\Users\\SSosa\\AppData\\Local\\Temp\\serious_python_temp4c31557\\__pypackages__\\idna\\codec.py'...
Compiling 'C:\\Users\\SSosa\\AppData\\Local\\Temp\\serious_python_temp4c31557\\__pypackages__\\idna\\compat.py'...
Compiling 'C:\\Users\\SSosa\\AppData\\Local\\Temp\\serious_python_temp4c31557\\__pypackages__\\idna\\core.py'...
Compiling 'C:\\Users\\SSosa\\AppData\\Local\\Temp\\serious_python_temp4c31557\\__pypackages__\\idna\\idnadata.py'...
Compiling 'C:\\Users\\SSosa\\AppData\\Local\\Temp\\serious_python_temp4c31557\\__pypackages__\\idna\\intranges.py'...
Compiling 'C:\\Users\\SSosa\\AppData\\Local\\Temp\\serious_python_temp4c31557\\__pypackages__\\idna\\package_data.py'...      
Compiling 'C:\\Users\\SSosa\\AppData\\Local\\Temp\\serious_python_temp4c31557\\__pypackages__\\idna\\uts46data.py'...
Error: FormatException: Missing extension byte (at offset 14629)
Deleting temp directory C:\Users\SSosa\AppData\Local\Temp\serious_python_temp4c31557
Deleting sitecustomize directory C:\Users\SSosa\AppData\Local\Temp\serious_python_sitecustomized31f554f
Deleting Python directory C:\Users\SSosa\AppData\Local\Temp\hostpython3.11_bb67a6ce
Deleting Flutter bootstrap directory C:\Users\SSosa\AppData\Local\Temp\flet_flutter_build_PwHhwAjvdj
Flet app package app/app.zip was not created.

I have the following dependences:
import os
import shutil
import random

I am running flet 0.23.0.dev2913 and flutter 3.22.1, Dart 3.4.1

Dominant language
Dart
Stars
324
Forks
47
Avg merge
7h 41m
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flet-dev/serious-python

All issues in flet-dev/serious-python

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.