Fix transpiler mypy errors

Summary
Fixing mypy errors for transpiler module. Followup to https://github.com/Qiskit/qiskit/pull/8266
See also https://github.com/Qiskit/qiskit/issues/6905
Details and comments

diff of mypy output before and after PR
35c35
< qiskit/transpiler/synthesis/aqc/fast_gradient/fast_grad_utils.py:32: error: Incompatible return value type (got "Literal[False] | Any | bool_", expected "bool")  [return-value]
---
> qiskit/transpiler/synthesis/aqc/fast_gradient/fast_grad_utils.py:31: error: Incompatible return value type (got "Literal[False] | Any | bool_", expected "bool")  [return-value]
237d236
< qiskit/circuit/quantumcircuit.py:1979: error: Argument 1 to "Decompose" has incompatible type "type[Gate] | Sequence[type[Gate]] | Sequence[str] | str | None"; expected "type[Gate] | list[type[Gate]] | list[str] | str | None"  [arg-type]
643d641
< qiskit/transpiler/passes/layout/vf2_utils.py:55: error: Need type annotation for "weights"  [var-annotated]
1081,1097c1079,1099
< qiskit/transpiler/instruction_durations.py:80: error: "Backend" has no attribute "properties"  [attr-defined]
< qiskit/transpiler/instruction_durations.py:87: error: "Backend" has no attribute "properties"  [attr-defined]
< qiskit/transpiler/instruction_durations.py:93: error: "Backend" has no attribute "configuration"  [attr-defined]
< qiskit/transpiler/instruction_durations.py:130: error: Incompatible types in assignment (expression has type "tuple[float | str | Iterable[int] | Iterable[float], float | str | Iterable[int] | Iterable[float], float | str | Iterable[int] | Iterable[float], None, float | str | Iterable[int] | Iterable[float]]", target has type "tuple[str, Iterable[int] | None, float, Iterable[float] | None, str]")  [assignment]
< qiskit/transpiler/instruction_durations.py:130: error: Incompatible types in assignment (expression has type "tuple[float | str | Iterable[int] | Iterable[float], float | str | Iterable[int] | Iterable[float], float | str | Iterable[int] | Iterable[float], None, float | str | Iterable[int] | Iterable[float]]", target has type "tuple[str, Iterable[int] | None, float, Iterable[float] | None]")  [assignment]
< qiskit/transpiler/instruction_durations.py:130: error: Incompatible types in assignment (expression has type "tuple[float | str | Iterable[int] | Iterable[float], float | str | Iterable[int] | Iterable[float], float | str | Iterable[int] | Iterable[float], None, float | str | Iterable[int] | Iterable[float]]", target has type "tuple[str, Iterable[int] | None, float, str]")  [assignment]
< qiskit/transpiler/instruction_durations.py:130: error: Incompatible types in assignment (expression has type "tuple[float | str | Iterable[int] | Iterable[float], float | str | Iterable[int] | Iterable[float], float | str | Iterable[int] | Iterable[float], None, float | str | Iterable[int] | Iterable[float]]", target has type "tuple[str, Iterable[int] | None, float]")  [assignment]
< qiskit/transpiler/instruction_durations.py:132: error: Incompatible types in assignment (expression has type "tuple[float | str | Iterable[int] | Iterable[float], ...]", target has type "tuple[str, Iterable[int] | None, float, Iterable[float] | None, str]")  [assignment]
< qiskit/transpiler/instruction_durations.py:132: error: Incompatible types in assignment (expression has type "tuple[float | str | Iterable[int] | Iterable[float], ...]", target has type "tuple[str, Iterable[int] | None, float, Iterable[float] | None]")  [assignment]
< qiskit/transpiler/instruction_durations.py:132: error: Incompatible types in assignment (expression has type "tuple[float | str | Iterable[int] | Iterable[float], ...]", target has type "tuple[str, Iterable[int] | None, float, str]")  [assignment]
< qiskit/transpiler/instruction_durations.py:132: error: Incompatible types in assignment (expression has type "tuple[float | str | Iterable[int] | Iterable[float], ...]", target has type "tuple[str, Iterable[int] | None, float]")  [assignment]
< qiskit/transpiler/instruction_durations.py:148: error: Need more than 4 values to unpack (5 expected)  [misc]
< qiskit/transpiler/instruction_durations.py:148: error: Need more than 3 values to unpack (5 expected)  [misc]
< qiskit/transpiler/instruction_durations.py:222: error: Incompatible types in assignment (expression has type "tuple[str, tuple[int, ...]]", variable has type "tuple[str, tuple[int, ...], tuple[float, ...]]")  [assignment]
< qiskit/transpiler/instruction_durations.py:227: error: Invalid index type "tuple[str, tuple[int, ...], tuple[float, ...]]" for "dict[tuple[str, tuple[int, ...]], tuple[float, str]]"; expected type "tuple[str, tuple[int, ...]]"  [index]
< qiskit/transpiler/instruction_durations.py:237: error: Incompatible types in assignment (expression has type "float | ParameterExpression", variable has type "float")  [assignment]
< qiskit/transpiler/passes/optimization/template_matching/forward_match.py:155: error: Need type annotation for "block" (hint: "block: List[<type>] = ...")  [var-annotated]
---
> qiskit/transpiler/instruction_durations.py:83: error: "Backend" has no attribute "properties"  [attr-defined]
> qiskit/transpiler/instruction_durations.py:90: error: "Backend" has no attribute "properties"  [attr-defined]
> qiskit/transpiler/instruction_durations.py:96: error: "Backend" has no attribute "configuration"  [attr-defined]
> qiskit/transpiler/instruction_durations.py:133: error: Incompatible types in assignment (expression has type "tuple[float | str | Iterable[int] | Iterable[float], float | str | Iterable[int] | Iterable[float], float | str | Iterable[int] | Iterable[float], None, float | str | Iterable[int] | Iterable[float]]", target has type "tuple[str, Iterable[int] | None, float, Iterable[float] | None, str]")  [assignment]
> qiskit/transpiler/instruction_durations.py:133: error: Incompatible types in assignment (expression has type "tuple[float | str | Iterable[int] | Iterable[float], float | str | Iterable[int] | Iterable[float], float | str | Iterable[int] | Iterable[float], None, float | str | Iterable[int] | Iterable[float]]", target has type "tuple[str, Iterable[int] | None, float, Iterable[float] | None]")  [assignment]
> qiskit/transpiler/instruction_durations.py:133: error: Incompatible types in assignment (expression has type "tuple[float | str | Iterable[int] | Iterable[float], float | str | Iterable[int] | Iterable[float], float | str | Iterable[int] | Iterable[float], None, float | str | Iterable[int] | Iterable[float]]", target has type "tuple[str, Iterable[int] | None, float, str]")  [assignment]
> qiskit/transpiler/instruction_durations.py:133: error: Incompatible types in assignment (expression has type "tuple[float | str | Iterable[int] | Iterable[float], float | str | Iterable[int] | Iterable[float], float | str | Iterable[int] | Iterable[float], None, float | str | Iterable[int] | Iterable[float]]", target has type "tuple[str, Iterable[int] | None, float]")  [assignment]
> qiskit/transpiler/instruction_durations.py:135: error: Incompatible types in assignment (expression has type "tuple[float | str | Iterable[int] | Iterable[float], ...]", target has type "tuple[str, Iterable[int] | None, float, Iterable[float] | None, str]")  [assignment]
> qiskit/transpiler/instruction_durations.py:135: error: Incompatible types in assignment (expression has type "tuple[float | str | Iterable[int] | Iterable[float], ...]", target has type "tuple[str, Iterable[int] | None, float, Iterable[float] | None]")  [assignment]
> qiskit/transpiler/instruction_durations.py:135: error: Incompatible types in assignment (expression has type "tuple[float | str | Iterable[int] | Iterable[float], ...]", target has type "tuple[str, Iterable[int] | None, float, str]")  [assignment]
> qiskit/transpiler/instruction_durations.py:135: error: Incompatible types in assignment (expression has type "tuple[float | str | Iterable[int] | Iterable[float], ...]", target has type "tuple[str, Iterable[int] | None, float]")  [assignment]
> qiskit/transpiler/instruction_durations.py:151: error: Need more than 4 values to unpack (5 expected)  [misc]
> qiskit/transpiler/instruction_durations.py:151: error: Need more than 3 values to unpack (5 expected)  [misc]
> qiskit/transpiler/instruction_durations.py:225: error: Incompatible types in assignment (expression has type "tuple[str, tuple[int, ...]]", variable has type "tuple[str, tuple[int, ...], tuple[float, ...]]")  [assignment]
> qiskit/transpiler/instruction_durations.py:230: error: Invalid index type "tuple[str, tuple[int, ...], tuple[float, ...]]" for "dict[tuple[str, tuple[int, ...]], tuple[float, str]]"; expected type "tuple[str, tuple[int, ...]]"  [index]
> qiskit/transpiler/instruction_durations.py:240: error: Incompatible types in assignment (expression has type "float | ParameterExpression", variable has type "float")  [assignment]
> qiskit/transpiler/passes/optimization/template_matching/forward_match.py:226: error: Item "DAGOpNode" of "DAGOpNode | DAGOutNode" has no attribute "successorstovisit"  [union-attr]
> qiskit/transpiler/passes/optimization/template_matching/forward_match.py:226: error: Item "DAGOutNode" of "DAGOpNode | DAGOutNode" has no attribute "successorstovisit"  [union-attr]
> qiskit/transpiler/passes/optimization/template_matching/forward_match.py:377: error: Item "int" of "int | DAGDepNode" has no attribute "successorstovisit"  [union-attr]
> qiskit/transpiler/passes/optimization/template_matching/forward_match.py:429: error: List item 0 has incompatible type "set[int]"; expected "int"  [list-item]
> qiskit/transpiler/passes/optimization/template_matching/forward_match.py:448: error: Item "int" of "int | DAGDepNode" has no attribute "successorstovisit"  [union-attr]
1107,1112c1109,1114
< qiskit/transpiler/passes/routing/algorithms/util.py:103: error: Argument 2 to "PermutationCircuit" has incompatible type "dict[_V, Any]"; expected "dict[int | Qubit, Qubit]"  [arg-type]
< qiskit/transpiler/passes/optimization/template_matching/template_matching.py:86: error: Incompatible types in assignment (expression has type "list[Any]", variable has type "tuple[Any, ...]")  [assignment]
< qiskit/transpiler/passes/optimization/template_matching/template_matching.py:95: error: Incompatible types in assignment (expression has type "list[Any]", variable has type "tuple[Any, ...]")  [assignment]
< qiskit/transpiler/passes/optimization/template_matching/template_matching.py:97: error: Incompatible types in assignment (expression has type "list[Any]", variable has type "tuple[Any, ...]")  [assignment]
< qiskit/transpiler/passes/optimization/template_matching/template_matching.py:297: error: Incompatible types in assignment (expression has type "list[Any]", variable has type "tuple[Any, ...]")  [assignment]
< qiskit/transpiler/passes/optimization/template_matching/template_matching.py:309: error: Incompatible types in assignment (expression has type "list[Any]", variable has type "tuple[Any, ...]")  [assignment]
---
> qiskit/transpiler/passes/routing/algorithms/util.py:103: error: Argument 2 to "PermutationCircuit" has incompatible type "dict[_V, Qubit]"; expected "dict[int | Qubit, Qubit]"  [arg-type]
> qiskit/transpiler/passes/optimization/template_matching/template_matching.py:94: error: Incompatible types in assignment (expression has type "list[Any]", variable has type "tuple[Any, ...]")  [assignment]
> qiskit/transpiler/passes/optimization/template_matching/template_matching.py:103: error: Incompatible types in assignment (expression has type "list[Any]", variable has type "tuple[Any, ...]")  [assignment]
> qiskit/transpiler/passes/optimization/template_matching/template_matching.py:105: error: Incompatible types in assignment (expression has type "list[Any]", variable has type "tuple[Any, ...]")  [assignment]
> qiskit/transpiler/passes/optimization/template_matching/template_matching.py:305: error: Incompatible types in assignment (expression has type "list[Any]", variable has type "tuple[Any, ...]")  [assignment]
> qiskit/transpiler/passes/optimization/template_matching/template_matching.py:317: error: Incompatible types in assignment (expression has type "list[Any]", variable has type "tuple[Any, ...]")  [assignment]
1140,1141c1142
< qiskit/transpiler/passmanager.py:45: error: Incompatible default for argument "passes" (default has type "tuple[()]", argument has type "Task | list[Task]")  [assignment]
< qiskit/transpiler/passmanager.py:56: error: Need type annotation for "_pass_sets" (hint: "_pass_sets: List[<type>] = ...")  [var-annotated]
---
> qiskit/transpiler/passmanager.py:59: error: Argument "tasks" to "__init__" of "BasePassManager" has incompatible type "Task | Sequence[Task]"; expected "Task | list[Task]"  [arg-type]
1151c1152
< qiskit/transpiler/passmanager.py:479: note:          def append(passes: Task | list[Task], max_iteration: int = ..., **flow_controller_conditions: Any) -> None
---
> qiskit/transpiler/passmanager.py:479: note:          def append(passes: Task | list[Task], max_iteration: int | None = ..., **flow_controller_conditions: Any) -> None
1156c1157
< qiskit/transpiler/passmanager.py:487: note:          def replace(index: int, passes: BasePass | list[BasePass], max_iteration: int = ..., **flow_controller_conditions: Any) -> None
---
> qiskit/transpiler/passmanager.py:487: note:          def replace(index: int, passes: BasePass | list[BasePass], max_iteration: int | None = ..., **flow_controller_conditions: Any) -> None
1168,1178c1169,1179
< qiskit/transpiler/passes/synthesis/high_level_synthesis.py:330: error: "Operation" has no attribute "definition"  [attr-defined]
< qiskit/transpiler/passes/synthesis/high_level_synthesis.py:434: error: Item "DAGCircuit" of "QuantumCircuit | DAGCircuit | Operation" has no attribute "inverse"  [union-attr]
< qiskit/transpiler/passes/synthesis/high_level_synthesis.py:434: error: Item "Operation" of "QuantumCircuit | DAGCircuit | Operation" has no attribute "inverse"  [union-attr]
< qiskit/transpiler/passes/synthesis/high_level_synthesis.py:443: error: Item "DAGCircuit" of "DAGCircuit | Operation" has no attribute "control"  [union-attr]
< qiskit/transpiler/passes/synthesis/high_level_synthesis.py:443: error: Item "Operation" of "DAGCircuit | Operation" has no attribute "control"  [union-attr]
< qiskit/transpiler/passes/synthesis/high_level_synthesis.py:450: error: Argument 1 to "_recursively_handle_op" of "HighLevelSynthesis" has incompatible type "QuantumCircuit | DAGCircuit | Operation"; expected "Operation"  [arg-type]
< qiskit/transpiler/passes/synthesis/high_level_synthesis.py:458: error: Argument 1 to "QuantumCircuit" has incompatible type "Callable[[], Any] | Any"; expected "Register | int | Sequence[Bit]"  [arg-type]
< qiskit/transpiler/passes/synthesis/high_level_synthesis.py:458: error: Argument 2 to "QuantumCircuit" has incompatible type "Callable[[], Any] | Any"; expected "Register | int | Sequence[Bit]"  [arg-type]
< qiskit/transpiler/passes/synthesis/high_level_synthesis.py:461: error: Argument 1 to "range" has incompatible type "Callable[[], Any] | Any"; expected "SupportsIndex"  [arg-type]
< qiskit/transpiler/passes/synthesis/high_level_synthesis.py:462: error: Argument 1 to "range" has incompatible type "Callable[[], Any] | Any"; expected "SupportsIndex"  [arg-type]
< qiskit/transpiler/passes/synthesis/high_level_synthesis.py:474: error: Incompatible return value type (got "QuantumCircuit | DAGCircuit | Operation", expected "Operation | None")  [return-value]
---
> qiskit/transpiler/passes/synthesis/high_level_synthesis.py:329: error: "Operation" has no attribute "definition"  [attr-defined]
> qiskit/transpiler/passes/synthesis/high_level_synthesis.py:431: error: Item "DAGCircuit" of "QuantumCircuit | DAGCircuit | Operation" has no attribute "inverse"  [union-attr]
> qiskit/transpiler/passes/synthesis/high_level_synthesis.py:431: error: Item "Operation" of "QuantumCircuit | DAGCircuit | Operation" has no attribute "inverse"  [union-attr]
> qiskit/transpiler/passes/synthesis/high_level_synthesis.py:440: error: Item "DAGCircuit" of "DAGCircuit | Operation" has no attribute "control"  [union-attr]
> qiskit/transpiler/passes/synthesis/high_level_synthesis.py:440: error: Item "Operation" of "DAGCircuit | Operation" has no attribute "control"  [union-attr]
> qiskit/transpiler/passes/synthesis/high_level_synthesis.py:447: error: Argument 1 to "_recursively_handle_op" of "HighLevelSynthesis" has incompatible type "QuantumCircuit | DAGCircuit | Operation"; expected "Operation"  [arg-type]
> qiskit/transpiler/passes/synthesis/high_level_synthesis.py:455: error: Argument 1 to "QuantumCircuit" has incompatible type "Callable[[], Any] | Any"; expected "Register | int | Sequence[Bit]"  [arg-type]
> qiskit/transpiler/passes/synthesis/high_level_synthesis.py:455: error: Argument 2 to "QuantumCircuit" has incompatible type "Callable[[], Any] | Any"; expected "Register | int | Sequence[Bit]"  [arg-type]
> qiskit/transpiler/passes/synthesis/high_level_synthesis.py:458: error: Argument 1 to "range" has incompatible type "Callable[[], Any] | Any"; expected "SupportsIndex"  [arg-type]
> qiskit/transpiler/passes/synthesis/high_level_synthesis.py:459: error: Argument 1 to "range" has incompatible type "Callable[[], Any] | Any"; expected "SupportsIndex"  [arg-type]
> qiskit/transpiler/passes/synthesis/high_level_synthesis.py:471: error: Incompatible return value type (got "QuantumCircuit | DAGCircuit | Operation", expected "Operation | None")  [return-value]
1192,1200c1193,1194
< qiskit/transpiler/passes/optimization/optimize_1q_gates.py:97: error: Incompatible types in assignment (expression has type "tuple[float, Any, Any]", variable has type "tuple[int, int, Any]")  [assignment]
< qiskit/transpiler/passes/optimization/optimize_1q_gates.py:119: error: Incompatible types in assignment (expression has type "tuple[float, ...]", variable has type "tuple[int, int, Any]")  [assignment]
< qiskit/transpiler/passes/optimization/optimize_1q_gates.py:131: error: Incompatible types in assignment (expression has type "tuple[float, Any, int]", variable has type "tuple[int, int, int]")  [assignment]
< qiskit/transpiler/passes/optimization/optimize_1q_gates.py:139: error: Incompatible types in assignment (expression has type "tuple[float, int, Any]", variable has type "tuple[int, int, int]")  [assignment]
< qiskit/transpiler/passes/optimization/optimize_1q_gates.py:173: error: Incompatible types in assignment (expression has type "tuple[Any, float, float]", variable has type "tuple[int, int, int]")  [assignment]
< qiskit/transpiler/passes/optimization/optimize_1q_gates.py:247: error: Incompatible types in assignment (expression has type "tuple[float, int, float]", variable has type "tuple[int, int, int]")  [assignment]
< qiskit/transpiler/passes/optimization/optimize_1q_gates.py:258: error: Incompatible types in assignment (expression has type "tuple[float, float, float]", variable has type "tuple[int, int, int]")  [assignment]
< qiskit/transpiler/passes/optimization/optimize_1q_decomposition.py:185: error: Value of type "float" is not indexable  [index]
< qiskit/transpiler/passes/optimization/optimize_1q_decomposition.py:236: error: Need type annotation for "circuit_list"  [var-annotated]
---
> qiskit/transpiler/passes/optimization/optimize_1q_gates.py:119: error: Incompatible types in assignment (expression has type "tuple[float, ...]", variable has type "tuple[float, float, Any]")  [assignment]
> qiskit/transpiler/passes/optimization/optimize_1q_decomposition.py:188: error: Value of type "float" is not indexable  [index]
1205,1213c1199,1204
< qiskit/transpiler/passes/optimization/collect_multiqubit_blocks.py:175: error: Need type annotation for "savings" (hint: "savings: Dict[<type>, <type>] = ...")  [var-annotated]
< qiskit/transpiler/passes/layout/vf2_post_layout.py:196: error: Value of type "None" is not indexable  [index]
< qiskit/transpiler/passes/layout/vf2_post_layout.py:197: error: Value of type "None" is not indexable  [index]
< qiskit/transpiler/passes/layout/vf2_post_layout.py:200: error: "None" has no attribute "__iter__" (not iterable)  [attr-defined]
< qiskit/transpiler/passes/layout/vf2_post_layout.py:201: error: Value of type "None" is not indexable  [index]
< qiskit/transpiler/passes/layout/vf2_post_layout.py:269: error: Incompatible types in assignment (expression has type "dict[Any, int]", variable has type "Layout")  [assignment]
< qiskit/transpiler/passes/basis/basis_translator.py:123: error: Need type annotation for "_qargs_with_non_global_operation" (hint: "_qargs_with_non_global_operation: Dict[<type>, <type>] = ...")  [var-annotated]
< qiskit/transpiler/passes/basis/basis_translator.py:323: error: Incompatible types in assignment (expression has type "int | float | complex", variable has type "ParameterExpression")  [assignment]
< qiskit/transpiler/passes/basis/basis_translator.py:340: error: Incompatible types in assignment (expression has type "int | float | complex", variable has type "ParameterExpression")  [assignment]
---
> qiskit/transpiler/passes/optimization/collect_multiqubit_blocks.py:220: error: Argument 1 to "union_set" of "CollectMultiQBlocks" has incompatible type "int"; expected "Qubit"  [arg-type]
> qiskit/transpiler/passes/optimization/collect_multiqubit_blocks.py:222: error: Argument 1 to "find_set" of "CollectMultiQBlocks" has incompatible type "int"; expected "Qubit"  [arg-type]
> qiskit/transpiler/passes/optimization/collect_multiqubit_blocks.py:222: error: Argument 1 to "append" of "list" has incompatible type "DAGOpNode"; expected "Qubit"  [arg-type]
> qiskit/transpiler/passes/layout/vf2_post_layout.py:271: error: Incompatible types in assignment (expression has type "dict[Any, int]", variable has type "Layout")  [assignment]
> qiskit/transpiler/passes/basis/basis_translator.py:331: error: Incompatible types in assignment (expression has type "int | float | complex", variable has type "ParameterExpression")  [assignment]
> qiskit/transpiler/passes/basis/basis_translator.py:348: error: Incompatible types in assignment (expression has type "int | float | complex", variable has type "ParameterExpression")  [assignment]
1221,1222c1212,1213
< qiskit/transpiler/passes/scheduling/base_scheduler.py:249: error: "Iterable[Task]" has no attribute "append"  [attr-defined]
< qiskit/transpiler/passes/scheduling/scheduling/base_scheduler.py:48: error: "Iterable[Task]" has no attribute "append"  [attr-defined]
---
> qiskit/transpiler/passes/scheduling/base_scheduler.py:251: error: "Iterable[Task]" has no attribute "append"  [attr-defined]
> qiskit/transpiler/passes/scheduling/scheduling/base_scheduler.py:49: error: "Iterable[Task]" has no attribute "append"  [attr-defined]
1227,1230c1218,1219
< qiskit/transpiler/passes/layout/sabre_layout.py:305: error: Incompatible types in assignment (expression has type "QuantumRegister", variable has type "ndarray[Any, Any]")  [assignment]
< qiskit/transpiler/passes/layout/sabre_layout.py:467: error: Name "SwapMap" is not defined  [name-defined]
< qiskit/transpiler/passes/layout/sabre_layout.py:467: error: Name "Sequence" is not defined  [name-defined]
< qiskit/transpiler/passes/layout/sabre_layout.py:467: error: Name "NodeBlockResults" is not defined  [name-defined]
---
> qiskit/transpiler/passes/layout/sabre_layout.py:307: error: Incompatible types in assignment (expression has type "QuantumRegister", variable has type "ndarray[Any, Any]")  [assignment]
> qiskit/transpiler/passes/layout/sabre_layout.py:469: error: Name "NodeBlockResults" is not defined  [name-defined]
1247,1260c1236,1247
< qiskit/transpiler/passes/synthesis/unitary_synthesis.py:511: error: Need type annotation for "gate_lengths" (hint: "gate_lengths: Dict[<type>, <type>] = ...")  [var-annotated]
< qiskit/transpiler/passes/synthesis/unitary_synthesis.py:537: error: Need type annotation for "gate_errors" (hint: "gate_errors: Dict[<type>, <type>] = ...")  [var-annotated]
< qiskit/transpiler/passes/synthesis/unitary_synthesis.py:581: error: Incompatible types in assignment (expression has type "tuple[Any, Any]", variable has type "list[tuple[Any, Any]]")  [assignment]
< qiskit/transpiler/passes/synthesis/unitary_synthesis.py:583: error: Argument 1 to "append" of "list" has incompatible type "list[tuple[Any, Any]]"; expected "tuple[Any, Any]"  [arg-type]
< qiskit/transpiler/passes/synthesis/unitary_synthesis.py:585: error: List item 0 has incompatible type "list[tuple[Any, Any]]"; expected "tuple[Any, Any]"  [list-item]
< qiskit/transpiler/passes/synthesis/unitary_synthesis.py:614: error: Incompatible types in assignment (expression has type "tuple[Any, Any]", variable has type "list[tuple[Any, Any]]")  [assignment]
< qiskit/transpiler/passes/synthesis/unitary_synthesis.py:616: error: Argument 1 to "append" of "list" has incompatible type "list[tuple[Any, Any]]"; expected "tuple[Any, Any]"  [arg-type]
< qiskit/transpiler/passes/synthesis/unitary_synthesis.py:618: error: List item 0 has incompatible type "list[tuple[Any, Any]]"; expected "tuple[Any, Any]"  [list-item]
< qiskit/transpiler/passes/synthesis/unitary_synthesis.py:772: error: Incompatible types in assignment (expression has type "dict[Never, Never]", variable has type "float")  [assignment]
< qiskit/transpiler/passes/synthesis/unitary_synthesis.py:780: error: Unsupported target for indexed assignment ("float")  [index]
< qiskit/transpiler/passes/synthesis/unitary_synthesis.py:785: error: Unsupported target for indexed assignment ("float")  [index]
< qiskit/transpiler/passes/synthesis/unitary_synthesis.py:797: error: Incompatible types in assignment (expression has type "dict[Any, Any]", variable has type "float")  [assignment]
< qiskit/transpiler/passes/synthesis/unitary_synthesis.py:797: error: "float" has no attribute "items"  [attr-defined]
< qiskit/transpiler/passes/synthesis/unitary_synthesis.py:810: error: Incompatible types in assignment (expression has type "XXDecomposer", variable has type "TwoQubitBasisDecomposer")  [assignment]
---
> qiskit/transpiler/passes/synthesis/unitary_synthesis.py:585: error: Incompatible types in assignment (expression has type "tuple[Any, Any]", variable has type "list[tuple[Any, Any]]")  [assignment]
> qiskit/transpiler/passes/synthesis/unitary_synthesis.py:587: error: Argument 1 to "append" of "list" has incompatible type "list[tuple[Any, Any]]"; expected "tuple[Any, Any]"  [arg-type]
> qiskit/transpiler/passes/synthesis/unitary_synthesis.py:589: error: List item 0 has incompatible type "list[tuple[Any, Any]]"; expected "tuple[Any, Any]"  [list-item]
> qiskit/transpiler/passes/synthesis/unitary_synthesis.py:620: error: Incompatible types in assignment (expression has type "tuple[Any, Any]", variable has type "list[tuple[Any, Any]]")  [assignment]
> qiskit/transpiler/passes/synthesis/unitary_synthesis.py:622: error: Argument 1 to "append" of "list" has incompatible type "list[tuple[Any, Any]]"; expected "tuple[Any, Any]"  [arg-type]
> qiskit/transpiler/passes/synthesis/unitary_synthesis.py:624: error: List item 0 has incompatible type "list[tuple[Any, Any]]"; expected "tuple[Any, Any]"  [list-item]
> qiskit/transpiler/passes/synthesis/unitary_synthesis.py:778: error: Incompatible types in assignment (expression has type "dict[Never, Never]", variable has type "float")  [assignment]
> qiskit/transpiler/passes/synthesis/unitary_synthesis.py:786: error: Unsupported target for indexed assignment ("float")  [index]
> qiskit/transpiler/passes/synthesis/unitary_synthesis.py:791: error: Unsupported target for indexed assignment ("float")  [index]
> qiskit/transpiler/passes/synthesis/unitary_synthesis.py:803: error: Incompatible types in assignment (expression has type "dict[Any, Any]", variable has type "float")  [assignment]
> qiskit/transpiler/passes/synthesis/unitary_synthesis.py:803: error: "float" has no attribute "items"  [attr-defined]
> qiskit/transpiler/passes/synthesis/unitary_synthesis.py:816: error: Incompatible types in assignment (expression has type "XXDecomposer", variable has type "TwoQubitBasisDecomposer")  [assignment]
1557,1562c1544,1548
< qiskit/transpiler/preset_passmanagers/builtin_plugins.py:158: error: Incompatible return value type (got "TranspilerError", expected "PassManager")  [return-value]
< qiskit/transpiler/preset_passmanagers/builtin_plugins.py:574: error: List item 0 has incompatible type "Collect2qBlocks"; expected "TransformationPass"  [list-item]
< qiskit/transpiler/preset_passmanagers/builtin_plugins.py:601: error: "BasePass" has no attribute "__iter__" (not iterable)  [attr-defined]
< qiskit/transpiler/preset_passmanagers/builtin_plugins.py:619: error: Unsupported operand types for + ("list[AnalysisPass | Task | TransformationPass]" and "list[AnalysisPass]")  [operator]
< qiskit/transpiler/preset_passmanagers/builtin_plugins.py:760: error: Incompatible types in assignment (expression has type "SabreLayout", variable has type "VF2Layout")  [assignment]
< qiskit/transpiler/preset_passmanagers/builtin_plugins.py:788: error: Incompatible types in assignment (expression has type "SabreLayout", variable has type "VF2Layout")  [assignment]
---
> qiskit/transpiler/preset_passmanagers/builtin_plugins.py:159: error: Incompatible return value type (got "TranspilerError", expected "PassManager")  [return-value]
> qiskit/transpiler/preset_passmanagers/builtin_plugins.py:604: error: "BasePass" has no attribute "__iter__" (not iterable)  [attr-defined]
> qiskit/transpiler/preset_passmanagers/builtin_plugins.py:622: error: Unsupported operand types for + ("list[AnalysisPass | Task | BasePass]" and "list[AnalysisPass]")  [operator]
> qiskit/transpiler/preset_passmanagers/builtin_plugins.py:763: error: Incompatible types in assignment (expression has type "SabreLayout", variable has type "VF2Layout")  [assignment]
> qiskit/transpiler/preset_passmanagers/builtin_plugins.py:791: error: Incompatible types in assignment (expression has type "SabreLayout", variable has type "VF2Layout")  [assignment]
1766,1792c1752,1754
< qiskit/transpiler/coupling.py:274: error: No overload variant of "__setitem__" of "list" matches argument types "Any", "int"  [call-overload]
< qiskit/transpiler/coupling.py:274: note: Possible overload variants:
< qiskit/transpiler/coupling.py:274: note:     def __setitem__(self, SupportsIndex, None, /) -> None
< qiskit/transpiler/coupling.py:274: note:     def __setitem__(self, slice, Iterable[None], /) -> None
< qiskit/transpiler/layout.py:531: error: Incompatible return value type (got "list[None]", expected "list[int]")  [return-value]
< qiskit/transpiler/layout.py:531: note: "List" is invariant -- see https://mypy.readthedocs.io/en/stable/common_issues.html#variance
< qiskit/transpiler/layout.py:531: note: Consider using "Sequence" instead, which is covariant
< qiskit/transpiler/layout.py:531: note: Perhaps you need a type annotation for "output"? Suggestion: "list[int]"
< qiskit/transpiler/passes/basis/decompose.py:78: error: Incompatible types in assignment (expression has type "list[type[Gate]] | list[str]", variable has type "list[type[Gate] | str]")  [assignment]
< qiskit/transpiler/passes/layout/sabre_pre_layout.py:191: error: Need type annotation for "extra_edges_necessary" (hint: "extra_edges_necessary: List[<type>] = ...")  [var-annotated]
< qiskit/transpiler/passes/optimization/inverse_cancellation.py:63: error: Need type annotation for "inverse_gate_pairs_names" (hint: "inverse_gate_pairs_names: Set[<type>] = ...")  [var-annotated]
< qiskit/transpiler/passes/optimization/optimize_1q_commutation.py:93: error: Need type annotation for "adjoining_run" (hint: "adjoining_run: List[<type>] = ...")  [var-annotated]
< qiskit/transpiler/passes/optimization/optimize_1q_commutation.py:123: error: Need type annotation for "commuted"  [var-annotated]
< qiskit/transpiler/passes/optimization/optimize_cliffords.py:39: error: Need type annotation for "cur_block" (hint: "cur_block: List[<type>] = ...")  [var-annotated]
< qiskit/transpiler/passes/optimization/template_matching/template_substitution.py:139: error: Need type annotation for "predecessors" (hint: "predecessors: Set[<type>] = ...")  [var-annotated]
< qiskit/transpiler/passes/optimization/template_matching/template_substitution.py:143: error: Need type annotation for "exclude" (hint: "exclude: Set[<type>] = ...")  [var-annotated]
< qiskit/transpiler/passes/optimization/template_matching/template_substitution.py:206: error: Need type annotation for "pred" (hint: "pred: Set[<type>] = ...")  [var-annotated]
< qiskit/transpiler/passes/optimization/template_matching/template_substitution.py:211: error: Need type annotation for "succ" (hint: "succ: Set[<type>] = ...")  [var-annotated]
< qiskit/transpiler/passes/optimization/template_matching/template_substitution.py:250: error: Need type annotation for "predecessors" (hint: "predecessors: Set[<type>] = ...")  [var-annotated]
< qiskit/transpiler/passes/optimization/template_matching/template_substitution.py:276: error: Need type annotation for "predecessors" (hint: "predecessors: Set[<type>] = ...")  [var-annotated]
< qiskit/transpiler/passes/optimization/template_matching/template_substitution.py:359: error: Need type annotation for "circuit_list" (hint: "circuit_list: List[<type>] = ...")  [var-annotated]
< qiskit/transpiler/passes/optimization/template_matching/template_substitution.py:511: error: Need type annotation for "circuit_params_set" (hint: "circuit_params_set: Set[<type>] = ...")  [var-annotated]
< qiskit/transpiler/passes/optimization/template_matching/template_substitution.py:533: error: Need type annotation for "template_clash_substitutions"  [var-annotated]
< qiskit/transpiler/passes/routing/lookahead_swap.py:281: error: Need type annotation for "blocked_qubits" (hint: "blocked_qubits: Set[<type>] = ...")  [var-annotated]
< qiskit/transpiler/passes/routing/sabre_swap.py:272: error: Need type annotation for "circuit_to_dag_dict" (hint: "circuit_to_dag_dict: Dict[<type>, <type>] = ...")  [var-annotated]
< qiskit/transpiler/passes/synthesis/plugin.py:623: error: Need type annotation for "plugins_by_op" (hint: "plugins_by_op: Dict[<type>, <type>] = ...")  [var-annotated]
< Found 1491 errors in 284 files (checked 950 source files)
---
> qiskit/transpiler/passes/calibration/rzx_templates.py:51: error: Incompatible return value type (got "dict[str, Collection[Any]]", expected "dict[str, list[Any] | dict[str, int]]")  [return-value]
> qiskit/transpiler/passes/optimization/template_optimization.py:142: error: Argument 1 to "MaximalMatches" has incompatible type "list[qiskit.transpiler.passes.optimization.template_matching.backward_match.Match]"; expected "list[qiskit.transpiler.passes.optimization.template_matching.maximal_matches.Match]"  [arg-type]
> Found 1459 errors in 274 files (checked 950 source files)

