codeapp icon indicating copy to clipboard operation
codeapp copied to clipboard

Python - Flask usage not possible?

Open payko-r34p3r opened this issue 3 years ago • 5 comments

Hi there, i have tried to use the flask package with code (app) in my python code, but it does not seem to work how it supposed to be. Also i have used the console to get the needed packages via pip with:

pip install flask pip install flask-login pip install flask-sqlalchemy

As seen in the screenshot it seems that the code can‘t be executed due to permission errors. Is this caused by iOS restrictions or may be there some possible workarounds or solutions to work properly with this addin?

56C39021-6FF5-4BD1-9D51-E887EE528F47

payko-r34p3r avatar May 11 '22 11:05 payko-r34p3r

The error message shows Python tried to spawn a subprocess which is not allowed in iOS. Although it's unlikely, I'll investigate if there's a way to workaround this in Flask.

bummoblizard avatar May 14 '22 17:05 bummoblizard

This needs to be fixed.

hg0428 avatar May 16 '22 18:05 hg0428

Hi there,

i have tried to use the flask package with code (app) in my python code, but it does not seem to work how it supposed to be.

Also i have used the console to get the needed packages via pip with:

pip install flask

pip install flask-login

pip install flask-sqlalchemy

As seen in the screenshot it seems that the code can‘t be executed due to permission errors.

Is this caused by iOS restrictions or may be there some possible workarounds or solutions to work properly with this addin?

56C39021-6FF5-4BD1-9D51-E887EE528F47

Python Flask seems to be working for me, try turning debug mode off

hg0428 avatar Jun 14 '22 21:06 hg0428

Hi there, i have tried to use the flask package with code (app) in my python code, but it does not seem to work how it supposed to be. Also i have used the console to get the needed packages via pip with: pip install flask pip install flask-login pip install flask-sqlalchemy As seen in the screenshot it seems that the code can‘t be executed due to permission errors. Is this caused by iOS restrictions or may be there some possible workarounds or solutions to work properly with this addin? 56C39021-6FF5-4BD1-9D51-E887EE528F47

Python Flask seems to be working for me, try turning debug mode off

Hey hg0428,

yeah thank you for the answer, with debug mode off it is working fine. It‘s only a bit complicated with testing properly on iPadOS, hoping for the new stage manager feature of iPadOS 16 so that this testing workflow is also improved from iPadOS site.

But it should also be cool if we could get a workaround with a working debug mode so that you can see a debug output if some unexpected error or http status code is thrown. Is this possible? Cause it would improve this already pretty nice editor.

Thanks in advance.

kind regards

payko-r34p3r avatar Jun 29 '22 09:06 payko-r34p3r

It's the same with me, at the first launch it tells me that I don't have permission, while at the second it says that the port is busy. And this is repeated for however many other ports are selected.

iPad Air 4 - last iOS CodeApp - test mode

9A251479-CA05-41CA-8364-FC25122338D9

MilovanTomasevic avatar Sep 29 '22 07:09 MilovanTomasevic