flet-dev / serious-python

Python runtime for Flutter apps
Apache License 2.0
211 stars 22 forks source link

Package fained using official code #118

Closed RalphGuo closed 1 month ago

RalphGuo commented 1 month ago

I'm going to package python libs using official code: image but error occured as followed image those Chinese word indicates :missing parameter in parameter list.

If I manually define the libs I need, it workd well.

dart run serious_python:main package app/src -p Windows --requirements 'numpy,lru-dict' --verbose

What change can I make to package libs from requirements.txt?

markm812 commented 1 month ago

You are running on Windows, try wrapping your requirements args with single quotes like this.

dart run serious_python:main package app/src -p Android --requirements '-r,app/src/requirements.txt' 
RalphGuo commented 1 month ago

You are running on Windows, try wrapping your requirements args with single quotes like this.

dart run serious_python:main package app/src -p Android --requirements '-r,app/src/requirements.txt' 

Thanks a lot! I changed your code like below in VSCode and it worked!

dart run serious_python:main package app/src -p Android --requirements '-rapp/src/requirements.txt' --verbose

there is no space between '-r' and 'app' for unknown reason, but it do work. :P