Note that some errors appeared due to added types mypy couldn't derive previously.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.01%) to 87.542%

Totals

Change from base Build<PHONE_NUMBER>:
-0.01%

Covered Lines:
59281

Relevant Lines:
67717

💛  - Coveralls


Offset in mouse selections when page is scrolled down

Apparently, any scroll in a page causes an offset for mouse events in the graph, making nearly impossible to use (in particular, creating new connections) when scrolled down the page. I was able to reproduce this behaviour in the example Helloport when making the browser window small enough to allow scrolling:

Offset in mouse events problem when page is scrolled

Working correctly when scroll is at the top of the page
I found this problem in Google Chrome and Firefox.
Moving and resizing components seems to be working fine.

Duplicate of https://desk.draw.io/helpdesk/tickets/3257

Thanks for the report, this will be fixed in the next release.

Hi @alderg Is this issue got fixed ? I am currently using <IP_ADDRESS> version.

yes, fixed in 3.7.1

Thank You @alderg

this problem is still alive.

@joulestaa Have you tried this helloport example? If yes and it fails, which browser/browser version are you using? Are you sure you are looking at the latest (cleared cache)?

helloport is working but whan i use graph with page which has scroll problem appears like

Can you repost a simple, complete reproduction example?

I found the problem to keep happening in a specific case, but I haven't been able to reproduce in a simple example yet

@angrykoala does this happen in all browsers? Post a video of it in your app, maybe we can log some numbers to debug it.

If i changed window scroll , drag drop event of an edge or toolbar items appears under my cursor and add that position

how can i fix this problem ? reset all mouse events or what?

Fix what problem? I don't see a clear problem description

I will explain in detail. When I down the page with scroll bar, to combine the cells in graph with edge, the edge appears to be under than the merge field down. I posted this photo at previous post

Joulestaa, I had a very similar problem when I started with my application.
It turned out to be a bug in the specific version of the library I was
using (I was using <IP_ADDRESS>).
As soon as I updated to 3.7.1 the problem went away.
Nigel
On 23 March 2017 at 10:53, David Benson<EMAIL_ADDRESS>wrote:

Fix what problem? I don't see a clear problem description
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jgraph/mxgraph/issues/58#issuecomment-288744383, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AKti7W7GObOSNOCRqhklSY05V-pco_jiks5roodRgaJpZM4MOhXd
.

I already use the latest version. I will open a new window in the same way as the graph examples at full height.
Thanks a lot.

@davidjgraph Sorry, I cannot send a video/screenshot of the application at the moment. However, the problem is exactly the described in this issue, but only under certain conditions instead of always (Sorry, I couldn't figure out the exact conditions that trigger the problem). In my app (running on a Chrome browser) one graph behaves properly, while another graph in other page is misbehaving. Both (obviously) are running the same version (after the fix) of mxGraph, and basically the same browser and web.
Before the fix, both graphs were misbehaving, so the main issue (the one I could reproduce with helloport) is fixed, but in unknown conditions it is still happening

Can you please provide a test case to reproduce this issue?

Has anything transpired with this issue? I am experiencing this exact behavior described in the top post. The outer div has an 'overflow: auto' and dragging appears to be fine as long as the scroll is at the top of the page. When scrolling down, an offset in mouse position causes issues when moving edges or dragging symbols onto the graph.
Using mxgraph version 3.7.4, javascript in a google chrome browser.

Can you check if this fix for mxUtils.getScrollOrigin fixes it: https://groups.google.com/d/msg/drawio/vtRndSnOKrM/wcvwVA_-BwAJ

Yes, Hallelujah! This was such a big concern for me. Thank you for responding so quickly with a viable solution @alderg


Support hmac_drbg in PSA crypto

The PSA crypto code relies on CTR_DRBG. By design, you can't use PSA crypto without an RNG. But the RNG doesn't have to be built on CTR_DRBG: any DRBG will do. Since the library also has HMAC_DRBG, the PSA crypto code should also support it. The only reason why psa_crypto currently requires CTR_DRBG is that it was easier to write it like this initially.
To avoid increasing the code complexity and the code size, the choice of DRBG should be done at compile time. Ideally there should be a compile-time choice of which DRBG to use (CTR_DRBG is a little faster than HMAC_DRBG, but less resistant against side channel attacks).

I see the convenience of having one single API for generating random data, but I wonder if this may break protocol requirements if there are competing uses of CTR_DRBG, HMAC_DRBG, etc. in a design. I don't see that "choose one" will always be acceptable.
This leads to the following questions:

Will there be an option in the future to access specific DRBGs through PSA APIs?
Are there any plans to expose DRBG-specific operations according to their specs (active reseeding, personalization, init and/or reset)?

And one additional question for my curiosity:

Will the APIs facilitate ways to verify the DRBG(s) through PSA APIs?
-E.g. using NIST CAVP - random number generators

Note that I have no issues with psa_generate_random as-is today. It is very convenient for the end-user to not have to worry about configuration if the only thing they want is "some random data".

Will there be an option in the future to access specific DRBGs through PSA APIs?

Probably through the key derivation interface. That interface was even called “generator” in the past. It's a reasonable match for a DRBG interface, with the notable difference that a DRBG's output depends on the size of successive reads, whereas a KDF output doesn't.

Are there any plans to expose DRBG-specific operations according to their specs (active reseeding, personalization, init and/or reset)?

Personalization: yes, through an input step. Active reseeding: maybe by allowing inputs after retrieving output, but this is a bit of a bigger deviation from the nominal KDF interface. Passive reseeding: probably not: that would be an RNG interface, not a DRBG interface.

Will the APIs facilitate ways to verify the DRBG(s) through PSA APIs?

That was not in the plans as a standardized PSA interface, no. I think that if you're doing compliance testing, you're tied to a specific implementation.
In Mbed TLS, we don't have clear plans there. We want to reduce the amount of stable interface, in order to allow the internal design of the library to change. However, there'll still be an interface that allows you to validate the RNG — but after Mbed TLS 3.0, it probably won't be a stable interface (so it might e.g. change without prior notice between 3.4 and 3.5).


Add documentation about what kind of analytics we collect for debugging purposes

From https://github.com/resin-io/etcher/issues/1770

I'd appreciate if this was shipped in-app as well, or a link to an online version would be included. Ideally next to the opt-out checkbox. Also, please link to the privacy policies of the services you use (I assume Mixpanel, and maybe a self-hosted Sentry.io instance).


build: dev builds use superblock version 0

We bumped this to 1 for the release, but what we actually want is this logic:

release builds use the real version which we bump manually.
dev builds always use 0, so that they are easily distinguishable from prod builds.

Use -Dtigerbeetle-release to distinguish which case we are in.

Eventually we will have a data file inspector tool, and then as part of our release pipeline we should verify that data files created by release binaries have non-zero superblock version.


ISPN-9150 RemoteCache additional tests

Added tests for the forEach method on collections
Make sure tests were testing remote size as well

https://issues.jboss.org/browse/ISPN-9150

Note this just adds an additional test and tightens up the assertions for a couple others. This doesn't close the issue itself as I am unsure how to reproduce the bug.


coperception codebase

Should we use git submodules to include the coperception library in V2X-Sim? @dekunma

I have discussed this with @RoboticsYimingLi, and we think that it might be better to leave the code base this way for the best reproducibility of our paper.

@dekunma are you worried about future changes in co-perception library? If so, you don't have to worry because submodules can specify which commit of the repo you are referencing, so it is in fact the same, unless the current coperception folder is different than the library (which should not happen because all the changes should happen inside the library repo).

That makes a lot of sense. I have done so in the latest commit. Thank you!


Using IQuerySession from within EventProjection/AggregateProjection

I think we already have tests for this, but make sure the IQuerySession passed into event handlers in EventProjection and AggregateProjection both work.

cc @elexisvenator Found the issue, came in during 5.0 work. Fix is coming in 5.1. Only impacts projections running asynchronously.


[Kick.com] New site rollout causing issue

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting that yt-dlp is broken on a supported site
[X] I've verified that I have updated yt-dlp to nightly or master (update instructions)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[X] I've read about sharing account credentials and I'm willing to share it if required

Region
USA
Provide a description that is worded well enough to be understood
Prior to this it worked perfectly fine. But recently they rolled out their new site with mostly UI changes.
First thing I noticed was how their VOD urls are laballed now
Before: https://kick.com/video/{LONG_VOD_ID}
Now: https://kick.com/{Channel}/videos/{LONG_VOD_ID}
Using the new URLs returns ERROR: [kick:live] {Channel}: The channel is not currently live
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[ ] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
$ yt-dlp https://kick.com/xqc/videos/8dd97a8d-e17f-48fb-8bc3-565f88dbc9ea -vU
[debug] Command-line config: ['https://kick.com/xqc/videos/8dd97a8d-e17f-48fb-8bc3-565f88dbc9ea', '-vU']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>from yt-dlp/yt-dlp [4d9231208] (pip)
[debug] Python 3.8.10 (CPython x86_64 64bit) - Linux-5.15.107-1-pve-x86_64-with-glibc2.29 (OpenSSL 1.1.1f  31 Mar 2020, glibc 2.31)
[debug] exe versions: ffmpeg 4.2.7, ffprobe 4.2.7
[debug] Optional libraries: Cryptodome-3.20.0, brotli-1.1.0, certifi-2020.12.05, curl_cffi-0.5.10, mutagen-1.47.0, requests-2.32.3, sqlite3-3.31.1, urllib3-2.2.1, websockets-12.0
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Loaded 1830 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Latest version<EMAIL_ADDRESS>from yt-dlp/yt-dlp
yt-dlp is up to date<EMAIL_ADDRESS>from yt-dlp/yt-dlp)
[kick:live] Setting up session
[debug] [kick:live] kick.com did not set XSRF-TOKEN cookie
[kick:live] Extracting URL: https://kick.com/xqc/videos/8dd97a8d-e17f-48fb-8bc3-565f88dbc9ea
[kick:live] xqc: Downloading API JSON
ERROR: [kick:live] xqc: The channel is not currently live
  File "/home/sv/.local/lib/python3.8/site-packages/yt_dlp/extractor/common.py", line 740, in extract
    ie_result = self._real_extract(url)
  File "/home/sv/.local/lib/python3.8/site-packages/yt_dlp/extractor/kick.py", line 76, in _real_extract
    raise UserNotLive(video_id=channel)

