-
Notifications
You must be signed in to change notification settings - Fork 138
Open
Description
name: 🐛 make exec fail
about: Create a report to help us improve FireForm.
title: "[BUG]: Make exec fails because Union is not imported in src/main.py"
labels: bug
assignees: ''
⚡️ Describe the Bug
Running the Dockerized app fails immediately because Union is used in src/main.py but is not imported.
👣 Steps to Reproduce
- Build and start the containers
- Run:
make exec - See error NameError: name 'Union' is not defined
📉 Expected Behavior
The app should start normally without crashing on a missing import.
🖥️ Environment Information
OS: macOS
Docker/Compose Version: Docker 29.2.1
Ollama Model used: mistral:latest
📸 Screenshots/Logs
Traceback (most recent call last):
File "/app/src/main.py", line 14, in
def run_pdf_fill_process(user_input: str, definitions: list, pdf_form_path: Union[str, os.PathLike]):
^^^^^
NameError: name 'Union' is not defined
make: *** [exec] Error 1
🕵️ Possible Fix
Add in the top of the /src/main.py:
from typing import Union
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels