Hui Zheng

06/29/2020, 12:27 AM
Hello Prefect Support, I am running into another error in my old-version preflect-flow local run, I am trying to run a flow locally and got the error below
[libprotobuf ERROR google/protobuf/] File already exists in database:
[libprotobuf FATAL google/protobuf/] CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
libc++abi.dylib: terminating with uncaught exception of type google::protobuf::FatalException: CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, size):
Abort trap: 6
The error is thrown when the code try to import
from main import dbt_flow
from .py file that defines the prefect flow. below are some libraries imported in the file
from google.api_core.datetime_helpers import DatetimeWithNanoseconds
from prefect import task, Flow, Parameter, triggers, unmapped
from prefect.engine import signals, result_handlers
from prefect.schedules import IntervalSchedule
from datetime import timedelta, datetime, MAXYEAR
from import firestore
from os import walk, path, getenv
from environs import Env
from import Iterable
from itertools import chain
from copy import deepcopy
from time import sleep
import requests
import argparse
import json
import pytz
here is the pipfile
prefect = "==0.7.3"
google-cloud-firestore = "==1.5.0"
python-dotenv = "==0.10.3"
environs = "==7.3.0"

python_version = "3.7"

Chris White

06/29/2020, 3:13 AM
Hi @Hui Zheng - this issue appears to be a bug unrelated to Prefect. A google search suggests adding:
to your pipfile