https://prefect.io logo
Title
h

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/descriptor_database.cc:58] File already exists in database:
[libprotobuf FATAL google/protobuf/descriptor.cc:1370] 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 main.py 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 google.cloud import firestore
from os import walk, path, getenv
from environs import Env
from collections.abc 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
[packages]
prefect = "==0.7.3"
google-cloud-firestore = "==1.5.0"
python-dotenv = "==0.10.3"
environs = "==7.3.0"

[requires]
python_version = "3.7"
c

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:
protobuf==3.8
to your pipfile