-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get the stdout/stderr content of the Python script? #142
Comments
请教一下您是如何设置export SERIOUS_PYTHON_SITE_PACKAGES=$(pwd)/build/site-packages的,是在flutter项目中设置的吗 |
不是的,直接在命令上设置的。主要是打包 app.zip 的时候需要这个东西。 No. Set this env var in a terminal, not in the flutter project. For example # First step
export SERIOUS_PYTHON_SITE_PACKAGES=$(pwd)/build/site-packages
# Second step
dart run serious_python:main package -p Android app/src -r 'feeluown==4.1.10' --verbose |
i have same question. |
I found a workaround. Setup the logging output to a file in your Python application. And use Tips: Since adb shell has no command like |
I run the flask_example in local environment.
There is a print statement in the python script
serious-python/src/serious_python/example/flask_example/app/src/main.py
Line 8 in e7e4279
However, I can't see the output of the script.
I have a Python service and it use Python logging module to log some info/warning/errors.
While using serious_python, I found no way to check the log. Can you help me?
The text was updated successfully, but these errors were encountered: