Traceback (most recent call last):


 "/usr/lib/python3/dist-packages/spyderlib/spyder.py", line 2331, in main

mainwindow = run_spyder(app, options, args)


 "/usr/lib/python3/dist-packages/spyderlib/spyder.py", line 2215, in run_spyder

main.setup()


 "/usr/lib/python3/dist-packages/spyderlib/spyder.py", line 752, in setup

from spyderlib.plugins.inspector import ObjectInspector


 "/usr/lib/python3/dist-packages/spyderlib/plugins/inspector.py", line 41, in <module>

from spyderlib.widgets.ipython import IPythonControlWidget


 "/usr/lib/python3/dist-packages/spyderlib/widgets/ipython.py", line 28, in <module>

pygments_patch.apply()


 "/usr/lib/python3/dist-packages/spyderlib/pygments_patch.py", line 22, in apply

from pygments.lexer import _TokenType, Text, Error


 "/usr/lib/python3/dist-packages/pygments/lexer.py", line 19, in <module>

from pygments.filters import get_filter_by_name


 "/usr/lib/python3/dist-packages/pygments/filters/__init__.py", line 20, in <module>

from pygments.plugin import find_plugin_filters


 "/usr/lib/python3/dist-packages/pygments/plugin.py", line 39, in <module>

import pkg_resources


 "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2927, in <module>

@_call_aside


 "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2913, in _call_aside

f(*args, **kwargs)


 "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2952, in _initialize_master_working_set

add_activation_listener(lambda dist: dist.activate())


 "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 956, in subscribe

callback(dist)


 "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2952, in <lambda>

add_activation_listener(lambda dist: dist.activate())


 "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2515, in activate

declare_namespace(pkg)


 "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2097, in declare_namespace

_handle_ns(packageName, path_item)


 "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2047, in _handle_ns

_rebuild_mod_path(path, packageName, module)


 "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2066, in _rebuild_mod_path

orig_path.sort(key=position_in_sys_path)
AttributeError: '_NamespacePath' object has no attribute 'sort'

Traceback (most recent call last):


 "/opt/app-root/lib64/python3.8/site-packages/airflow/jobs/scheduler_job.py", line 1382, in _execute

self._execute_helper()


 "/opt/app-root/lib64/python3.8/site-packages/airflow/jobs/scheduler_job.py", line 1453, in _execute_helper

if not self._validate_and_run_task_instances(simple_dag_bag=simple_dag_bag):


 "/opt/app-root/lib64/python3.8/site-packages/airflow/jobs/scheduler_job.py", line 1515, in _validate_and_run_task_instances

self.executor.heartbeat()


 "/opt/app-root/lib64/python3.8/site-packages/airflow/executors/base_executor.py", line 134, in heartbeat

self.sync()


 "/opt/app-root/lib64/python3.8/site-packages/airflow/executors/kubernetes_executor.py", line 832, in sync

self.kube_scheduler.run_next(task)


 "/opt/app-root/lib64/python3.8/site-packages/airflow/executors/kubernetes_executor.py", line 436, in run_next

pod = PodGenerator.construct_pod(


 "/opt/app-root/lib64/python3.8/site-packages/airflow/kubernetes/pod_generator.py", line 564, in construct_pod

return reduce(PodGenerator.reconcile_pods, pod_list)


 "/opt/app-root/lib64/python3.8/site-packages/airflow/kubernetes/pod_generator.py", line 429, in reconcile_pods

client_pod_cp.spec = PodGenerator.reconcile_specs(base_pod.spec, client_pod_cp.spec)


 "/opt/app-root/lib64/python3.8/site-packages/airflow/kubernetes/pod_generator.py", line 475, in reconcile_specs

client_spec.containers = PodGenerator.reconcile_containers(


 "/opt/app-root/lib64/python3.8/site-packages/airflow/kubernetes/pod_generator.py", line 509, in reconcile_containers

client_container = extend_object_field(base_container, client_container, 'env_from')


 "/opt/app-root/lib64/python3.8/site-packages/airflow/kubernetes/pod_generator.py", line 647, in extend_object_field

base_obj_set = _get_dict_from_list(base_obj_field, field_to_merge)


 "/opt/app-root/lib64/python3.8/site-packages/airflow/kubernetes/pod_generator.py", line 676, in _get_dict_from_list

result[getattr(obj, field_to_merge)] = obj
AttributeError: 'V1EnvFromSource' object has no attribute 'name'