diff --git a/yt_dlp/extractor/kick.py b/yt_dlp/extractor/kick.py
index 1c1b2a177..691f6d53e 100644
--- a/yt_dlp/extractor/kick.py
+++ b/yt_dlp/extractor/kick.py
@@ -67,7 +67,7 @@ class KickIE(KickBaseIE):

     @classmethod
     def suitable(cls, url):
-        return False if KickClipIE.suitable(url) else super().suitable(url)
+        return False if (KickVODIE.suitable(url) or KickClipIE.suitable(url)) else super().suitable(url)

     def _real_extract(self, url):
         channel = self._match_id(url)
@@ -98,9 +98,9 @@ def _real_extract(self, url):

 class KickVODIE(KickBaseIE):
     IE_NAME = 'kick:vod'
-    _VALID_URL = r'https?://(?:www\.)?kick\.com/video/(?P<id>[\da-f]{8}-(?:[\da-f]{4}-){3}[\da-f]{12})'
+    _VALID_URL = r'https?://(?:www\.)?kick\.com/[\w-]+/videos/(?P<id>[\da-f]{8}-(?:[\da-f]{4}-){3}[\da-f]{12})'
     _TESTS = [{
-        'url': 'https://kick.com/video/e74614f4-5270-4319-90ad-32179f19a45c',
+        'url': 'https://kick.com/xqc/videos/e74614f4-5270-4319-90ad-32179f19a45c',
         'md5': '3870f94153e40e7121a6e46c068b70cb',
         'info_dict': {
             'id': 'e74614f4-5270-4319-90ad-32179f19a45c',

How do I apply this patch (If that's even possible)? Sorry, complete newb here. I'm just trying to download some Kick VODs

git clone https://github.com/yt-dlp/yt-dlp.git
cd yt-dlp
git apply
# copy the patch here, ending with EOF(can be ctrl+Z(win) or ctrl+D(unix-based))
python3 -m yt_dlp <your args>
# in some cases, it's py or python


Refactor Apply Button

Draft.

Things left to do:

[ ] Fix button styling
[ ] Figure out which CustomButton props should be optional
[ ] Delete ApplyButton and HoverButton files, replace referenced with CustomButton

Closing (inactive)


provide an svg-only build

We use your lib with browserify. Works great so far.
Would be even better if there would be a svg-only build to minimize filesize.
qr = require('qr-image/svg')

I think this would be easily possible just by shifting some code around. I this would be of interest I would create a PR for this.

That should be simple splitting of vector.js
A PR would be nice

Has anyone made any progress on this? I'm interested in this option too. It'd most likely be extremely tiny.

+1 That would be great !

Do we need anything else than the svgObject method on the client side ?


magic number ignoreNamedArgument not working with inheriting abstract class

abstract class A(n: Int)

object B : A(n = 5)

Expected Behavior
magic number should not be reported if ignoreNamedArgument is true
Current Behavior
magic number is reported even if ignoreNamedArgument is true

Thanks for reporting.
I could reproduce this with following test case:
			it("should ignore named arguments in inheritance") {
				val code = """
					abstract class A(n: Int)

					object B : A(n = 5)
				""".trimIndent()
				val rule = MagicNumber(TestConfig(mapOf("ignoreNamedArgument" to "true")))
				assertThat(rule.lint(code)).isEmpty()
			}


Fix operator upgrades

What type of PR is this?
/kind bug
What this PR does / why we need it:
controller was adding version labels with every patch of an object. This is fine for all objects except statefulsets.
"volumeClaimTemplates": [
      {
        "metadata": {
          ...
          "labels": {
           ....
            "version": "0.1.0"
          }

that was causing the same error as helm was dealing with here https://github.com/helm/charts/issues/7803
Which issue(s) this PR fixes:

Fixes #557
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

Fixes upgrades for operators using statefulsets - it was not possible to upgrade those to another version of template.

I have tested for kafka with steps defined in https://github.com/kudobuilder/kudo/issues/557 and was able to successfully upgrade from 2.2.1 to 2.3.0, that is operatorversion 0.1.1 to the next one

thinking more about this...  I think we need a different solution.   The label for version seems meaningful.   There are objects which can not be updated...  those objects [StatefulSets, Jobs] should never be updated... the job was a job for a specific version.  and SS will be good only for a version... if an upgrade happens... a backup is invoked... the SS is destroyed and replaced (with a new version) and a restore happens.

@kensipe why would you reimplement rolling updates on statefulsets if you can reuse what is inside kubernetes? K8s allow that and as long as you don't touch persistent volumes, you can update anything you want... Sure, if you need to change something around persistence, you need to do what you're proposing

@alenkacz I'm not sure where you are coming from... I never suggested not using k8s functionality... of course we should.   I am suggesting that there are protected k8s objects which KUDO should be aware of and treat appropriately.    I don't think I like the model of attempt and if it works good and if it fails it must not be allowed so we are good.    I definitely don't like the model of not supporting multiple versions of a operator and would like to have solutions around that in the long term.

Put another way... I would prefer to NOT remove versions from labels and that for most object this makes sense.    For objects for which this isn't allowed we should have other mechanisms for management.    I'm not convinced this PR make sense.

to be clear... I am FOR not having a version label on volumeClaims... but this code change isn't just for volumeClaims... it is for "CommonLabels" and I am NOT FOR removing version labels on the other k8s objects.

@kensipe I would like us to switch the way of reasoning here and instead of telling what you want to change and how I need to see what you want to achieve with that, because I am missing that from the conversation. Tell me where you need the version inside labels and why.
 I definitely don't like the model of not supporting multiple versions of a operator and would like to have solutions around that in the long term.
This is nothing new or anything that would change with this PR. You CANNOT have multiple instances inside the same namespace with the same name. That is just how k8s works. You cannot have multiple apps of the same name inside Marathon as well. And when you use a different name when you install different version of operator, you don't need the label with version because filtering on name is enough. This PR does not affect us supporting multiple versions in ANY WAY.
There are objects which can not be updated... those objects [StatefulSets, Jobs] should never be updated...
I don't agree with that. There are things you can allow to update safely and if that's the case we should do it in the normal k8s way without the overhead of doing backup and restore.

I am going to spend some time today going through some k8s docs and making sure how selectors work and where we can actually omit the labels and where not to gather the facts for what I proposed in the first paragraph.

btw. there is no easy way with kustomize to skip adding labels to some parts of yaml although it's pretty requested feature :( https://github.com/kubernetes-sigs/kustomize/issues/817

After doing a lot of reading my summary is:

I think we don't need that label for kudo to work properly
having that label as selector MIGHT be useful for certain scenarios. BTW. helm does not add that label automatically as well, they just recommend you to do that in the template. Operator developers in KUDO can do that as well and add it manually to the template in the meantime if absolutely necessary
if we want to absolutely keep the feature of automatically applied version label, we should probably open an issue and discuss what is the best way to do that. Using kustomize for that seems not very straightforward, while I actually don't like the way we use kustomize right now at all. It's adding a lot of complexity to the code with a little value. Or we could keep customize and right after using it we can manually remove the label from persistentvolumeclaim (actually the last option seems like most feasible to me, if others approve I can start working on it in the next PR, but I think for now we're fine without that label)

I'll be working on #601 in the meantime


Restoring backup on Windows not working

Hi, I was testing the backup and restore, to get confidence it is working before upgrading postgres from v11 to v12. I am running Teslamate on a raspberry pi 4 (that is my primary) and to test this, I installed docker on windows and tried to restore it there but it fails I can get the following error.
Docker is setup as Linux containers on Windows and I can get Teslamate up and running (fresh install) and can login and see dashboards. Of course there isn't any data which is OK.
I created the backup, and copied over that file from the pi to my windows machine and when I tried to run the restore command as outlined in the documentation here, it fails because of multi-lines as shown below.

I tried to create a batch file and run that, I get the same error.
Any guidance on how I can try to restore on Windows?
Thanks.

Well, obviously redirection in PoerShell does not work as it does in a Unix shell. Can you run bash in the PowerShell?

Running into the same issue. I've tried to setup bash, you can do so by enabling the Windows Subsystem for Linux under Programs and Features, and then installed Ubuntu, then just type bash in powershell inside TeslaMate directory, but it doesn't even think that docker-compose is installed.
Trying to install docker-compose through bash says that it cannot locate package docker-compose.

Here is what I did: I ran a bash into the postgres database and directed typed in the database commands
drop schema public cascade;
..
one by one.
I am running portainer and used that interface to bash into postgres sql.
I believe that the latest instructions provide information on how to setup portainer. See https://docs.teslamate.org/docs/guides/portainer
I would highly recommend portainer generally as well.

Thanks, thats a good tip. I was running Portainer already and never thought of this. But I did restore the backup on my NAS and setup a cron job.

Here is what I did: I ran a bash into the postgres database and directly typed in the database commands
drop schema public cascade;
..
one by one.
I am running portainer and used that interface to bash into postgres sql.
I believe that the latest instructions provide information on how to setup portainer. See https://docs.teslamate.org/docs/guides/portainer
I would highly recommend portainer generally as well.

Please help to advise more in detail, ive connected to  teslamate_database_1 postgres:13 via portainer. But it says command not found
drop schema public cascade;


backport: rpc-probe updates from #1061

Backport of just the RPC probe updates from #1061

[ ] Referenced an issue explaining the need for the change
[ ] Updated all relevant documentation in docs
[ ] Updated all code comments where relevant
[ ] Wrote tests
[x] Added entry in .changelog/

Codecov Report

Merging #1084 (b0b3ce7) into master (38668f1) will decrease coverage by 0.1%.
The diff coverage is 0.0%.

:exclamation: Current head b0b3ce7 differs from pull request most recent head 35c25a4. Consider uploading reports for the commit 35c25a4 to get more accurate results

@@           Coverage Diff            @@
##           master   #1084     +/-   ##
========================================
- Coverage    64.7%   64.6%   -0.2%
========================================
  Files         238     239      +1
  Lines       20592   20635     +43
========================================
+ Hits        13332   13334      +2
- Misses       7260    7301     +41

Impacted Files
Coverage Δ

tools/rpc-probe/src/common.rs
0.0% <0.0%> (ø)

tendermint/src/node.rs
63.5% <0.0%> (-0.2%)
:arrow_down:

testgen/src/header.rs
85.0% <0.0%> (+0.5%)
:arrow_up:

testgen/src/vote.rs
85.7% <0.0%> (+1.6%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 38668f1...35c25a4. Read the comment docs.


Japanese Translations

Ah yes, we need help with this.
Interested translators may signup here by replying, or just go to KC3改 dev blog
To get an idea of how this will go, see this wiki article.
Although we're not yet giving a green light on translating so you'll have to wait for now xD

Just to clarify, are we going to translate KC3Kai's UI into Japanese?

yes, that's the plan, via \src\data\translations\en\terms.json

\src\data\translations\jp\terms.json done. #265


CFDP proxy op support

Codecov Report

Merging #95 (85e0c40) into main (1b110d3) will decrease coverage by 0.17%.
Report is 18 commits behind head on main.
The diff coverage is 67.74%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@            Coverage Diff             @@
##             main      #95      +/-   ##
==========================================
- Coverage   74.73%   74.57%   -0.17%
==========================================
  Files         110      110
  Lines        7560     7571      +11
==========================================
- Hits         5650     5646       -4
- Misses       1910     1925      +15

Flag
Coverage Δ

unittests
74.57% <67.74%> (-0.17%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed
Coverage Δ

tmtccmd/cfdp/handler/dest.py
79.37% <0.00%> (ø)

tmtccmd/cfdp/request.py
51.51% <31.57%> (-10.03%)
:arrow_down:

tmtccmd/config/__init__.py
35.52% <42.10%> (+3.70%)
:arrow_up:

tmtccmd/cfdp/handler/__init__.py
40.70% <50.00%> (ø)

tmtccmd/config/args.py
49.34% <50.00%> (-1.77%)
:arrow_down:

tmtccmd/cfdp/handler/source.py
81.84% <87.50%> (-0.48%)
:arrow_down:

tests/cfdp/test_src_handler.py
99.20% <100.00%> (-0.01%)
:arrow_down:

tests/cfdp/test_src_handler_nak_closure.py
100.00% <100.00%> (ø)

tests/cfdp/test_src_handler_nak_no_closure.py
100.00% <100.00%> (ø)

tmtccmd/config/defs.py
95.08% <100.00%> (+1.33%)
:arrow_up:

... and 1 file with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


LANG-1405 Remove check for Java 1.5

Since the minimum Java version for commons-lang 3.x is 1.7, the check for Java 1.5 will always be true

Coverage decreased (-0.04%) to 95.244% when pulling 7d5a3984a893b3dd91a68cbe70211e2e58a6ff74 on larsgrefer:simplify-classUtils into 2cc524380830ba76a9a7e60e37d726e2aaf743a9 on apache:master.


Merge shared db strucutre into main db

they are the old  numbers manually butchered to be at the end of the migration list in the right order


SONARMSBRU-43 Set the temporary folder to '.sonarqube' within the CWD

This quite large PR includes the following:

Support of the current working directory as a temporary analysis folder - it does not clean the folder automatically during the preprocessing step (that will come with http://jira.sonarsource.com/browse/SONARMSBRU-50)
Logic simplification within targets files: The presence of SonarQubeTempPath is now driving whether or not to perform the analysis, whereas it previously was a combination of that plus RunSonarQubeAnalysis. The implementation targets file also no longer knows anything about TFS 2013 or 2015
A few hacks are introduced to keep the integration tests running. I'll submit a separate PR to factorize the logic to run an end-to-end test, so that we won't have to update many places in case of future changes in the targets files.

LGTM


Mismatched graphql-request versions

We have a mixture of graphql-request versions in use. For example, @propeldata/react-counter is using ^3.6.1, while @propeldata/ui-kit-graphql is using ^6.0.0.

Fixed


Resume broken streams

The PartialResultSet object can contain a resume token which can be used to resume a broken stream. The resume token is not guaranteed to be in every message. Results should be buffered until a resume token is present before yielding.
If a stream is broken, a new API request should be made with the token, and results continued to yielded from the new streaming response. If the broken stream cannot be resumed a failure should be raised.

We are not yet sure what constitutes a broken stream, or how the returned Enumerator will behave when a stream is broken.

Broken stream essentially means that grpc threw an error while consuming results from the stream. The enumerator returned by grpc will not yield any more PartialResultSets after this. So you make a new request and pass in the resume token. That will give you a new enumerator. All this should happen behind the scenes and the user should be able to continue getting results.

Reopening so we can track the requirement to get the delay value.

Oops, wrong issue.


Update the CodeSchool :index and :show endpoints to yield the expected JSON

Feature
Why is this feature being added?

New CodeSchool and Location models have been created, with accompanying code school CRUD endpoints; however, two of the new endpoints are not returning the JSON structure the frontend expects.
What should your feature do?

Update the api/v1/code_schools_controller#index and #show actions to deliver a JSON payload whose shape is in keeping with what the frontend is expecting.
For the index action we’ll want it to look like this:  https://github.com/OperationCode/operationcode_backend/blob/master/apiary.apib#L14-L39
For the show action, we’ll want it to look like that also, but with just one location.
Update the API documentation

@hpjaj I'll take this one.

@PrimeTimeTran - It's yours!

Moving this discussion to the issue:
@hollomancer @kylemh @jjhampton @Cooperbuilt - What payload do you want the :show endpoint to deliver?
1 - a single school at one location, or
2 - a single school, with all its locations
For option 1 we would have the frontend pass two params in the request, a school and a location.
For option 2, it would just pass the school.

@hpjaj thanks for moving it forward =), currently blocked on this after having completed the other requests for tests & refactoring.
Guys, I don't know which one to return if a CodeSchool has multiple locations. Obviously, this won't be an issue for a CodeSchool with one location but there are a few with multiple.

@PrimeTimeTran returning all locations sounds best! Harry and I had a convo about it on Slack.
Aka: option 2 on Harry's above comment.

@kylemh I think this should be resolved with PR #176

Completed in https://github.com/OperationCode/operationcode_backend/pull/176


Creating new customer for each session.

Hi
after deployment the application is creating a new customer record for each session and 10s of customer for each unique user.
is there any easy solution for this.

Hello, there is a solution for this, you need to write a service and delete visitors at certain intervals.


please add support for abcnews.go.com

abcnews.go.com/Blotter/News/dramatic-video-rare-death-job-america/story?id=10498713#.UIhwosWHLjY
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://abcnews.go.com/Blotter/News/dramatic-video-rare-death-job-america/story?id=10498713#.UIhwosWHLjY']
[debug] Encodings: locale 'UTF-8', fs 'UTF-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.02.17
[debug] Python version 2.7.6 - Linux-3.13.0-37-generic-x86_64-with-Ubuntu-14.04-trusty
[debug] Proxy map: {}
[generic] story?id=10498713#: Requesting header
WARNING: Falling back on generic information extractor.
[generic] story?id=10498713#: Downloading webpage
[generic] story?id=10498713#: Extracting information
ERROR: Unsupported URL: http://abcnews.go.com/Blotter/News/dramatic-video-rare-death-job-america/story?id=10498713#.UIhwosWHLjY; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 493, in extract_info
    ie_result = ie.extract(url)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/common.py", line 158, in extract
    return self._real_extract(url)
  File "/usr/lib/python2.7/dist-packages/youtube_dl/extractor/generic.py", line 380, in _real_extract
    raise ExtractorError('Unsupported URL: %s' % url)
ExtractorError: Unsupported URL: http://abcnews.go.com/Blotter/News/dramatic-video-rare-death-job-america/story?id=10498713#.UIhwosWHLjY; please report this issue on https://yt-dl.org/bug . Be sure to call youtube-dl with the --verbose flag and include its complete output. Make sure you are using the latest version; type  youtube-dl -U  to update.

ABC news will be supported in the next version.


Save high score using localStorage

Expected behavior:
-Store the high score locally.
Current behavior:
-Nothing is stored.
Possible solution:
-use the API's built in propertie "localStorage" of the window object.

done.


Trouble playing mkv files

I've some trouble playing mkv files out of the box. I read in #47 that mkv playback should work out of the box and it would make sense since the codec used (in my case) is h264 in both mp4 and mkv, but when playing a mkv file the following happens:
$ DEBUG=castnow* castnow --myip 192.168.x.y filename.mkv
  castnow launching... +0ms
  castnow:localfile started webserver on address 192.168.x.y using port 4100 +5ms
  castnow player status: loading plugins +2ms
  castnow player status: scanning +1ms
  castnow player status: connecting +176ms
  castnow player status: launching +103ms
  castnow player status: loading +3s
  castnow:localfile incoming request serving filename.mkv +355ms
  castnow:localfile incoming request serving filename.mkv +191ms
  castnow:localfile incoming request serving filename.mkv +90ms
  castnow player status: ready +1s
  castnow player status: idle +76ms

After which the chromecast displays the chromecast logo.
Does somebody know what the problem is here, or is the chromecast just not able of to play nice with mkv without "transcoding" it?

Update on the issue. I've tried manually converting the file from mkv to mp4 and it still isn't working. I forgot to point out that in both cases transcoding the file on fly using --tomp4 works perfectly.

I wish castnow would automatically --tomp4 for mkv. Never once have I ever had an mkv work perfectly without it

I've seen the playback issue described when my firewall was too restrictive.  Playing mkv containers hasn't been an issue since opening the correct firewall ports from the chromecast to the node.js machine.

5353/udp
4100:4105/tcp

We are a single-chromecast home.


created inject method and added logic to backup modified react-script…

Added logic to backup the original react-script files before modifying them. If you think this is useful in general here it is. Basically pulled the logic to do the react-script file updates into an inject function and at the start of that function create a backup of file to be modified if it does not already exist.

@mlesk that's nice! I'm thinking, maybe there is some existing module for doing that.. otherwise, setup.js may become a little bit too verbose


feat: implement Angular specific version of the Google Pay button

I've implemented the suggestions. Can you please take another look @mgechev and @jelbourn?


Create bert-codegen.h

Orig:  ring/language/include/codegen.h
New:  ring/language/include/bert-codegen.h   ==> codegen.h
Adds "^^" as  power function   example  4^^3 => 64
Uses  "void ring_vm_explog ( VM *pVM )"

Hello Bert
I don't plan to add this operator at the current stage
Will think about this in the future once I determine the approach that match the language design
For example we have many functions in this chapter : https://ring-lang.github.io/doc1.17/mathfunc.html
One of the ideas is to keep using them while introducing specific VM instruction instead of the (function call)
to get the same performance.
I will close this for now, and will check them in the future.
Thanks

Hello Bert
Thanks for your contribution, Now Ring 1.18 support the ^^ operator


Can I add 2 more horns?

added 2 more horns (CJ sounds)
normalized 270.mp3
converted them to 128 kbps

Nice nice, I like these CJ's

Thanks mate!


Bump _XOPEN_SOURCE to 700 for strndup()

The strndup() function wasn't added until X/Open 7, incorporating POSIX 2008.  So we have to bump _XOPEN_SOURCE from 600 to 700.

@dnephin Can this get some merge love? :heart:

fwiw, this looks fine to me

cool


Check output of ModelScenario methods match to footprints_data_merge function (within acrg code)

For multiple input scenarios, check values created by the openghg.analyse.ModelScenario.footprints_data_merge function match to values from acrg.name.footprints_data_merge function in the acrg code. Run through both with the exact same data.

[ ] methane data (for 1 site)
[ ] carbon dioxide data (for 1 site)
[ ] radon data (for 1 site)

Check time, mf_mod and bc/bc_mod for all cases.

See  #637 for an example for methane to check. That issue can be closed when this has been addressed.

That's great - thanks for much for looking into this in more detail Alice.
To address your proposed solutions, there was a reason for extracting all flux data related to how the carbon dioxide methodology works and how this needs to match to dates prior to the start date so I would suggest option 1 may be the best approach to get the best of both worlds here.
Would you be confident / have time to try putting in a PR for this and I can take a look? I can always add to this if we wanted to try and add in additional details / test as well.

Ok, I did expect there might be a good reason why the whole year of flux was read in, thanks for clarifying that.
I can put together a pull request with a fix using option 1, and I'll test it out with a few different sets of inputs (I'll see how I get on with adding a coded test for this too, if I've got time).

I'm not sure if this is related, but the combine_datasets function in inversions uses "ffill" and it tends to put nan's in the the values whose lat/lon have index = 0. So that might be another place where "nearest" makes more sense (or we need some extra code to replace that first value). (There is a similar combine_datasets function in the "scenario" module in OpenGHG.)

The 'ffill' is needed for the time dimension and I'm guessing that the reindexing is currently being done across all coordinates at the same time (time, lat, lon) this will be why this is being used. This could be updated to split out the reindex to time and the reindex to lat, lon to do what you suggested but (a) we need to make sure that's not much less efficient and (b) we must used ffill for time.

In the specific case I looked at (test data added to inversions), only the time dimension needed to be filled, and the other dimensions were already aligned. By the time fp_sensitivity was called, there were about 100k nan's in fp_data that didn't need to be there (for 1 week of observations).
I haven't profiled any very large inversions, but for the single site/species inversions I've profiled, the initial data processing time was a few minutes, and the sampling time was a few hours, so I think we can sacrifice a bit of speed in data processing to maintain the integrity of the data. (I can't really see splitting this operation into two operations being any worse than doubling the data processing time, which is still small compared to sampling time.)

Ok, could we open an issue to check this on openghg-inversions and copy (and continue if needed) this discussion there?

Also, it seems like "nearest" filled the times the same as "ffill" when merging footprints and flux files in fp_sensitivity. Maybe it's a special case, since there is only one time in these fluxes. I guess if the fluxes changed monthly and the footprints were every 4H, then then time coordinates in the merged flux would change in the middle of a month.

Ok, could we open an issue to check this on openghg-inversions and copy (and continue if needed) this discussion there?

Sure. I guess we also have duplicate combine_datasets functions in OpenGHG and openghg_inversions. So maybe it's worth consolidating them at some point.


Merge develop-gh0stblade->master

This PR is currently unstable. Will restabilise and merge into master when complete


implement boundary polygons at logbook level

As an enhancement of the table logbooks, implement metadata for boundary polygons derived from regional names using  http://marineregions.org/gazetteer.php?p=webservices.

 implement boundary polygons at logbook level


Raspberry pi4 python time error

Fresh installation on raspberry pi4:
docker compose:
changedetection:
image: ghcr.io/dgtlmoon/changedetection.io
container_name: changedetection
hostname: changedetection
volumes:
- changedetection-data:/datastore
ports:
- 5000:5000
restart: unless-stopped
volumes:
changedetection-data:
docker-compose logs:
changedetection    | Current thread 0xb6f30010 (most recent call first):
changedetection    |
changedetection    | Fatal Python error: pyinit_main: can't initialize time
changedetection    | Python runtime state: core initialized
changedetection    | PermissionError: [Errno 1] Operation not permitted
changedetection    |
changedetection    | Current thread 0xb6efc010 (most recent call first):
changedetection    |
changedetection    | Fatal Python error: pyinit_main: can't initialize time
changedetection    | Python runtime state: core initialized
changedetection    | PermissionError: [Errno 1] Operation not permitted
changedetection    |
changedetection    | Current thread 0xb6fb3010 (most recent call first):
changedetection    |
changedetection    | Fatal Python error: pyinit_main: can't initialize time
changedetection    | Python runtime state: core initialized
changedetection    | PermissionError: [Errno 1] Operation not permitted
changedetection    |
changedetection    | Current thread 0xb6f65010 (most recent call first):
changedetection    |
changedetection    | Fatal Python error: pyinit_main: can't initialize time
changedetection    | Python runtime state: core initialized
changedetection    | PermissionError: [Errno 1] Operation not permitted
changedetection    |
changedetection    | Current thread 0xb6fb7010 (most recent call first):
changedetection    |
changedetection    | Fatal Python error: pyinit_main: can't initialize time
changedetection    | Python runtime state: core initialized
changedetection    | PermissionError: [Errno 1] Operation not permitted
changedetection    |
changedetection    | Current thread 0xb6f1d010 (most recent call first):
changedetection    |

please attach full docker-compose log, there's not enough information for me to help you in any way here

wget http://ftp.us.debian.org/debian/pool/main/libs/libseccomp/libseccomp2_2.5.4-1_armhf.deb
sudo dpkg -i libseccomp2_2.5.4-1_armhf.deb

see also https://github.com/dgtlmoon/changedetection.io/wiki/Troubleshooting#workaround-for-pyinit_main-cant-initialize-time-error-on-raspberry-pi

Sorry for the late reply, but I am still struggling with this problem. This
solution does not work in my case.
On Wed, 22 Jun 2022 at 11:04, atpanos @.***> wrote:

wget http://ftp.us.debian.org/debian/pool/main/libs/libseccomp/libseccomp2_2.5.4-1_armhf.deb
sudo dpkg -i libseccomp2_2.5.4-1_armhf.deb
see also
https://github.com/dgtlmoon/changedetection.io/wiki/Troubleshooting#workaround-for-pyinit_main-cant-initialize-time-error-on-raspberry-pi
—
Reply to this email directly, view it on GitHub
https://github.com/dgtlmoon/changedetection.io/issues/694#issuecomment-1162844039,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACL4BBRVLFYHQ2Q4DS6ULSDVQLJK3ANCNFSM5Y2SWI5Q
.
You are receiving this because you authored the thread.Message ID:
@.***>

docker not working also and python:
@.:~ $ pip3 install changedetection.io
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: changedetection.io in
./.local/lib/python3.7/site-packages (0.39.15)
Requirement already satisfied: chardet>2.3.0 in
/usr/lib/python3/dist-packages (from changedetection.io) (3.0.4)
Requirement already satisfied: flask-wtf in
./.local/lib/python3.7/site-packages (from changedetection.io) (1.0.1)
Requirement already satisfied: lxml in ./.local/lib/python3.7/site-packages
(from changedetection.io) (4.9.0)
Requirement already satisfied: flask-login~=0.5 in
./.local/lib/python3.7/site-packages (from changedetection.io) (0.6.1)
Requirement already satisfied: bs4 in ./.local/lib/python3.7/site-packages
(from changedetection.io) (0.0.1)
Requirement already satisfied: paho-mqtt in
./.local/lib/python3.7/site-packages (from changedetection.io) (1.6.1)
Requirement already satisfied: timeago~=1.0 in
./.local/lib/python3.7/site-packages (from changedetection.io) (1.0.15)
Requirement already satisfied: selenium~=4.1.0 in
./.local/lib/python3.7/site-packages (from changedetection.io) (4.1.5)
Requirement already satisfied: flask-restful in
./.local/lib/python3.7/site-packages (from changedetection.io) (0.3.9)
Requirement already satisfied: requests[socks]~=2.26 in
./.local/lib/python3.7/site-packages (from changedetection.io) (2.28.0)
Requirement already satisfied: werkzeug~=2.0.0 in
./.local/lib/python3.7/site-packages (from changedetection.io) (2.0.3)
Requirement already satisfied: wtforms~=3.0 in
./.local/lib/python3.7/site-packages (from changedetection.io) (3.0.1)
Requirement already satisfied: validators in
./.local/lib/python3.7/site-packages (from changedetection.io) (0.20.0)
Requirement already satisfied: cryptography~=3.4 in
./.local/lib/python3.7/site-packages (from changedetection.io) (3.4.8)
Requirement already satisfied: jsonpath-ng~=1.5.3 in
./.local/lib/python3.7/site-packages (from changedetection.io) (1.5.3)
Requirement already satisfied: eventlet>=0.31.0 in
./.local/lib/python3.7/site-packages (from changedetection.io) (0.33.1)
Requirement already satisfied: feedgen~=0.9 in
./.local/lib/python3.7/site-packages (from changedetection.io) (0.9.0)
Requirement already satisfied: apprise~=0.9.9 in
./.local/lib/python3.7/site-packages (from changedetection.io) (0.9.9)
Requirement already satisfied: flask~=2.0 in
./.local/lib/python3.7/site-packages (from changedetection.io) (2.1.2)
Requirement already satisfied: inscriptis~=2.2 in
./.local/lib/python3.7/site-packages (from changedetection.io) (2.2.0)
Requirement already satisfied: pytz in ./.local/lib/python3.7/site-packages
(from changedetection.io) (2022.1)
Requirement already satisfied: urllib3>1.26 in
./.local/lib/python3.7/site-packages (from changedetection.io) (1.26.9)
Requirement already satisfied: itsdangerous in
./.local/lib/python3.7/site-packages (from flask-wtf->changedetection.io)
(2.1.2)
Requirement already satisfied: beautifulsoup4 in
./.local/lib/python3.7/site-packages (from bs4->changedetection.io) (4.11.1)
Requirement already satisfied: trio~=0.17 in
./.local/lib/python3.7/site-packages (from selenium~=4.1.0->
changedetection.io) (0.21.0)
Requirement already satisfied: trio-websocket~=0.9 in
./.local/lib/python3.7/site-packages (from selenium~=4.1.0->
changedetection.io) (0.9.2)
Requirement already satisfied: aniso8601>=0.82 in
./.local/lib/python3.7/site-packages (from flask-restful->changedetection.io)
(9.0.1)
Requirement already satisfied: six>=1.3.0 in /usr/lib/python3/dist-packages
(from flask-restful->changedetection.io) (1.12.0)
Requirement already satisfied: idna<4,>=2.5 in
/usr/lib/python3/dist-packages (from requests[socks]~=2.26->
changedetection.io) (2.6)
Requirement already satisfied: charset-normalizer~=2.0.0 in
./.local/lib/python3.7/site-packages (from requests[socks]~=2.26->
changedetection.io) (2.0.12)
Requirement already satisfied: certifi>=2017.4.17 in
/usr/lib/python3/dist-packages (from requests[socks]~=2.26->
changedetection.io) (2018.8.24)
Requirement already satisfied: PySocks!=1.5.7,>=1.5.6; extra == "socks" in
./.local/lib/python3.7/site-packages (from requests[socks]~=2.26->
changedetection.io) (1.7.1)
Requirement already satisfied: MarkupSafe in
./.local/lib/python3.7/site-packages (from wtforms~=3.0->changedetection.io)
(2.1.1)
Requirement already satisfied: decorator>=3.4.0 in
./.local/lib/python3.7/site-packages (from validators->changedetection.io)
(5.1.1)
Requirement already satisfied: cffi>=1.12 in
./.local/lib/python3.7/site-packages (from cryptography~=3.4->
changedetection.io) (1.15.0)
Requirement already satisfied: ply in ./.local/lib/python3.7/site-packages
(from jsonpath-ng~=1.5.3->changedetection.io) (3.11)
Requirement already satisfied: dnspython>=1.15.0 in
./.local/lib/python3.7/site-packages (from eventlet>=0.31.0->
changedetection.io) (2.2.1)
Requirement already satisfied: greenlet>=0.3 in
./.local/lib/python3.7/site-packages (from eventlet>=0.31.0->
changedetection.io) (1.1.2)
Requirement already satisfied: python-dateutil in
./.local/lib/python3.7/site-packages (from feedgen~=0.9->changedetection.io)
(2.8.2)
Requirement already satisfied: markdown in
./.local/lib/python3.7/site-packages (from apprise~=0.9.9->
changedetection.io) (3.3.7)
Requirement already satisfied: click>=5.0 in
./.local/lib/python3.7/site-packages (from apprise~=0.9.9->
changedetection.io) (8.1.3)
Requirement already satisfied: PyYAML in /usr/lib/python3/dist-packages
(from apprise~=0.9.9->changedetection.io) (3.13)
Requirement already satisfied: requests-oauthlib in
./.local/lib/python3.7/site-packages (from apprise~=0.9.9->
changedetection.io) (1.3.1)
Requirement already satisfied: Jinja2>=3.0 in
./.local/lib/python3.7/site-packages (from flask~=2.0->changedetection.io)
(3.1.2)
Requirement already satisfied: importlib-metadata>=3.6.0; python_version <
"3.10" in ./.local/lib/python3.7/site-packages (from flask~=2.0->
changedetection.io) (4.11.4)
Requirement already satisfied: soupsieve>1.2 in
./.local/lib/python3.7/site-packages (from beautifulsoup4->bs4->
changedetection.io) (2.3.2.post1)
Requirement already satisfied: outcome in
./.local/lib/python3.7/site-packages (from trio~=0.17->selenium~=4.1.0->
changedetection.io) (1.2.0)
Requirement already satisfied: sortedcontainers in
./.local/lib/python3.7/site-packages (from trio~=0.17->selenium~=4.1.0->
changedetection.io) (2.4.0)
Requirement already satisfied: async-generator>=1.9 in
./.local/lib/python3.7/site-packages (from trio~=0.17->selenium~=4.1.0->
changedetection.io) (1.10)
Requirement already satisfied: attrs>=19.2.0 in
./.local/lib/python3.7/site-packages (from trio~=0.17->selenium~=4.1.0->
changedetection.io) (21.4.0)
Requirement already satisfied: sniffio in
./.local/lib/python3.7/site-packages (from trio~=0.17->selenium~=4.1.0->
changedetection.io) (1.2.0)
Requirement already satisfied: wsproto>=0.14 in
./.local/lib/python3.7/site-packages (from
trio-websocket~=0.9->selenium~=4.1.0->changedetection.io) (1.1.0)
Requirement already satisfied: pycparser in
./.local/lib/python3.7/site-packages (from cffi>=1.12->cryptography~=3.4->
changedetection.io) (2.21)
Requirement already satisfied: oauthlib>=3.0.0 in
./.local/lib/python3.7/site-packages (from
requests-oauthlib->apprise~=0.9.9->changedetection.io) (3.2.0)
Requirement already satisfied: zipp>=0.5 in
./.local/lib/python3.7/site-packages (from importlib-metadata>=3.6.0;
python_version < "3.10"->flask~=2.0->changedetection.io) (3.8.0)
Requirement already satisfied: typing-extensions>=3.6.4; python_version <
"3.8" in ./.local/lib/python3.7/site-packages (from
importlib-metadata>=3.6.0; python_version < "3.10"->flask~=2.0->
changedetection.io) (4.2.0)
Requirement already satisfied: h11<1,>=0.9.0 in
./.local/lib/python3.7/site-packages (from
wsproto>=0.14->trio-websocket~=0.9->selenium~=4.1.0->changedetection.io)
(0.13.0)
@.:~ $ changedetection.io -d /home/pi/changedetection -p 5000
Traceback (most recent call last):
File "/home/pi/.local/bin/changedetection.io", line 6, in
from changedetectionio.changedetection import main
File
"/home/pi/.local/lib/python3.7/site-packages/changedetectionio/init.py",
line 26, in
from feedgen.feed import FeedGenerator
File "/home/pi/.local/lib/python3.7/site-packages/feedgen/feed.py", line
17, in
from lxml import etree  # nosec - not using this for parsing
ImportError: libxslt.so.1: cannot open shared object file: No such file or
directory
@.:~ $ mkdir changedection
@.:~ $ changedetection.io -d /home/pi/changedetection -p 5000
Traceback (most recent call last):
File "/home/pi/.local/bin/changedetection.io", line 6, in
from changedetectionio.changedetection import main
File
"/home/pi/.local/lib/python3.7/site-packages/changedetectionio/init.py",
line 26, in
from feedgen.feed import FeedGenerator
File "/home/pi/.local/lib/python3.7/site-packages/feedgen/feed.py", line
17, in
from lxml import etree  # nosec - not using this for parsing
ImportError: libxslt.so.1: cannot open shared object file: No such file or
directory
On Wed, 22 Jun 2022 at 11:04, atpanos @.***> wrote:

wget http://ftp.us.debian.org/debian/pool/main/libs/libseccomp/libseccomp2_2.5.4-1_armhf.deb
sudo dpkg -i libseccomp2_2.5.4-1_armhf.deb
see also
https://github.com/dgtlmoon/changedetection.io/wiki/Troubleshooting#workaround-for-pyinit_main-cant-initialize-time-error-on-raspberry-pi
—
Reply to this email directly, view it on GitHub
https://github.com/dgtlmoon/changedetection.io/issues/694#issuecomment-1162844039,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACL4BBRVLFYHQ2Q4DS6ULSDVQLJK3ANCNFSM5Y2SWI5Q
.
You are receiving this because you authored the thread.Message ID:
@.***>

@luckormal that's a different issue... apt-get install libxslt1 -y does it help?

I try:
sudo apt-get install libxslt-dev
haha, and it works! Thanks a lot!
On Thu, 23 Jun 2022 at 10:22, dgtlmoon @.***> wrote:

@luckormal https://github.com/luckormal that's a different issue... apt-get
install libxslt1 -y does it help?
—
Reply to this email directly, view it on GitHub
https://github.com/dgtlmoon/changedetection.io/issues/694#issuecomment-1164106078,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACL4BBVV4M4HTTBWJICSIPTVQQNF3ANCNFSM5Y2SWI5Q
.
You are receiving this because you were mentioned.Message ID:
@.***>


Consider publishing archived design docs.

It looks like there are Dart design docs that are not publicly available. One example of that appears to be go/dart-vm-const-maps https://github.com/dart-lang/sdk/commit/6c4f9f0045ad7e00e364a91ee51989e29e928247.
Consider, for example, Flutter, which has a straightforward process for writing and publishing design docs in a way that makes them available to people outside of Google: https://docs.google.com/document/d/1SFRO8U2toOlAaZ38dsuEU7Wm5fn41wvBCWKiwADqfmw/edit.
I believe that the wider Dart community would also greatly benefit from having access to Dart-related design docs.
I'm assuming that there are many more design docs and so I wanted to ask if a process could be established for archiving design docs in a way that makes them available to the public.

@mraleph recently, you've asked on social media about what could be done to encourage more contributions. I think that publishing design docs would be helpful in that regard.

Quote from Chesterton’s Fence:

A core component of making great decisions is understanding the rationale behind previous decisions. If we don’t understand how we got “here,” we run the risk of making things much worse.

There exists in such a case a certain institution or law; let us say, for the sake of simplicity, a fence or gate erected across a road. The more modern type of reformer goes gaily up to it and says, “I don’t see the use of this; let us clear it away.” To which the more intelligent type of reformer will do well to answer: “If you don’t see the use of it, I certainly won’t let you clear it away. Go away and think.


Panic with an invalid AWS OCI URL for HelmRepository

Hi 👋
While playing around, I noticed this panic:
E0913 12:40:20.412216       1 runtime.go:79] Observed a panic: "invalid memory address or nil pointer dereference" (runtime error: invalid memory address or nil pointer dereference)
goroutine 523 [running]:
k8s.io/apimachinery/pkg/util/runtime.logPanic({0x4f08a0?, 0x3fd92a0})
	k8s.io/apimachinery@v0.25.0/pkg/util/runtime/runtime.go:75 +0x99
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile.func1()
	sigs.k8s.io/controller-runtime@v0.12.3/pkg/internal/controller/controller.go:110 +0xb9
panic({0x4f08a0, 0x3fd92a0})
	runtime/panic.go:838 +0x207
github.com/fluxcd/source-controller/internal/helm/registry.OIDCAdaptHelper({0x0?, 0x0?})
	github.com/fluxcd/source-controller/internal/helm/registry/auth.go:78 +0x22
github.com/fluxcd/source-controller/controllers.oidcAuthFromAdapter({0xe23c10, 0xc0009da420}, {0xc0009e6600, 0x32}, {0xc000d9b09c, 0x3})
	github.com/fluxcd/source-controller/controllers/helmrepository_controller_oci.go:387 +0x134
github.com/fluxcd/source-controller/controllers.(*HelmChartReconciler).buildFromHelmRepository(0xc0004fb380, {0xe23c48, 0xc029d00c60}, 0xc000d9c480, 0xc029d30000, 0xc0009da300)
	github.com/fluxcd/source-controller/controllers/helmchart_controller.go:520 +0xb35
github.com/fluxcd/source-controller/controllers.(*HelmChartReconciler).reconcileSource(0xc0004fb380, {0xe23c48, 0xc029d00c60}, 0xc000d9c480, 0xc0009da300)
	github.com/fluxcd/source-controller/controllers/helmchart_controller.go:439 +0x767
github.com/fluxcd/source-controller/controllers.(*HelmChartReconciler).reconcile(0xe36380?, {0xe23c48, 0xc029d00c60}, 0xc000d9c480, {0xc029d47c48, 0x3, 0x0?})
	github.com/fluxcd/source-controller/controllers/helmchart_controller.go:277 +0x1a4
github.com/fluxcd/source-controller/controllers.(*HelmChartReconciler).Reconcile(0xc0004fb380, {0xe23c48, 0xc029d00c60}, {{{0xc000e28a10?, 0x10?}, {0xc000594c78?, 0x21604c7?}}})
	github.com/fluxcd/source-controller/controllers/helmchart_controller.go:255 +0x55c
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile(0xe23ba0?, {0xe23c48?, 0xc029d00c60?}, {{{0xc000e28a10?, 0x7775a0?}, {0xc000594c78?, 0x21559f4?}}})
	sigs.k8s.io/controller-runtime@v0.12.3/pkg/internal/controller/controller.go:121 +0xc8
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler(0xc000b4d0e0, {0xe23ba0, 0xc0007cfa80}, {0x5bd3a0?, 0xc00007e600?})
	sigs.k8s.io/controller-runtime@v0.12.3/pkg/internal/controller/controller.go:320 +0x33c
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem(0xc000b4d0e0, {0xe23ba0, 0xc0007cfa80})
	sigs.k8s.io/controller-runtime@v0.12.3/pkg/internal/controller/controller.go:273 +0x1d9
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2()
	sigs.k8s.io/controller-runtime@v0.12.3/pkg/internal/controller/controller.go:234 +0x85
created by sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2
	sigs.k8s.io/controller-runtime@v0.12.3/pkg/internal/controller/controller.go:230 +0x325
{"level":"error","ts":"2022-09-13T12:40:20.412Z","msg":"Reconciler error","controller":"helmchart","controllerGroup":"source.toolkit.fluxcd.io","controllerKind":"HelmChart","helmChart":{"name":"flux-system-ms-test-afi","namespace":"flux-system"},"namespace":"flux-system","name":"flux-system-ms-test","reconcileID":"ab21fff2-de54-4187-ae2d-db775d4ecfaf","error":"panic: runtime error: invalid memory address or nil pointer dereference [recovered]"}

This can be replicated with v0.29.0 and the following HelmRepository:
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
  name: xxx
  namespace: flux-system
spec:
  interval: 10m
  provider: aws
  type: oci
  url: oci://<account>.dkr.ecr.<region>.amazonaws.com

The URL doesn't match the regex used in pkg/oci:
https://github.com/fluxcd/pkg/blob/dbad05cf95b380c6f619a9bf76dc755c6ff6e3cc/oci/auth/aws/auth.go#L36-L47
Which results in returning oci.ProviderGeneric which is handled by returning nil, nil later
This is obviously an invalid URL but the panic doesn't help to find the error, which can be handled here:
https://github.com/fluxcd/source-controller/blob/9e853a909d878d0c9faec11cf2c8cc41cdc9a1c9/controllers/helmrepository_controller_oci.go#L378-L386
L380, auth can be nil and is not checked. I'm up for a fix but which behavior would you like to have? Something like this maybe?
	if auth == nil {
		return nil, fmt.Errorf("could not validate OCI provider %s with URL %s", provider, url)
	}

Or update the behavior in pkg/oci instead to raise an error?

thanks for raising this @adrien-f. I think just adding the just is the way to go.

@adrien-f would you like to submit a PR fixing the issue?

I think we could return the error in the oidcAuth function, under the switch as default.

I think we could return the error in the oidcAuth function, under the switch as default.

This actually happens a bit later in login.NewManager().Login() in the ImageRegistryProvider(image, ref) swich here, if we want to catch this edge case before, we'd have to regex-match before and that's what this method does already.
I've attempted a PR in https://github.com/fluxcd/source-controller/pull/897 🤗

I'd prefer for login.NewManager().Login() to actually return either a non-nil error or a non-nil Authenticator but never both. However, I understand that OCIRepositoryReconciler currently relies on these semantics so I'm fine just fixing the immediate bug for now.


XSO Parser no longer displays the hard cap of an instance

Ever since the recent security updates, XSO log parser displays instance numbers as [x/0]

Yeah, seems the max isn't printed to the log anymore. I noticed, but haven't had the time yet to look further just yet. I'll either find another way, get it re-added, or remove the cap tracking when I get to it.


default process_exporter_names

For consideration.
While the default variable is empty, there is no config.yml file so no test coverage of that functionality.
We could follow the project documentation and set a non-empty default
The default config shipped with the deb/rpm packages is:
process_names:
  - name: "{{.Comm}}"
    cmdline:
    - '.+'

Or not.  I think it is an open design decision and don't mind either way.
In any case, this issue is now noted and is discoverable if related issues come up in future.
An alternative approach is to tweak the CI test env. Perhaps a non-empty default is simpler. Doing nothing is even simpler :-)

Usually we follow both paths at the same time in 2 separate test scenarios. First one is testing default settings without changing any variables and second one tries to change as many as possible. Both scenarios should give a working setup.
I would suggest to start with a default list which is also shipped with deb/rpm packages.
For a reference design in setting up test scenarios you can go to https://github.com/cloudalchemy/ansible-prometheus/tree/master/molecule

OK. I'll read more and work up a PR.

closed by applying #11 - which lists more detail


fix(Hydration): implement proper check for __asyncHydrate

Fixes #11793
Simply add a proper check on the existance of __asyncHydrate so that vue 3.5 and vue3-lazy-hydration can coexist until we get vue3-lazy-hydration up to date with the new hydration api

I’m not sure if this fix is necessary, but you make a good point.
It seems that vue3-lazy-hydration hasn’t been adapted for 3.5

https://github.com/vuejs/core/issues/11793#issuecomment-2331258965


fix error when x is a ndarray

Fix error in https://github.com/JuliaDiffEq/OrdinaryDiffEq.jl/blob/master/test/interface/ode_twodimlinear_tests.jl#L23

Can this get a test?


[DATACO-488]: Adding workflows to master

Closing, the logic works but going to revisit this after arch/logic for CICD for all branches is finalized