Skip to content
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

Flask error on running MakePatches #21

Open
abreto42 opened this issue Jul 23, 2024 · 0 comments
Open

Flask error on running MakePatches #21

abreto42 opened this issue Jul 23, 2024 · 0 comments

Comments

@abreto42
Copy link

Hello all,

I'm trying to get PatchSorter running on a local machine. I've followed the installation instructions as provided and am able to start the app and load the demo images onto PatchSorter. When I use the MakePatches button however, this throws an error.

2024-07-23 09:11:23,547 - jobs - [ERROR] (THREAD 6208) Worker ERROR callback upon job completion fail. No application found. Either work inside a view function or push an application context. See http://flask-sqlalchemy.pocoo.org/contexts/.

I'm not familiar with Flask or SQLAlchemy. I've tried to implement the solution provided at the link in both the run_patchsorter() function as well as the add_async_job() function without resolving this error. The end result is that PatchSorter hangs without generating any of the patches or providing further updates in the console log beyond "No updates from the server on make_patches (job 1)"

I'm currently testing using the supplied testing image with the binary mask option. I'm currently using Python 3.8.8 and am attaching the libraries installed on the test env. Any help would be appreciated.

env_contents.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant