after_merge
stringlengths
28
79.6k
before_merge
stringlengths
20
79.6k
url
stringlengths
38
71
full_traceback
stringlengths
43
922k
traceback_type
stringclasses
555 values
def _get_ast( self, schema: s_schema.Schema, context: sd.CommandContext, *, parent_node: Optional[qlast.DDLOperation] = None, ) -> Optional[qlast.DDLOperation]: set_field = super()._get_ast(schema, context, parent_node=parent_node) if set_field is None or self.is_attribute_computed("target")...
def _get_ast( self, schema: s_schema.Schema, context: sd.CommandContext, *, parent_node: Optional[qlast.DDLOperation] = None, ) -> Optional[qlast.DDLOperation]: set_field = super()._get_ast(schema, context, parent_node=parent_node) if set_field is None: return None else: ...
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def get_referrers_ex( self, scls: so.Object, *, scls_type: Optional[Type[so.Object_T]] = None, ) -> Dict[ Tuple[Type[so.Object_T], str], FrozenSet[so.Object_T], ]: raise NotImplementedError
def get_referrers_ex( self, scls: so.Object, ) -> Dict[ Tuple[Type[so.Object], str], FrozenSet[so.Object], ]: raise NotImplementedError
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def _get_referrers( self, scls: so.Object, *, scls_type: Optional[Type[so.Object_T]] = None, field_name: Optional[str] = None, ) -> FrozenSet[so.Object_T]: try: refs = self._refs_to[scls.id] except KeyError: return frozenset() else: referrers: Set[so.Object] = set...
def _get_referrers( self, scls: so.Object, *, scls_type: Optional[Type[so.Object_T]] = None, field_name: Optional[str] = None, ) -> FrozenSet[so.Object_T]: try: refs = self._refs_to[scls.id] except KeyError: return frozenset() else: referrers: Set[so.Object] = set...
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def get_referrers_ex( self, scls: so.Object, *, scls_type: Optional[Type[so.Object_T]] = None, ) -> Dict[ Tuple[Type[so.Object_T], str], FrozenSet[so.Object_T], ]: try: refs = self._refs_to[scls.id] except KeyError: return {} else: result = {} if scls...
def get_referrers_ex( self, scls: so.Object, ) -> Dict[ Tuple[Type[so.Object], str], FrozenSet[so.Object], ]: try: refs = self._refs_to[scls.id] except KeyError: return {} else: result = {} for (st, fn), ids in refs.items(): result[st, fn] = froze...
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def get_referrers_ex( self, scls: so.Object, *, scls_type: Optional[Type[so.Object_T]] = None, ) -> Dict[ Tuple[Type[so.Object_T], str], FrozenSet[so.Object_T], ]: base = self._base_schema.get_referrers_ex(scls, scls_type=scls_type) top = self._top_schema.get_referrers_ex(scls, scls_type...
def get_referrers_ex( self, scls: so.Object, ) -> Dict[ Tuple[Type[so.Object], str], FrozenSet[so.Object], ]: base = self._base_schema.get_referrers_ex(scls) top = self._top_schema.get_referrers_ex(scls) return { k: base.get(k, frozenset()) | top.get(k, frozenset()) for k in ...
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def resolve(self, schema: s_schema.Schema) -> Type: return schema.get( self.get_name(schema), type=self.schemaclass, sourcectx=self.sourcectx, )
def resolve(self, schema: s_schema.Schema) -> Type: return schema.get( self.name, type=self.schemaclass, sourcectx=self.sourcectx, )
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def __init__( self, *, components: Iterable[TypeShell], module: str, schemaclass: typing.Type[Type] = Type, sourcectx: Optional[parsing.ParserContext] = None, ) -> None: super().__init__( name=s_name.UnqualName("__unresolved__"), schemaclass=schemaclass, sourcectx=sou...
def __init__( self, components: Iterable[TypeShell], module: str, ) -> None: self.components = tuple(components) self.module = module
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def __init__( self, *, components: Iterable[TypeShell], module: str, opaque: bool = False, schemaclass: typing.Type[Type] = Type, sourcectx: Optional[parsing.ParserContext] = None, ) -> None: super().__init__( components=components, module=module, schemaclass=sche...
def __init__( self, components: Iterable[TypeShell], module: str, opaque: bool = False, ) -> None: self.components = tuple(components) self.module = module self.opaque = opaque
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def get_name( self, schema: s_schema.Schema, ) -> s_name.Name: return get_union_type_name( (c.get_name(schema) for c in self.components), opaque=self.opaque, module=self.module, )
def get_name( self, schema: s_schema.Schema, ) -> s_name.Name: _, name = get_union_type_id( schema, self.components, opaque=self.opaque, module=self.module, ) return name
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def as_create_delta( self, schema: s_schema.Schema, *, view_name: Optional[s_name.QualName] = None, attrs: Optional[Dict[str, Any]] = None, ) -> sd.Command: name = get_union_type_name( (c.get_name(schema) for c in self.components), opaque=self.opaque, module=self.module, ...
def as_create_delta( self, schema: s_schema.Schema, *, view_name: Optional[s_name.QualName] = None, attrs: Optional[Dict[str, Any]] = None, ) -> sd.Command: type_id, name = get_union_type_id( schema, self.components, opaque=self.opaque, module=self.module, ) ...
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def get_name( self, schema: s_schema.Schema, ) -> s_name.Name: return get_intersection_type_name( (c.get_name(schema) for c in self.components), module=self.module, )
def get_name( self, schema: s_schema.Schema, ) -> s_name.Name: _, name = get_intersection_type_id( schema, self.components, module=self.module, ) return name
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def get_displayname_static(cls, name: s_name.Name) -> str: if isinstance(name, s_name.QualName): return str(name) else: return s_name.unmangle_name(str(name))
def get_displayname_static(cls, name: s_name.Name) -> str: return type_displayname_from_name(name)
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def create( cls: typing.Type[Array_T], schema: s_schema.Schema, *, name: Optional[s_name.Name] = None, id: Optional[uuid.UUID] = None, dimensions: Sequence[int] = (), element_type: Any, **kwargs: Any, ) -> typing.Tuple[s_schema.Schema, Array_T]: if not dimensions: dimensions ...
def create( cls: typing.Type[Array_T], schema: s_schema.Schema, *, name: Optional[s_name.Name] = None, id: Union[uuid.UUID, so.NoDefaultT] = so.NoDefault, dimensions: Sequence[int] = (), element_type: Any, **kwargs: Any, ) -> typing.Tuple[s_schema.Schema, Array_T]: if not dimensions:...
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def derive_subtype( self, schema: s_schema.Schema, *, name: s_name.QualName, attrs: Optional[Mapping[str, Any]] = None, **kwargs: Any, ) -> typing.Tuple[s_schema.Schema, ArrayExprAlias]: assert not kwargs return ArrayExprAlias.from_subtypes( schema, [self.get_element_type...
def derive_subtype( self, schema: s_schema.Schema, *, name: s_name.QualName, attrs: Optional[Mapping[str, Any]] = None, **kwargs: Any, ) -> typing.Tuple[s_schema.Schema, Array]: assert not kwargs return Array.from_subtypes( schema, [self.get_element_type(schema)], ...
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def from_subtypes( cls: typing.Type[Array_T], schema: s_schema.Schema, subtypes: Sequence[Type], typemods: Any = None, *, name: Optional[s_name.QualName] = None, **kwargs: Any, ) -> typing.Tuple[s_schema.Schema, Array_T]: if len(subtypes) != 1: raise errors.SchemaError( ...
def from_subtypes( cls: typing.Type[Array_T], schema: s_schema.Schema, subtypes: Sequence[Type], typemods: Any = None, *, name: Optional[s_name.QualName] = None, id: Union[uuid.UUID, so.NoDefaultT] = so.NoDefault, **kwargs: Any, ) -> typing.Tuple[s_schema.Schema, Array_T]: if len(sub...
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def get_name(self, schema: s_schema.Schema) -> s_name.Name: if str(self.name) == "__unresolved__": self.name = self.schemaclass.generate_name( self.subtype.get_name(schema), ) return self.name
def get_name(self, schema: s_schema.Schema) -> s_name.Name: if str(self.name) == "__unresolved__": typemods = self.typemods dimensions = typemods[0] tid = generate_array_type_id(schema, self.subtype, dimensions) self.name = type_name_from_id_and_displayname( tid, f"array<...
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def get_id(self, schema: s_schema.Schema) -> uuid.UUID: return generate_array_type_id(schema, self.subtype, self.typemods[0])
def get_id(self, schema: s_schema.Schema) -> uuid.UUID: name = self.get_name(schema) stable_type_id = type_id_from_name(name) if stable_type_id is not None: return stable_type_id dimensions = self.typemods[0] quals: typing.List[str] = [str(name)] if self.expr is not None: quals....
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def resolve(self, schema: s_schema.Schema) -> Array: if isinstance(self.name, s_name.QualName): return schema.get(self.name, type=Array) else: return schema.get_by_id(self.get_id(schema), type=Array)
def resolve(self, schema: s_schema.Schema) -> Array: return schema.get_by_id(self.get_id(schema), type=Array)
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def as_create_delta( self, schema: s_schema.Schema, *, view_name: Optional[s_name.QualName] = None, attrs: Optional[Dict[str, Any]] = None, ) -> sd.CommandGroup: ca: Union[CreateArray, CreateArrayExprAlias] cmd = sd.CommandGroup() if view_name is None: ca = CreateArray( ...
def as_create_delta( self, schema: s_schema.Schema, *, view_name: Optional[s_name.QualName] = None, attrs: Optional[Dict[str, Any]] = None, ) -> sd.CommandGroup: ca: Union[CreateArray, CreateArrayExprAlias] cmd = sd.CommandGroup() type_id = self.get_id(schema) if view_name is None: ...
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def create( cls: typing.Type[Tuple_T], schema: s_schema.Schema, *, name: Optional[s_name.Name] = None, id: Optional[uuid.UUID] = None, element_types: Mapping[str, Type], named: bool = False, **kwargs: Any, ) -> typing.Tuple[s_schema.Schema, Tuple_T]: el_types = so.ObjectDict[str, Typ...
def create( cls: typing.Type[Tuple_T], schema: s_schema.Schema, *, name: Optional[s_name.Name] = None, id: Union[uuid.UUID, so.NoDefaultT] = so.NoDefault, element_types: Mapping[str, Type], named: bool = False, **kwargs: Any, ) -> typing.Tuple[s_schema.Schema, Tuple_T]: element_types...
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def get_subtypes(self, schema: s_schema.Schema) -> typing.Tuple[Type, ...]: return self.get_element_types(schema).values(schema)
def get_subtypes(self, schema: s_schema.Schema) -> typing.Tuple[Type, ...]: return self.get_element_types(schema).values(schema) if self.element_types: return self.element_types.objects(schema) else: return []
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def derive_subtype( self, schema: s_schema.Schema, *, name: s_name.QualName, attrs: Optional[Mapping[str, Any]] = None, **kwargs: Any, ) -> typing.Tuple[s_schema.Schema, TupleExprAlias]: assert not kwargs return TupleExprAlias.from_subtypes( schema, dict(self.iter_subtype...
def derive_subtype( self, schema: s_schema.Schema, *, name: s_name.QualName, attrs: Optional[Mapping[str, Any]] = None, **kwargs: Any, ) -> typing.Tuple[s_schema.Schema, Tuple]: assert not kwargs return Tuple.from_subtypes( schema, dict(self.iter_subtypes(schema)), ...
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def from_subtypes( cls: typing.Type[Tuple_T], schema: s_schema.Schema, subtypes: Union[Iterable[Type], Mapping[str, Type]], typemods: Any = None, *, name: Optional[s_name.QualName] = None, **kwargs: Any, ) -> typing.Tuple[s_schema.Schema, Tuple_T]: named = False if typemods is not No...
def from_subtypes( cls: typing.Type[Tuple_T], schema: s_schema.Schema, subtypes: Union[Iterable[Type], Mapping[str, Type]], typemods: Any = None, *, name: Optional[s_name.QualName] = None, id: Union[uuid.UUID, so.NoDefaultT] = so.NoDefault, **kwargs: Any, ) -> typing.Tuple[s_schema.Schem...
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def create_shell( cls, schema: s_schema.Schema, *, subtypes: Mapping[str, TypeShell], typemods: Any = None, name: Optional[s_name.Name] = None, ) -> TupleTypeShell: if name is None: name = s_name.UnqualName(name="__unresolved__") return TupleTypeShell( subtypes=subtypes,...
def create_shell( cls, schema: s_schema.Schema, *, subtypes: Mapping[str, TypeShell], typemods: Any = None, name: Optional[s_name.Name] = None, ) -> TupleTypeShell: if name is None: name = s_name.UnqualName(name="__unresolved__") return TupleTypeShell( subtypes=subtypes,...
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def material_type( self, schema: s_schema.Schema, ) -> typing.Tuple[s_schema.Schema, Tuple]: # We need to resolve material types of all the subtypes recursively. new_material_type = False subtypes = {} for st_name, st in self.iter_subtypes(schema): schema, stm = st.material_type(schema)...
def material_type( self: Tuple_T, schema: s_schema.Schema, ) -> typing.Tuple[s_schema.Schema, Tuple_T]: # We need to resolve material types of all the subtypes recursively. new_material_type = False subtypes = {} for st_name, st in self.iter_subtypes(schema): schema, stm = st.material_t...
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def __init__( self, *, name: s_name.Name, subtypes: Mapping[str, TypeShell], typemods: Any = None, schemaclass: typing.Type[Tuple] = Tuple, ) -> None: super().__init__(name=name, schemaclass=schemaclass) self.subtypes = subtypes self.typemods = typemods
def __init__( self, *, name: s_name.Name, expr: Optional[str] = None, subtypes: Mapping[str, TypeShell], typemods: Any = None, ) -> None: super().__init__(name=name, schemaclass=Tuple, expr=expr) self.subtypes = subtypes self.typemods = typemods
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def get_name(self, schema: s_schema.Schema) -> s_name.Name: if str(self.name) == "__unresolved__": typemods = self.typemods subtypes = self.subtypes named = typemods is not None and typemods.get("named", False) self.name = self.schemaclass.generate_name( {n: st.get_name(s...
def get_name(self, schema: s_schema.Schema) -> s_name.Name: if str(self.name) == "__unresolved__": typemods = self.typemods subtypes = self.subtypes named = typemods is not None and typemods.get("named", False) tid = generate_tuple_type_id(schema, subtypes, named) st_names = ...
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def get_id(self, schema: s_schema.Schema) -> uuid.UUID: return generate_tuple_type_id(schema, self.subtypes, self.is_named())
def get_id(self, schema: s_schema.Schema) -> uuid.UUID: name = self.get_name(schema) stable_type_id = type_id_from_name(name) if stable_type_id is not None: return stable_type_id named = self.is_named() quals: typing.List[str] = [str(name)] if self.expr is not None: quals.appen...
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def resolve(self, schema: s_schema.Schema) -> Tuple: if isinstance(self.name, s_name.QualName): return schema.get(self.name, type=Tuple) else: return schema.get_by_id(self.get_id(schema), type=Tuple)
def resolve(self, schema: s_schema.Schema) -> Tuple: return schema.get_by_id(self.get_id(schema), type=Tuple)
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def as_create_delta( self, schema: s_schema.Schema, *, view_name: Optional[s_name.QualName] = None, attrs: Optional[Dict[str, Any]] = None, ) -> sd.CommandGroup: ct: Union[CreateTuple, CreateTupleExprAlias] cmd = sd.CommandGroup() if view_name is None: ct = CreateTuple( ...
def as_create_delta( self, schema: s_schema.Schema, *, view_name: Optional[s_name.QualName] = None, attrs: Optional[Dict[str, Any]] = None, ) -> sd.CommandGroup: ct: Union[CreateTuple, CreateTupleExprAlias] cmd = sd.CommandGroup() type_id = self.get_id(schema) if view_name is None: ...
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def ensure_schema_type_expr_type( schema: s_schema.Schema, type_shell: TypeExprShell, parent_cmd: sd.Command, *, src_context: typing.Optional[parsing.ParserContext] = None, context: sd.CommandContext, ) -> Optional[sd.Command]: name = type_shell.get_name(schema) texpr_type = schema.get(n...
def ensure_schema_type_expr_type( schema: s_schema.Schema, type_shell: TypeExprShell, parent_cmd: sd.Command, *, src_context: typing.Optional[parsing.ParserContext] = None, context: sd.CommandContext, ) -> Optional[sd.Command]: module = type_shell.module components = type_shell.component...
https://github.com/edgedb/edgedb/issues/2002
ERROR: InternalServerError: 'UnionType' object has no attribute 'get_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-...
AttributeError
def _describe_object( self, schema: s_schema.Schema, source: s_obj.Object, ) -> List[DumpBlockDescriptor]: cols = [] shape = [] ptrdesc: List[DumpBlockDescriptor] = [] if isinstance(source, s_props.Property): schema, prop_tuple = s_types.Tuple.from_subtypes( schema, ...
def _describe_object( self, schema: s_schema.Schema, source: s_obj.Object, ) -> List[DumpBlockDescriptor]: cols = [] shape = [] ptrdesc: List[DumpBlockDescriptor] = [] if isinstance(source, s_props.Property): schema, prop_tuple = s_types.Tuple.from_subtypes( schema, ...
https://github.com/edgedb/edgedb/issues/2057
edgedb error: WARNING: unsolicited message ErrorResponse(ErrorResponse { severity: Error, code: 16777216, message: "unhandled errors in a TaskGroup; 1 sub errors: (BackendError)\n + BackendError: relation \"edgedbpub.b33c7457-3ee5-11eb-ada4-4716c5d2f104\" does not exist\n | File \"edb/server/pgcon/pgcon.pyx\", line 8...
BackendError
async def describe_database_restore( self, tx_snapshot_id: str, dump_server_ver_str: Optional[str], schema_ddl: bytes, schema_ids: List[Tuple[str, str, bytes]], blocks: List[Tuple[bytes, bytes]], # type_id, typespec ) -> RestoreDescriptor: schema_object_ids = { (name, qltype if qlty...
async def describe_database_restore( self, tx_snapshot_id: str, dump_server_ver_str: Optional[str], schema_ddl: bytes, schema_ids: List[Tuple[str, str, bytes]], blocks: List[Tuple[bytes, bytes]], # type_id, typespec ) -> RestoreDescriptor: schema_object_ids = { (name, qltype if qlty...
https://github.com/edgedb/edgedb/issues/2057
edgedb error: WARNING: unsolicited message ErrorResponse(ErrorResponse { severity: Error, code: 16777216, message: "unhandled errors in a TaskGroup; 1 sub errors: (BackendError)\n + BackendError: relation \"edgedbpub.b33c7457-3ee5-11eb-ada4-4716c5d2f104\" does not exist\n | File \"edb/server/pgcon/pgcon.pyx\", line 8...
BackendError
async def describe_database_restore( self, tx_snapshot_id: str, dump_server_ver_str: Optional[str], schema_ddl: bytes, schema_ids: List[Tuple[str, str, bytes]], blocks: List[Tuple[bytes, bytes]], # type_id, typespec ) -> RestoreDescriptor: schema_object_ids = { (s_name.name_from_str...
async def describe_database_restore( self, tx_snapshot_id: str, dump_server_ver_str: Optional[str], schema_ddl: bytes, schema_ids: List[Tuple[str, str, bytes]], blocks: List[Tuple[bytes, bytes]], # type_id, typespec ) -> RestoreDescriptor: schema_object_ids = { (s_name.name_from_str...
https://github.com/edgedb/edgedb/issues/2057
edgedb error: WARNING: unsolicited message ErrorResponse(ErrorResponse { severity: Error, code: 16777216, message: "unhandled errors in a TaskGroup; 1 sub errors: (BackendError)\n + BackendError: relation \"edgedbpub.b33c7457-3ee5-11eb-ada4-4716c5d2f104\" does not exist\n | File \"edb/server/pgcon/pgcon.pyx\", line 8...
BackendError
def _describe_type( self, t, view_shapes, view_shapes_metadata, follow_links: bool = True ): # The encoding format is documented in edb/api/types.txt. buf = self.buffer if isinstance(t, s_types.Tuple): subtypes = [ self._describe_type(st, view_shapes, view_shapes_metadata) ...
def _describe_type( self, t, view_shapes, view_shapes_metadata, follow_links: bool = True ): # The encoding format is documented in edb/api/types.txt. buf = self.buffer if isinstance(t, s_types.Tuple): subtypes = [ self._describe_type(st, view_shapes, view_shapes_metadata) ...
https://github.com/edgedb/edgedb/issues/1812
asttests> SELECT array_agg((SELECT ast::Dict {keys} FILTER count(.keys) = 2 LIMIT 1).keys); ERROR: InternalServerError: <Link 48b8eb51-fe77-11ea-bb24-0de48e5974e3 at 0x0x7ff9d977dc10> Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?templa...
KeyError
def compile_Shape(shape: qlast.Shape, *, ctx: context.ContextLevel) -> irast.Set: expr = setgen.ensure_set(dispatch.compile(shape.expr, ctx=ctx), ctx=ctx) expr_stype = setgen.get_set_type(expr, ctx=ctx) if not isinstance(expr_stype, s_objtypes.ObjectType): raise errors.QueryError( f"shap...
def compile_Shape(shape: qlast.Shape, *, ctx: context.ContextLevel) -> irast.Set: expr = setgen.ensure_set(dispatch.compile(shape.expr, ctx=ctx), ctx=ctx) expr_stype = setgen.get_set_type(expr, ctx=ctx) if not isinstance(expr_stype, s_objtypes.ObjectType): raise errors.QueryError( f"shap...
https://github.com/edgedb/edgedb/issues/1788
ERROR: InternalServerError: Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/Users/yury/dev/edge/edgedb/edb/server/procpool/worker.py", line 75, in worker r...
InternalServerError
def compile_result_clause( result: qlast.Expr, *, view_scls: Optional[s_types.Type] = None, view_rptr: Optional[context.ViewRPtr] = None, view_name: Optional[s_name.SchemaName] = None, result_alias: Optional[str] = None, forward_rptr: bool = False, ctx: context.ContextLevel, ) -> irast.S...
def compile_result_clause( result: qlast.Expr, *, view_scls: Optional[s_types.Type] = None, view_rptr: Optional[context.ViewRPtr] = None, view_name: Optional[s_name.SchemaName] = None, result_alias: Optional[str] = None, forward_rptr: bool = False, ctx: context.ContextLevel, ) -> irast.S...
https://github.com/edgedb/edgedb/issues/1788
ERROR: InternalServerError: Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/Users/yury/dev/edge/edgedb/edb/server/procpool/worker.py", line 75, in worker r...
InternalServerError
def compile_query_subject( expr: irast.Set, *, shape: Optional[List[qlast.ShapeElement]] = None, view_rptr: Optional[context.ViewRPtr] = None, view_name: Optional[s_name.SchemaName] = None, result_alias: Optional[str] = None, view_scls: Optional[s_types.Type] = None, compile_views: bool ...
def compile_query_subject( expr: irast.Set, *, shape: Optional[List[qlast.ShapeElement]] = None, view_rptr: Optional[context.ViewRPtr] = None, view_name: Optional[s_name.SchemaName] = None, result_alias: Optional[str] = None, view_scls: Optional[s_types.Type] = None, compile_views: bool ...
https://github.com/edgedb/edgedb/issues/1788
ERROR: InternalServerError: Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/Users/yury/dev/edge/edgedb/edb/server/procpool/worker.py", line 75, in worker r...
InternalServerError
def _process_view( *, stype: s_objtypes.ObjectType, path_id: irast.PathId, path_id_namespace: Optional[irast.WeakNamespace] = None, elements: List[qlast.ShapeElement], view_rptr: Optional[context.ViewRPtr] = None, view_name: Optional[sn.SchemaName] = None, is_insert: bool = False, is...
def _process_view( *, stype: s_objtypes.ObjectType, path_id: irast.PathId, path_id_namespace: Optional[irast.WeakNamespace] = None, elements: List[qlast.ShapeElement], view_rptr: Optional[context.ViewRPtr] = None, view_name: Optional[sn.SchemaName] = None, is_insert: bool = False, is...
https://github.com/edgedb/edgedb/issues/1788
ERROR: InternalServerError: Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/Users/yury/dev/edge/edgedb/edb/server/procpool/worker.py", line 75, in worker r...
InternalServerError
def _normalize_view_ptr_expr( shape_el: qlast.ShapeElement, view_scls: s_objtypes.ObjectType, *, path_id: irast.PathId, path_id_namespace: Optional[irast.WeakNamespace] = None, is_insert: bool = False, is_update: bool = False, from_default: bool = False, view_rptr: Optional[context.V...
def _normalize_view_ptr_expr( shape_el: qlast.ShapeElement, view_scls: s_objtypes.ObjectType, *, path_id: irast.PathId, path_id_namespace: Optional[irast.WeakNamespace] = None, is_insert: bool = False, is_update: bool = False, from_default: bool = False, view_rptr: Optional[context.V...
https://github.com/edgedb/edgedb/issues/1788
ERROR: InternalServerError: Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/Users/yury/dev/edge/edgedb/edb/server/procpool/worker.py", line 75, in worker r...
InternalServerError
def compile_Set( ir_set: irast.Set, *, ctx: context.CompilerContextLevel ) -> pgast.BaseExpr: if ctx.singleton_mode: return _compile_set_in_singleton_mode(ir_set, ctx=ctx) is_toplevel = ctx.toplevel_stmt is context.NO_STMT _compile_set_impl(ir_set, ctx=ctx) if is_toplevel: if isin...
def compile_Set( ir_set: irast.Set, *, ctx: context.CompilerContextLevel ) -> pgast.BaseExpr: if ctx.singleton_mode: return _compile_set_in_singleton_mode(ir_set, ctx=ctx) is_toplevel = ctx.toplevel_stmt is context.NO_STMT _compile_set_impl(ir_set, ctx=ctx) if is_toplevel: if isin...
https://github.com/edgedb/edgedb/issues/1715
The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-server-1-alpha5/lib/python3.8/site-packages/edb/server/procpool/worker.py", line 75, in worker res = await meth(*args) File "/usr/lib/x86_64-linux-gnu/edgedb-server-1-alpha5/li...
edb.errors.InternalServerError
def get_path_output( rel: pgast.BaseRelation, path_id: irast.PathId, *, aspect: str, allow_nullable: bool = True, ptr_info: Optional[pg_types.PointerStorageInfo] = None, env: context.Environment, ) -> pgast.OutputVar: if isinstance(rel, pgast.Query): path_id = map_path_id(path_id...
def get_path_output( rel: pgast.BaseRelation, path_id: irast.PathId, *, aspect: str, allow_nullable: bool = True, ptr_info: Optional[pg_types.PointerStorageInfo] = None, env: context.Environment, ) -> pgast.OutputVar: view_path_id_map = getattr(rel, "view_path_id_map", None) if view_...
https://github.com/edgedb/edgedb/issues/1715
The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-server-1-alpha5/lib/python3.8/site-packages/edb/server/procpool/worker.py", line 75, in worker res = await meth(*args) File "/usr/lib/x86_64-linux-gnu/edgedb-server-1-alpha5/li...
edb.errors.InternalServerError
def get_path_serialized_output( rel: pgast.Query, path_id: irast.PathId, *, env: context.Environment ) -> pgast.OutputVar: # Serialized output is a special case, we don't # want this behaviour to be recursive, so it # must be kept outside of get_path_output() generic. aspect = "serialized" path...
def get_path_serialized_output( rel: pgast.Query, path_id: irast.PathId, *, env: context.Environment ) -> pgast.OutputVar: # Serialized output is a special case, we don't # want this behaviour to be recursive, so it # must be kept outside of get_path_output() generic. aspect = "serialized" resu...
https://github.com/edgedb/edgedb/issues/1715
The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/lib/x86_64-linux-gnu/edgedb-server-1-alpha5/lib/python3.8/site-packages/edb/server/procpool/worker.py", line 75, in worker res = await meth(*args) File "/usr/lib/x86_64-linux-gnu/edgedb-server-1-alpha5/li...
edb.errors.InternalServerError
def ptrref_from_ptrcls( *, schema: s_schema.Schema, ptrcls: s_pointers.PointerLike, direction: s_pointers.PointerDirection = (s_pointers.PointerDirection.Outbound), cache: Optional[Dict[PtrRefCacheKey, irast.BasePointerRef]] = None, typeref_cache: Optional[Dict[TypeRefCacheKey, irast.TypeRef]] =...
def ptrref_from_ptrcls( *, schema: s_schema.Schema, ptrcls: s_pointers.PointerLike, direction: s_pointers.PointerDirection = (s_pointers.PointerDirection.Outbound), cache: Optional[Dict[PtrRefCacheKey, irast.BasePointerRef]] = None, typeref_cache: Optional[Dict[TypeRefCacheKey, irast.TypeRef]] =...
https://github.com/edgedb/edgedb/issues/1614
ERROR: InternalServerError: 'NoneType' object has no attribute 'is_single' Hint: This is most likely a bug in EdgeDB. Please consider opening an issue ticket at https://github.com/edgedb/edgedb/issues/new?template=bug_report.md Server traceback: Traceback (most recent call last): File "/home/victor/dev/magicstack/edged...
AttributeError
def reduce_CreateConstraint(self, *kids): r"""%reduce ABSTRACT CONSTRAINT NodeName OptOnExpr \ OptExtendingSimple""" self.val = qlast.CreateConstraint( name=kids[2].val, subject=kids[3].val, bases=kids[4].val, )
def reduce_CreateConstraint(self, *kids): r"""%reduce ABSTRACT CONSTRAINT NodeName OptOnExpr \ OptExtendingSimple""" self.val = qlast.CreateConstraint( name=kids[2].val, subject=kids[3].val, extends=kids[4].val, )
https://github.com/edgedb/edgedb/issues/1441
db> CREATE ABSTRACT CONSTRAINT `🚀🍿` EXTENDING max_len_value; OK: CREATE db> CREATE SCALAR TYPE foo EXTENDING str { ... CREATE CONSTRAINT `🚀🍿`(10); ... }; ERROR: InternalServerError: 'NoneType' object has no attribute 'get_parameter_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issu...
AttributeError
def reduce_CreateConstraint_CreateFunctionArgs(self, *kids): r"""%reduce ABSTRACT CONSTRAINT NodeName CreateFunctionArgs \ OptOnExpr OptExtendingSimple""" self.val = qlast.CreateConstraint( name=kids[2].val, params=kids[3].val, subject=kids[4].val, bases=kids[...
def reduce_CreateConstraint_CreateFunctionArgs(self, *kids): r"""%reduce ABSTRACT CONSTRAINT NodeName CreateFunctionArgs \ OptOnExpr OptExtendingSimple""" self.val = qlast.CreateConstraint( name=kids[2].val, params=kids[3].val, subject=kids[4].val, extends=kid...
https://github.com/edgedb/edgedb/issues/1441
db> CREATE ABSTRACT CONSTRAINT `🚀🍿` EXTENDING max_len_value; OK: CREATE db> CREATE SCALAR TYPE foo EXTENDING str { ... CREATE CONSTRAINT `🚀🍿`(10); ... }; ERROR: InternalServerError: 'NoneType' object has no attribute 'get_parameter_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issu...
AttributeError
def _create_begin( self, schema: s_schema.Schema, context: sd.CommandContext, ) -> s_schema.Schema: referrer_ctx = self.get_referrer_context(context) if referrer_ctx is None: schema = super()._create_begin(schema, context) if not context.canonical: self._validate_params(s...
def _create_begin( self, schema: s_schema.Schema, context: sd.CommandContext, ) -> s_schema.Schema: referrer_ctx = self.get_referrer_context(context) if referrer_ctx is None: return super()._create_begin(schema, context) subject = referrer_ctx.scls assert isinstance(subject, Consist...
https://github.com/edgedb/edgedb/issues/1441
db> CREATE ABSTRACT CONSTRAINT `🚀🍿` EXTENDING max_len_value; OK: CREATE db> CREATE SCALAR TYPE foo EXTENDING str { ... CREATE CONSTRAINT `🚀🍿`(10); ... }; ERROR: InternalServerError: 'NoneType' object has no attribute 'get_parameter_name' Hint: This is most likely a bug in EdgeDB. Please consider opening an issu...
AttributeError
def apply(self, schema, context): attrsubj = context.get(AnnotationSubjectCommandContext) assert attrsubj, "Annotation commands must be run in " + "AnnotationSubject context" name = sn.shortname_from_fullname(self.classname) attrs = attrsubj.scls.get_annotations(schema) annotation = attrs.get(schem...
def apply(self, schema, context): attrsubj = context.get(AnnotationSubjectCommandContext) assert attrsubj, "Annotation commands must be run in " + "AnnotationSubject context" with context(AnnotationValueCommandContext(schema, self, None)): name = sn.shortname_from_fullname(self.classname) a...
https://github.com/edgedb/edgedb/issues/755
Traceback (most recent call last): File "/home/victor/dev/magicstack/edgedb/tests/test_schema.py", line 2084, in test_migrations_equivalence_annotation_01 """]) File "/home/victor/dev/magicstack/edgedb/tests/test_schema.py", line 603, in _assert_migration_equivalence self._assert_migration_consistency(migrations[-1]) F...
edb.schema.objects.FieldValueNotFoundError
def _create_innards(self, schema, context): schema = super()._create_innards(schema, context) referrer_ctx = self.get_referrer_context(context) if referrer_ctx is None: return schema referrer = referrer_ctx.scls referrer_cls = type(referrer) mcls = type(self.scls) refdict = referre...
def _create_innards(self, schema, context): schema = super()._create_innards(schema, context) referrer_ctx = self.get_referrer_context(context) if referrer_ctx is None: return schema referrer = referrer_ctx.scls referrer_cls = type(referrer) mcls = type(self.scls) refdict = referre...
https://github.com/edgedb/edgedb/issues/755
Traceback (most recent call last): File "/home/victor/dev/magicstack/edgedb/tests/test_schema.py", line 2084, in test_migrations_equivalence_annotation_01 """]) File "/home/victor/dev/magicstack/edgedb/tests/test_schema.py", line 603, in _assert_migration_equivalence self._assert_migration_consistency(migrations[-1]) F...
edb.schema.objects.FieldValueNotFoundError
def update_job_status(job_id, role, party_id, job_info, create=False): job_tracker = Tracking(job_id=job_id, role=role, party_id=party_id) job_info["f_run_ip"] = RuntimeConfig.JOB_SERVER_HOST if create: dsl = json_loads(job_info["f_dsl"]) runtime_conf = json_loads(job_info["f_runtime_conf"])...
def update_job_status(job_id, role, party_id, job_info, create=False): job_tracker = Tracking(job_id=job_id, role=role, party_id=party_id) job_info["f_run_ip"] = get_lan_ip() if create: dsl = json_loads(job_info["f_dsl"]) runtime_conf = json_loads(job_info["f_runtime_conf"]) train_ru...
https://github.com/FederatedAI/FATE/issues/518
stdout:Traceback (most recent call last): File "/home/wy/FATE/examples/federatedml-1.0-examples/../../fate_flow/fate_flow_client.py", line 17, in <module> import argparse File "/home/wy/.pyenv/versions/3.6.0/lib/python3.6/argparse.py", line 86, in <module> import collections as _collections File "/home/wy/.pyenv/versio...
ImportError
def run_do(self): try: running_tasks = job_utils.query_task(status="running", run_ip=get_lan_ip()) stop_job_ids = set() detect_logger.info("start to detect running job..") for task in running_tasks: try: process_exist = job_utils.check_job_process(int(task...
def run_do(self): try: running_tasks = job_utils.query_task(status="running", run_ip=get_lan_ip()) stop_job_ids = set() detect_logger.info("start to detect running job..") for task in running_tasks: try: process_exist = job_utils.check_job_process(int(task...
https://github.com/FederatedAI/FATE/issues/518
stdout:Traceback (most recent call last): File "/home/wy/FATE/examples/federatedml-1.0-examples/../../fate_flow/fate_flow_client.py", line 17, in <module> import argparse File "/home/wy/.pyenv/versions/3.6.0/lib/python3.6/argparse.py", line 86, in <module> import collections as _collections File "/home/wy/.pyenv/versio...
ImportError
def run_task(): task = Task() task.f_create_time = current_timestamp() try: parser = argparse.ArgumentParser() parser.add_argument("-j", "--job_id", required=True, type=str, help="job id") parser.add_argument( "-n", "--component_name", required=True, type=str, help="compo...
def run_task(): task = Task() task.f_create_time = current_timestamp() try: parser = argparse.ArgumentParser() parser.add_argument( "-j", "--job_id", required=True, type=str, help="Specify a config json file path", ) ...
https://github.com/FederatedAI/FATE/issues/518
stdout:Traceback (most recent call last): File "/home/wy/FATE/examples/federatedml-1.0-examples/../../fate_flow/fate_flow_client.py", line 17, in <module> import argparse File "/home/wy/.pyenv/versions/3.6.0/lib/python3.6/argparse.py", line 86, in <module> import collections as _collections File "/home/wy/.pyenv/versio...
ImportError
def sync_task_status( job_id, component_name, task_id, role, party_id, initiator_party_id, task_info ): for dest_party_id in {party_id, initiator_party_id}: if party_id != initiator_party_id and dest_party_id == initiator_party_id: # do not pass the process id to the initiator ta...
def sync_task_status( job_id, component_name, task_id, role, party_id, initiator_party_id, task_info ): for dest_party_id in {party_id, initiator_party_id}: if party_id != initiator_party_id and dest_party_id == initiator_party_id: # do not pass the process id to the initiator ta...
https://github.com/FederatedAI/FATE/issues/518
stdout:Traceback (most recent call last): File "/home/wy/FATE/examples/federatedml-1.0-examples/../../fate_flow/fate_flow_client.py", line 17, in <module> import argparse File "/home/wy/.pyenv/versions/3.6.0/lib/python3.6/argparse.py", line 86, in <module> import collections as _collections File "/home/wy/.pyenv/versio...
ImportError
def distribute_job(job, roles, job_initiator): for role, partys in roles.items(): job.f_role = role for party_id in partys: job.f_party_id = party_id if role == job_initiator["role"] and party_id == job_initiator["party_id"]: job.f_is_initiator = 1 ...
def distribute_job(job, roles, job_initiator): for role, partys in roles.items(): job.f_role = role for party_id in partys: job.f_party_id = party_id if role == job_initiator["role"] and party_id == job_initiator["party_id"]: job.f_is_initiator = 1 ...
https://github.com/FederatedAI/FATE/issues/518
stdout:Traceback (most recent call last): File "/home/wy/FATE/examples/federatedml-1.0-examples/../../fate_flow/fate_flow_client.py", line 17, in <module> import argparse File "/home/wy/.pyenv/versions/3.6.0/lib/python3.6/argparse.py", line 86, in <module> import collections as _collections File "/home/wy/.pyenv/versio...
ImportError
def run_component( job_id, job_runtime_conf, job_parameters, job_initiator, job_args, dag, component ): parameters = component.get_role_parameters() component_name = component.get_name() module_name = component.get_module() task_id = job_utils.generate_task_id(job_id=job_id, component_name=component...
def run_component( job_id, job_runtime_conf, job_parameters, job_initiator, job_args, dag, component ): parameters = component.get_role_parameters() component_name = component.get_name() module_name = component.get_module() task_id = job_utils.generate_task_id(job_id=job_id, component_name=component...
https://github.com/FederatedAI/FATE/issues/518
stdout:Traceback (most recent call last): File "/home/wy/FATE/examples/federatedml-1.0-examples/../../fate_flow/fate_flow_client.py", line 17, in <module> import argparse File "/home/wy/.pyenv/versions/3.6.0/lib/python3.6/argparse.py", line 86, in <module> import collections as _collections File "/home/wy/.pyenv/versio...
ImportError
def start_task(job_id, component_name, task_id, role, party_id, task_config): schedule_logger.info( "job {} {} {} {} task subprocess is ready".format( job_id, component_name, role, party_id, task_config ) ) task_process_start_status = False try: task_dir = os.path.joi...
def start_task(job_id, component_name, task_id, role, party_id, task_config): schedule_logger.info( "job {} {} {} {} task subprocess is ready".format( job_id, component_name, role, party_id, task_config ) ) task_process_start_status = False try: task_dir = os.path.joi...
https://github.com/FederatedAI/FATE/issues/518
stdout:Traceback (most recent call last): File "/home/wy/FATE/examples/federatedml-1.0-examples/../../fate_flow/fate_flow_client.py", line 17, in <module> import argparse File "/home/wy/.pyenv/versions/3.6.0/lib/python3.6/argparse.py", line 86, in <module> import collections as _collections File "/home/wy/.pyenv/versio...
ImportError
def sync_job_status(job_id, roles, work_mode, initiator_party_id, job_info): for role, partys in roles.items(): job_info["f_role"] = role for party_id in partys: job_info["f_party_id"] = party_id federated_api( job_id=job_id, method="POST", ...
def sync_job_status(job_id, roles, work_mode, initiator_party_id, job_info): for role, partys in roles.items(): job_info["f_role"] = role for party_id in partys: job_info["f_party_id"] = party_id federated_api( job_id=job_id, method="POST", ...
https://github.com/FederatedAI/FATE/issues/518
stdout:Traceback (most recent call last): File "/home/wy/FATE/examples/federatedml-1.0-examples/../../fate_flow/fate_flow_client.py", line 17, in <module> import argparse File "/home/wy/.pyenv/versions/3.6.0/lib/python3.6/argparse.py", line 86, in <module> import collections as _collections File "/home/wy/.pyenv/versio...
ImportError
def finish_job(job_id, job_runtime_conf): job_parameters = job_runtime_conf["job_parameters"] job_initiator = job_runtime_conf["initiator"] model_id_base64 = base64_encode(job_parameters["model_id"]) model_version_base64 = base64_encode(job_parameters["model_version"]) for role, partys in job_runtim...
def finish_job(job_id, job_runtime_conf): job_parameters = job_runtime_conf["job_parameters"] job_initiator = job_runtime_conf["initiator"] model_id_base64 = base64_encode(job_parameters["model_id"]) model_version_base64 = base64_encode(job_parameters["model_version"]) for role, partys in job_runtim...
https://github.com/FederatedAI/FATE/issues/518
stdout:Traceback (most recent call last): File "/home/wy/FATE/examples/federatedml-1.0-examples/../../fate_flow/fate_flow_client.py", line 17, in <module> import argparse File "/home/wy/.pyenv/versions/3.6.0/lib/python3.6/argparse.py", line 86, in <module> import collections as _collections File "/home/wy/.pyenv/versio...
ImportError
def stop_job(job_id): schedule_logger.info("get stop job {} command".format(job_id)) jobs = job_utils.query_job(job_id=job_id, is_initiator=1) if jobs: initiator_job = jobs[0] job_info = {"f_job_id": job_id, "f_status": JobStatus.FAILED} roles = json_loads(initiator_job.f_roles) ...
def stop_job(job_id): schedule_logger.info("get stop job {} command".format(job_id)) jobs = job_utils.query_job(job_id=job_id, is_initiator=1) if jobs: initiator_job = jobs[0] job_info = {"f_job_id": job_id, "f_status": JobStatus.FAILED} roles = json_loads(initiator_job.f_roles) ...
https://github.com/FederatedAI/FATE/issues/518
stdout:Traceback (most recent call last): File "/home/wy/FATE/examples/federatedml-1.0-examples/../../fate_flow/fate_flow_client.py", line 17, in <module> import argparse File "/home/wy/.pyenv/versions/3.6.0/lib/python3.6/argparse.py", line 86, in <module> import collections as _collections File "/home/wy/.pyenv/versio...
ImportError
def init_config(**kwargs): for k, v in kwargs.items(): if hasattr(RuntimeConfig, k): setattr(RuntimeConfig, k, v) if k == "HTTP_PORT": setattr( RuntimeConfig, "JOB_SERVER_HOST", "{}:{}".format(get_lan_ip(), R...
def init_config(**kwargs): for k, v in kwargs.items(): if hasattr(RuntimeConfig, k): setattr(RuntimeConfig, k, v)
https://github.com/FederatedAI/FATE/issues/518
stdout:Traceback (most recent call last): File "/home/wy/FATE/examples/federatedml-1.0-examples/../../fate_flow/fate_flow_client.py", line 17, in <module> import argparse File "/home/wy/.pyenv/versions/3.6.0/lib/python3.6/argparse.py", line 86, in <module> import collections as _collections File "/home/wy/.pyenv/versio...
ImportError
def call_fun(func, config_data, dsl_path, config_path): ip = server_conf.get(SERVERS).get(ROLE).get("host") if ip in ["localhost", "127.0.0.1"]: ip = get_lan_ip() http_port = server_conf.get(SERVERS).get(ROLE).get("http.port") server_url = "http://{}:{}/{}".format(ip, http_port, API_VERSION) ...
def call_fun(func, config_data, dsl_path, config_path): ip = server_conf.get(SERVERS).get(ROLE).get("host") http_port = server_conf.get(SERVERS).get(ROLE).get("http.port") local_url = "http://{}:{}/{}".format(ip, http_port, API_VERSION) if func in JOB_OPERATE_FUNC: if func == "submit_job": ...
https://github.com/FederatedAI/FATE/issues/518
stdout:Traceback (most recent call last): File "/home/wy/FATE/examples/federatedml-1.0-examples/../../fate_flow/fate_flow_client.py", line 17, in <module> import argparse File "/home/wy/.pyenv/versions/3.6.0/lib/python3.6/argparse.py", line 86, in <module> import collections as _collections File "/home/wy/.pyenv/versio...
ImportError
def init_job_queue(): if RuntimeConfig.WORK_MODE == WorkMode.STANDALONE: job_queue = InProcessQueue() RuntimeConfig.init_config(JOB_QUEUE=job_queue) elif RuntimeConfig.WORK_MODE == WorkMode.CLUSTER: job_queue = RedisQueue( queue_name="fate_flow_job_queue", host=RE...
def init_job_queue(): if WORK_MODE == WorkMode.STANDALONE: job_queue = InProcessQueue() RuntimeConfig.init_config(JOB_QUEUE=job_queue) elif WORK_MODE == WorkMode.CLUSTER: job_queue = RedisQueue( queue_name="fate_flow_job_queue", host=REDIS["host"], por...
https://github.com/FederatedAI/FATE/issues/518
stdout:Traceback (most recent call last): File "/home/wy/FATE/examples/federatedml-1.0-examples/../../fate_flow/fate_flow_client.py", line 17, in <module> import argparse File "/home/wy/.pyenv/versions/3.6.0/lib/python3.6/argparse.py", line 86, in <module> import collections as _collections File "/home/wy/.pyenv/versio...
ImportError
def local_api(method, endpoint, json_body): try: url = "http://{}{}".format(RuntimeConfig.JOB_SERVER_HOST, endpoint) stat_logger.info("local api request: {}".format(url)) action = getattr(requests, method.lower(), None) response = action(url=url, json=json_body, headers=HEADERS) ...
def local_api(method, endpoint, json_body): try: stat_logger.info("local api request: {}".format(endpoint)) url = "{}{}".format(SERVER_HOST_URL, endpoint) action = getattr(requests, method.lower(), None) response = action(url=url, json=json_body, headers=HEADERS) stat_logger....
https://github.com/FederatedAI/FATE/issues/518
stdout:Traceback (most recent call last): File "/home/wy/FATE/examples/federatedml-1.0-examples/../../fate_flow/fate_flow_client.py", line 17, in <module> import argparse File "/home/wy/.pyenv/versions/3.6.0/lib/python3.6/argparse.py", line 86, in <module> import collections as _collections File "/home/wy/.pyenv/versio...
ImportError
def check_config(config: typing.Dict, required_arguments: typing.List): no_arguments = [] error_arguments = [] for require_argument in required_arguments: if isinstance(require_argument, tuple): config_value = config.get(require_argument[0], None) if isinstance(require_argume...
def check_config(config: typing.Dict, required_arguments: typing.List): no_arguments = [] error_arguments = [] for argument in required_arguments: if isinstance(argument, tuple): if config.get(argument[0], None) != argument[1]: error_arguments.append(argument) eli...
https://github.com/FederatedAI/FATE/issues/518
stdout:Traceback (most recent call last): File "/home/wy/FATE/examples/federatedml-1.0-examples/../../fate_flow/fate_flow_client.py", line 17, in <module> import argparse File "/home/wy/.pyenv/versions/3.6.0/lib/python3.6/argparse.py", line 86, in <module> import collections as _collections File "/home/wy/.pyenv/versio...
ImportError
def get_url(_suffix): return "http://{}/{}".format( RuntimeConfig.JOB_SERVER_HOST.rstrip("/"), _suffix.lstrip("/") )
def get_url(_suffix): return "{}/{}".format(SERVER_HOST_URL.rstrip("/"), _suffix.lstrip("/"))
https://github.com/FederatedAI/FATE/issues/518
stdout:Traceback (most recent call last): File "/home/wy/FATE/examples/federatedml-1.0-examples/../../fate_flow/fate_flow_client.py", line 17, in <module> import argparse File "/home/wy/.pyenv/versions/3.6.0/lib/python3.6/argparse.py", line 86, in <module> import collections as _collections File "/home/wy/.pyenv/versio...
ImportError
def check_pipeline_job_runtime_conf(runtime_conf: typing.Dict): detect_utils.check_config(runtime_conf, ["initiator", "job_parameters", "role"]) detect_utils.check_config(runtime_conf["initiator"], ["role", "party_id"]) detect_utils.check_config( runtime_conf["job_parameters"], [("work_mode", Runtim...
def check_pipeline_job_runtime_conf(runtime_conf: typing.Dict): detect_utils.check_config(runtime_conf, ["initiator", "job_parameters", "role"]) detect_utils.check_config(runtime_conf["initiator"], ["role", "party_id"]) detect_utils.check_config( runtime_conf["job_parameters"], [("work_mode", WORK_M...
https://github.com/FederatedAI/FATE/issues/518
stdout:Traceback (most recent call last): File "/home/wy/FATE/examples/federatedml-1.0-examples/../../fate_flow/fate_flow_client.py", line 17, in <module> import argparse File "/home/wy/.pyenv/versions/3.6.0/lib/python3.6/argparse.py", line 86, in <module> import collections as _collections File "/home/wy/.pyenv/versio...
ImportError
def __init__(self, storage_locator, partitions=1): # self.__client = _EggRoll.get_instance() self._namespace = storage_locator.namespace self._name = storage_locator.name self._type = storage_basic_pb2.StorageType.Name(storage_locator.type) self._partitions = partitions self.schema = {}
def __init__(self, storage_locator, partitions=1): self.__client = _EggRoll.get_instance() self._namespace = storage_locator.namespace self._name = storage_locator.name self._type = storage_basic_pb2.StorageType.Name(storage_locator.type) self._partitions = partitions self.schema = {}
https://github.com/FederatedAI/FATE/issues/73
Traceback (most recent call last): File "test.py", line 19, in <module> test.run() File "test.py", line 15, in run table = self.data.mapValues(lambda x: self.fun(x)) File "/data/projects/fate/python/arch/api/cluster/eggroll.py", line 108, in mapValues return self.__client.map_values(self, func) File "/data/projects/fat...
TypeError
def save_as(self, name, namespace, partition=None, use_serialize=True): if partition is None: partition = self._partitions dup = _EggRoll.get_instance().table(name, namespace, partition=partition) dup.put_all(self.collect(use_serialize=use_serialize), use_serialize=use_serialize) return dup
def save_as(self, name, namespace, partition=None, use_serialize=True): if partition is None: partition = self._partitions dup = self.__client.table(name, namespace, partition=partition) dup.put_all(self.collect(use_serialize=use_serialize), use_serialize=use_serialize) return dup
https://github.com/FederatedAI/FATE/issues/73
Traceback (most recent call last): File "test.py", line 19, in <module> test.run() File "test.py", line 15, in run table = self.data.mapValues(lambda x: self.fun(x)) File "/data/projects/fate/python/arch/api/cluster/eggroll.py", line 108, in mapValues return self.__client.map_values(self, func) File "/data/projects/fat...
TypeError
def put(self, k, v, use_serialize=True): _EggRoll.get_instance().put(self, k, v, use_serialize=use_serialize)
def put(self, k, v, use_serialize=True): self.__client.put(self, k, v, use_serialize=use_serialize)
https://github.com/FederatedAI/FATE/issues/73
Traceback (most recent call last): File "test.py", line 19, in <module> test.run() File "test.py", line 15, in run table = self.data.mapValues(lambda x: self.fun(x)) File "/data/projects/fate/python/arch/api/cluster/eggroll.py", line 108, in mapValues return self.__client.map_values(self, func) File "/data/projects/fat...
TypeError
def put_all(self, kv_list: Iterable, use_serialize=True): return _EggRoll.get_instance().put_all(self, kv_list, use_serialize=use_serialize)
def put_all(self, kv_list: Iterable, use_serialize=True): return self.__client.put_all(self, kv_list, use_serialize=use_serialize)
https://github.com/FederatedAI/FATE/issues/73
Traceback (most recent call last): File "test.py", line 19, in <module> test.run() File "test.py", line 15, in run table = self.data.mapValues(lambda x: self.fun(x)) File "/data/projects/fate/python/arch/api/cluster/eggroll.py", line 108, in mapValues return self.__client.map_values(self, func) File "/data/projects/fat...
TypeError
def get(self, k, use_serialize=True): return _EggRoll.get_instance().get(self, k, use_serialize=use_serialize)
def get(self, k, use_serialize=True): return self.__client.get(self, k, use_serialize=use_serialize)
https://github.com/FederatedAI/FATE/issues/73
Traceback (most recent call last): File "test.py", line 19, in <module> test.run() File "test.py", line 15, in run table = self.data.mapValues(lambda x: self.fun(x)) File "/data/projects/fate/python/arch/api/cluster/eggroll.py", line 108, in mapValues return self.__client.map_values(self, func) File "/data/projects/fat...
TypeError
def delete(self, k, use_serialize=True): return _EggRoll.get_instance().delete(self, k, use_serialize=use_serialize)
def delete(self, k, use_serialize=True): return self.__client.delete(self, k, use_serialize=use_serialize)
https://github.com/FederatedAI/FATE/issues/73
Traceback (most recent call last): File "test.py", line 19, in <module> test.run() File "test.py", line 15, in run table = self.data.mapValues(lambda x: self.fun(x)) File "/data/projects/fate/python/arch/api/cluster/eggroll.py", line 108, in mapValues return self.__client.map_values(self, func) File "/data/projects/fat...
TypeError
def destroy(self): _EggRoll.get_instance().destroy(self)
def destroy(self): self.__client.destroy(self)
https://github.com/FederatedAI/FATE/issues/73
Traceback (most recent call last): File "test.py", line 19, in <module> test.run() File "test.py", line 15, in run table = self.data.mapValues(lambda x: self.fun(x)) File "/data/projects/fate/python/arch/api/cluster/eggroll.py", line 108, in mapValues return self.__client.map_values(self, func) File "/data/projects/fat...
TypeError
def count(self): return _EggRoll.get_instance().count(self)
def count(self): return self.__client.count(self)
https://github.com/FederatedAI/FATE/issues/73
Traceback (most recent call last): File "test.py", line 19, in <module> test.run() File "test.py", line 15, in run table = self.data.mapValues(lambda x: self.fun(x)) File "/data/projects/fate/python/arch/api/cluster/eggroll.py", line 108, in mapValues return self.__client.map_values(self, func) File "/data/projects/fat...
TypeError
def put_if_absent(self, k, v, use_serialize=True): return _EggRoll.get_instance().put_if_absent( self, k, v, use_serialize=use_serialize )
def put_if_absent(self, k, v, use_serialize=True): return self.__client.put_if_absent(self, k, v, use_serialize=use_serialize)
https://github.com/FederatedAI/FATE/issues/73
Traceback (most recent call last): File "test.py", line 19, in <module> test.run() File "test.py", line 15, in run table = self.data.mapValues(lambda x: self.fun(x)) File "/data/projects/fate/python/arch/api/cluster/eggroll.py", line 108, in mapValues return self.__client.map_values(self, func) File "/data/projects/fat...
TypeError
def map(self, func): _intermediate_result = _EggRoll.get_instance().map(self, func) return _intermediate_result.save_as( str(uuid.uuid1()), _intermediate_result._namespace, partition=_intermediate_result._partitions, )
def map(self, func): _intermediate_result = self.__client.map(self, func) return _intermediate_result.save_as( str(uuid.uuid1()), _intermediate_result._namespace, partition=_intermediate_result._partitions, )
https://github.com/FederatedAI/FATE/issues/73
Traceback (most recent call last): File "test.py", line 19, in <module> test.run() File "test.py", line 15, in run table = self.data.mapValues(lambda x: self.fun(x)) File "/data/projects/fate/python/arch/api/cluster/eggroll.py", line 108, in mapValues return self.__client.map_values(self, func) File "/data/projects/fat...
TypeError
def mapValues(self, func): return _EggRoll.get_instance().map_values(self, func)
def mapValues(self, func): return self.__client.map_values(self, func)
https://github.com/FederatedAI/FATE/issues/73
Traceback (most recent call last): File "test.py", line 19, in <module> test.run() File "test.py", line 15, in run table = self.data.mapValues(lambda x: self.fun(x)) File "/data/projects/fate/python/arch/api/cluster/eggroll.py", line 108, in mapValues return self.__client.map_values(self, func) File "/data/projects/fat...
TypeError
def mapPartitions(self, func): return _EggRoll.get_instance().map_partitions(self, func)
def mapPartitions(self, func): return self.__client.map_partitions(self, func)
https://github.com/FederatedAI/FATE/issues/73
Traceback (most recent call last): File "test.py", line 19, in <module> test.run() File "test.py", line 15, in run table = self.data.mapValues(lambda x: self.fun(x)) File "/data/projects/fate/python/arch/api/cluster/eggroll.py", line 108, in mapValues return self.__client.map_values(self, func) File "/data/projects/fat...
TypeError
def reduce(self, func): return _EggRoll.get_instance().reduce(self, func)
def reduce(self, func): return self.__client.reduce(self, func)
https://github.com/FederatedAI/FATE/issues/73
Traceback (most recent call last): File "test.py", line 19, in <module> test.run() File "test.py", line 15, in run table = self.data.mapValues(lambda x: self.fun(x)) File "/data/projects/fate/python/arch/api/cluster/eggroll.py", line 108, in mapValues return self.__client.map_values(self, func) File "/data/projects/fat...
TypeError
def join(self, other, func): if other._partitions != self._partitions: if other.count() > self.count(): return self.save_as( str(uuid.uuid1()), _EggRoll.get_instance().job_id, partition=other._partitions, ).join(other, func) els...
def join(self, other, func): if other._partitions != self._partitions: if other.count() > self.count(): return self.save_as( str(uuid.uuid1()), self.__client.job_id, partition=other._partitions ).join(other, func) else: return self.join( ...
https://github.com/FederatedAI/FATE/issues/73
Traceback (most recent call last): File "test.py", line 19, in <module> test.run() File "test.py", line 15, in run table = self.data.mapValues(lambda x: self.fun(x)) File "/data/projects/fate/python/arch/api/cluster/eggroll.py", line 108, in mapValues return self.__client.map_values(self, func) File "/data/projects/fat...
TypeError
def glom(self): return _EggRoll.get_instance().glom(self)
def glom(self): return self.__client.glom(self)
https://github.com/FederatedAI/FATE/issues/73
Traceback (most recent call last): File "test.py", line 19, in <module> test.run() File "test.py", line 15, in run table = self.data.mapValues(lambda x: self.fun(x)) File "/data/projects/fate/python/arch/api/cluster/eggroll.py", line 108, in mapValues return self.__client.map_values(self, func) File "/data/projects/fat...
TypeError
def sample(self, fraction, seed=None): return _EggRoll.get_instance().sample(self, fraction, seed)
def sample(self, fraction, seed=None): return self.__client.sample(self, fraction, seed)
https://github.com/FederatedAI/FATE/issues/73
Traceback (most recent call last): File "test.py", line 19, in <module> test.run() File "test.py", line 15, in run table = self.data.mapValues(lambda x: self.fun(x)) File "/data/projects/fate/python/arch/api/cluster/eggroll.py", line 108, in mapValues return self.__client.map_values(self, func) File "/data/projects/fat...
TypeError
def cleanup(self, name, namespace, persistent): if namespace is None or name is None: raise ValueError("neither name nor namespace can be None") _type = storage_basic_pb2.LMDB if persistent else storage_basic_pb2.IN_MEMORY storage_locator = storage_basic_pb2.StorageLocator( type=_type, nam...
def cleanup(self, name, namespace, persistent): if namespace is None or name is None: raise ValueError("neither name nor namespace can be None") type = storage_basic_pb2.LMDB if persistent else storage_basic_pb2.IN_MEMORY storage_locator = storage_basic_pb2.StorageLocator( type=type, names...
https://github.com/FederatedAI/FATE/issues/73
Traceback (most recent call last): File "test.py", line 19, in <module> test.run() File "test.py", line 15, in run table = self.data.mapValues(lambda x: self.fun(x)) File "/data/projects/fate/python/arch/api/cluster/eggroll.py", line 108, in mapValues return self.__client.map_values(self, func) File "/data/projects/fat...
TypeError
def save_episodes_as_file(self, episodes): PRIVATE_FOLDER_ATTRIBUTE = "_save_episodes_as_file_folder" folder = getattr(self, PRIVATE_FOLDER_ATTRIBUTE, None) (notCancelled, folder) = self.show_folder_select_dialog(initial_directory=folder) setattr(self, PRIVATE_FOLDER_ATTRIBUTE, folder) if notCancel...
def save_episodes_as_file(self, episodes): PRIVATE_FOLDER_ATTRIBUTE = "_save_episodes_as_file_folder" folder = getattr(self, PRIVATE_FOLDER_ATTRIBUTE, None) (notCancelled, folder) = self.show_folder_select_dialog(initial_directory=folder) setattr(self, PRIVATE_FOLDER_ATTRIBUTE, folder) if notCancel...
https://github.com/gpodder/gpodder/issues/282
1492734407.836906 [gpodder.log] ERROR: Uncaught exception: Traceback (most recent call last): File "/home/user/dev/gpodder/src/gpodder/gtkui/main.py", line 1750, in save_episodes_as_file shutil.copyfile(copy_from, copy_to) File "/usr/lib/python3.5/shutil.py", line 115, in copyfile with open(dst, 'wb') as fdst: OSError:...
OSError
def _save(self, data: tf.keras.Model) -> None: save_path = get_filepath_str(self._get_save_path(), self._protocol) # Make sure all intermediate directories are created. save_dir = Path(save_path).parent save_dir.mkdir(parents=True, exist_ok=True) with tempfile.TemporaryDirectory(prefix=self._tmp_p...
def _save(self, data: tf.keras.Model) -> None: save_path = get_filepath_str(self._get_save_path(), self._protocol) with tempfile.TemporaryDirectory(prefix=self._tmp_prefix) as path: if self._is_h5: path = str(PurePath(path) / TEMPORARY_H5_FILE) tf.keras.models.save_model(data, path...
https://github.com/quantumblacklabs/kedro/issues/518
Traceback (most recent call last): File "/home/daniel/git/cotton_counter/.venv/lib/python3.7/site-packages/kedro/io/core.py", line 240, in save self._save(data) File "/home/daniel/git/cotton_counter/.venv/lib/python3.7/site-packages/kedro/extras/datasets/tensorflow/tensorflow_model_dataset.py", line 167, in _save self....
FileNotFoundError
def _get_credentials( credentials_name: str, credentials: Dict[str, Any] ) -> Dict[str, Any]: """Return a set of credentials from the provided credentials dict. Args: credentials_name: Credentials name. credentials: A dictionary with all credentials. Returns: The set of request...
def _get_credentials(credentials_name: str, credentials: Dict) -> Dict: """Return a set of credentials from the provided credentials dict. Args: credentials_name: Credentials name. credentials: A dictionary with all credentials. Returns: The set of requested credentials. Raise...
https://github.com/quantumblacklabs/kedro/issues/380
~/.pyenv/versions/3.6.6/envs/kedro-mlflow/lib/python3.6/site-packages/kedro/context/__init__.py:46: DeprecationWarning: All the modules in `kedro.context` have been moved to `kedro.framework.context`, and `kedro.context` will be removed in Kedro 0.17.0. Please update import paths from `kedro.context` to `kedro.framewor...
ImportError
def from_config( cls: Type, catalog: Optional[Dict[str, Dict[str, Any]]], credentials: Dict[str, Dict[str, Any]] = None, load_versions: Dict[str, str] = None, save_version: str = None, journal: Journal = None, ) -> "DataCatalog": """Create a ``DataCatalog`` instance from configuration. This ...
def from_config( cls: Type, catalog: Optional[Dict[str, Dict[str, Any]]], credentials: Dict[str, Dict[str, Any]] = None, load_versions: Dict[str, str] = None, save_version: str = None, journal: Journal = None, ) -> "DataCatalog": """Create a ``DataCatalog`` instance from configuration. This ...
https://github.com/quantumblacklabs/kedro/issues/380
~/.pyenv/versions/3.6.6/envs/kedro-mlflow/lib/python3.6/site-packages/kedro/context/__init__.py:46: DeprecationWarning: All the modules in `kedro.context` have been moved to `kedro.framework.context`, and `kedro.context` will be removed in Kedro 0.17.0. Please update import paths from `kedro.context` to `kedro.framewor...
ImportError
def parse_dataset_definition( config: Dict[str, Any], load_version: str = None, save_version: str = None ) -> Tuple[Type[AbstractDataSet], Dict[str, Any]]: """Parse and instantiate a dataset class using the configuration provided. Args: config: Data set config dictionary. It *must* contain the `typ...
def parse_dataset_definition( config: Dict[str, Any], load_version: str = None, save_version: str = None ) -> Tuple[Type[AbstractDataSet], Dict]: """Parse and instantiate a dataset class using the configuration provided. Args: config: Data set config dictionary. It *must* contain the `type` key ...
https://github.com/quantumblacklabs/kedro/issues/374
/home/markf94/.../kedro-project/.venv/bin/python -m piptools compile /home/markf94/.../kedro-project/src/requirements.in Traceback (most recent call last): File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code exec(code, ...
AttributeError
def __init__( # pylint: disable=too-many-arguments self, path: str, dataset: Union[str, Type[AbstractDataSet], Dict[str, Any]], filepath_arg: str = "filepath", filename_suffix: str = "", credentials: Dict[str, Any] = None, load_args: Dict[str, Any] = None, ): """Creates a new instance o...
def __init__( # pylint: disable=too-many-arguments self, path: str, dataset: Union[str, Type[AbstractDataSet], Dict[str, Any]], filepath_arg: str = "filepath", filename_suffix: str = "", credentials: Dict[str, Any] = None, load_args: Dict[str, Any] = None, ): """Creates a new instance o...
https://github.com/quantumblacklabs/kedro/issues/374
/home/markf94/.../kedro-project/.venv/bin/python -m piptools compile /home/markf94/.../kedro-project/src/requirements.in Traceback (most recent call last): File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code exec(code, ...
AttributeError
def _split_credentials( credentials: Union[Dict[str, Any], None], ) -> Tuple[Dict[str, Any], Any]: credentials = deepcopy(credentials) or {} if DATASET_CREDENTIALS_KEY in credentials: warn( "Support for `{}` key in the credentials is now deprecated and will be " "removed in t...
def _split_credentials( credentials: Union[Dict[str, Any], None], ) -> Tuple[Dict[str, Any], Any]: credentials = deepcopy(credentials) or {} dataset_credentials = credentials.pop( DATASET_CREDENTIALS_KEY, deepcopy(credentials) ) return credentials, dataset_credentials
https://github.com/quantumblacklabs/kedro/issues/374
/home/markf94/.../kedro-project/.venv/bin/python -m piptools compile /home/markf94/.../kedro-project/src/requirements.in Traceback (most recent call last): File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code exec(code, ...
AttributeError
def _list_partitions(self) -> List[str]: checkpoint = self._read_checkpoint() checkpoint_path = self._filesystem._strip_protocol( # pylint: disable=protected-access self._checkpoint_config[self._filepath_arg] ) def _is_valid_partition(partition) -> bool: if not partition.endswith(self....
def _list_partitions(self) -> List[str]: return [ path for path in self._filesystem.find(self._path, **self._load_args) if path.endswith(self._filename_suffix) ]
https://github.com/quantumblacklabs/kedro/issues/374
/home/markf94/.../kedro-project/.venv/bin/python -m piptools compile /home/markf94/.../kedro-project/src/requirements.in Traceback (most recent call last): File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code exec(code, ...
AttributeError
def _load(self) -> Dict[str, Callable[[], Any]]: partitions = {} for partition in self._list_partitions(): partition_id = self._path_to_partition(partition) kwargs = deepcopy(self._dataset_config) # join the protocol back since PySpark may rely on it kwargs[self._filepath_arg] =...
def _load(self) -> Dict[str, Callable[[], Any]]: partitions = {} for partition in self._list_partitions(): kwargs = deepcopy(self._dataset_config) # join the protocol back since PySpark may rely on it kwargs[self._filepath_arg] = self._join_protocol(partition) dataset = self._da...
https://github.com/quantumblacklabs/kedro/issues/374
/home/markf94/.../kedro-project/.venv/bin/python -m piptools compile /home/markf94/.../kedro-project/src/requirements.in Traceback (most recent call last): File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code exec(code, ...
AttributeError
def __init__( self, func: Callable, inputs: Union[None, str, List[str], Dict[str, str]], outputs: Union[None, str, List[str], Dict[str, str]], *, name: str = None, tags: Union[str, Iterable[str]] = None, decorators: Iterable[Callable] = None, confirms: Union[str, List[str]] = None, )...
def __init__( self, func: Callable, inputs: Union[None, str, List[str], Dict[str, str]], outputs: Union[None, str, List[str], Dict[str, str]], *, name: str = None, tags: Union[str, Iterable[str]] = None, decorators: Iterable[Callable] = None, ): """Create a node in the pipeline by pr...
https://github.com/quantumblacklabs/kedro/issues/374
/home/markf94/.../kedro-project/.venv/bin/python -m piptools compile /home/markf94/.../kedro-project/src/requirements.in Traceback (most recent call last): File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code exec(code, ...
AttributeError
def _copy(self, **overwrite_params): """ Helper function to copy the node, replacing some values. """ params = { "func": self._func, "inputs": self._inputs, "outputs": self._outputs, "name": self._name, "tags": self._tags, "decorators": self._decorators, ...
def _copy(self, **overwrite_params): """ Helper function to copy the node, replacing some values. """ params = { "func": self._func, "inputs": self._inputs, "outputs": self._outputs, "name": self._name, "tags": self._tags, "decorators": self._decorators, ...
https://github.com/quantumblacklabs/kedro/issues/374
/home/markf94/.../kedro-project/.venv/bin/python -m piptools compile /home/markf94/.../kedro-project/src/requirements.in Traceback (most recent call last): File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code exec(code, ...
AttributeError
def node( # pylint: disable=missing-type-doc func: Callable, inputs: Union[None, str, List[str], Dict[str, str]], outputs: Union[None, str, List[str], Dict[str, str]], *, name: str = None, tags: Iterable[str] = None, confirms: Union[str, List[str]] = None, ) -> Node: """Create a node in...
def node( # pylint: disable=missing-type-doc func: Callable, inputs: Union[None, str, List[str], Dict[str, str]], outputs: Union[None, str, List[str], Dict[str, str]], *, name: str = None, tags: Iterable[str] = None, ) -> Node: """Create a node in the pipeline by providing a function to be ...
https://github.com/quantumblacklabs/kedro/issues/374
/home/markf94/.../kedro-project/.venv/bin/python -m piptools compile /home/markf94/.../kedro-project/src/requirements.in Traceback (most recent call last): File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code exec(code, ...
AttributeError
def __init__( self, nodes: Iterable[Union[Node, "Pipeline"]], *, name: str = None, tags: Union[str, Iterable[str]] = None, ): # pylint: disable=missing-type-doc """Initialise ``Pipeline`` with a list of ``Node`` instances. Args: nodes: The list of nodes the ``Pipeline`` will be mad...
def __init__( self, nodes: Iterable[Union[Node, "Pipeline"]], *, name: str = None, tags: Union[str, Iterable[str]] = None, ): # pylint: disable=missing-type-doc """Initialise ``Pipeline`` with a list of ``Node`` instances. Args: nodes: The list of nodes the ``Pipeline`` will be mad...
https://github.com/quantumblacklabs/kedro/issues/374
/home/markf94/.../kedro-project/.venv/bin/python -m piptools compile /home/markf94/.../kedro-project/src/requirements.in Traceback (most recent call last): File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code exec(code, ...
AttributeError
def _validate_unique_outputs(nodes: List[Node]) -> None: outputs = chain.from_iterable(node.outputs for node in nodes) outputs = map(_get_transcode_compatible_name, outputs) duplicates = [key for key, value in Counter(outputs).items() if value > 1] if duplicates: raise OutputNotUniqueError( ...
def _validate_unique_outputs(nodes: List[Node]) -> None: outputs_list = list(chain.from_iterable(node.outputs for node in nodes)) outputs_list = [_get_transcode_compatible_name(o) for o in outputs_list] counter_list = Counter(outputs_list) counter_set = Counter(set(outputs_list)) diff = counter_list...
https://github.com/quantumblacklabs/kedro/issues/374
/home/markf94/.../kedro-project/.venv/bin/python -m piptools compile /home/markf94/.../kedro-project/src/requirements.in Traceback (most recent call last): File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code exec(code, ...
AttributeError
def run_node(node: Node, catalog: DataCatalog) -> Node: """Run a single `Node` with inputs from and outputs to the `catalog`. Args: node: The ``Node`` to run. catalog: A ``DataCatalog`` containing the node's inputs and outputs. Returns: The node argument. """ inputs = {nam...
def run_node(node: Node, catalog: DataCatalog) -> Node: """Run a single `Node` with inputs from and outputs to the `catalog`. Args: node: The ``Node`` to run. catalog: A ``DataCatalog`` containing the node's inputs and outputs. Returns: The node argument. """ inputs = {nam...
https://github.com/quantumblacklabs/kedro/issues/374
/home/markf94/.../kedro-project/.venv/bin/python -m piptools compile /home/markf94/.../kedro-project/src/requirements.in Traceback (most recent call last): File "/usr/lib64/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib64/python3.7/runpy.py", line 85, in _run_code exec(code, ...
AttributeError
def get_extensions(): this_dir = os.path.dirname(os.path.abspath(__file__)) extensions_dir = os.path.join(this_dir, "torchvision", "csrc") main_file = glob.glob(os.path.join(extensions_dir, "*.cpp")) + glob.glob( os.path.join(extensions_dir, "ops", "*.cpp") ) source_cpu = glob.glob( ...
def get_extensions(): this_dir = os.path.dirname(os.path.abspath(__file__)) extensions_dir = os.path.join(this_dir, "torchvision", "csrc") main_file = glob.glob(os.path.join(extensions_dir, "*.cpp")) + glob.glob( os.path.join(extensions_dir, "ops", "*.cpp") ) source_cpu = glob.glob( ...
https://github.com/pytorch/vision/issues/3473
No CUDA runtime is found, using CUDA_HOME='/opt/cuda' Building wheel torchvision-0.9.0a0+b266c2f Compile in debug mode Traceback (most recent call last): File "setup.py", line 472, in <module> ext_modules=get_extensions(), File "setup.py", line 213, in get_extensions extra_compile_args['cxx'].append("-g") KeyError: 'cx...
KeyError
def forward(self, input: Tensor) -> Tensor: # noqa: F811 if isinstance(input, Tensor): prev_features = [input] else: prev_features = input if self.memory_efficient and self.any_requires_grad(prev_features): if torch.jit.is_scripting(): raise Exception("Memory Efficient ...
def forward(self, input: Tensor) -> Tensor: # type: ignore[no-redef] # noqa: F811 if isinstance(input, Tensor): prev_features = [input] else: prev_features = input if self.memory_efficient and self.any_requires_grad(prev_features): if torch.jit.is_scripting(): raise Exc...
https://github.com/pytorch/vision/issues/3027
Traceback (most recent call last): File "repro.py", line 7, in <module> torch.jit.script(model).save('densenet161.pt') File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/torch/jit/_script.py", line 911, in script return torch.jit._recursive.create_script_module( File "/...
RuntimeError