Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tzlocal version conflict error #16

Open
AXington opened this issue Feb 12, 2020 · 1 comment
Open

tzlocal version conflict error #16

AXington opened this issue Feb 12, 2020 · 1 comment

Comments

@AXington
Copy link

Hi,

We just tried installing your plugin on our docker image, which is based on the nearly ubiquitous puckel docker image for airflow, and we're now getting the error following this description about a tzlocal version conflict. It's odd because I don't see where there's a requirement for tzlocal<2.0.0,>=1.4
anywhere in your code. Our application has a requirement of >= 2.0.0. So I'm a bit confused as to why we're seeing that when installing your plugin.

Airflow version: 1.10.6
base container: python:3.7.5-slim-buster
using the KubernetesExecutor with PythonOperator
airflow installed with these options/plugins: apache-airflow[crypto,postgres,hive,jdbc,kubernetes,statsd,ssh]

Traceback (most recent call last):
  File "/usr/local/bin/airflow", line 25, in <module>
    from airflow.configuration import conf
  File "/usr/local/lib/python3.7/site-packages/airflow/__init__.py", line 95, in <module>
    operators._integrate_plugins()
  File "/usr/local/lib/python3.7/site-packages/airflow/operators/__init__.py", line 104, in _integrate_plugins
    from airflow.plugins_manager import operators_modules
  File "/usr/local/lib/python3.7/site-packages/airflow/plugins_manager.py", line 167, in <module>
    plugins
  File "/usr/local/lib/python3.7/site-packages/airflow/plugins_manager.py", line 104, in load_entrypoint_plugins
    plugin_obj = entry_point.load()
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2369, in load
    self.require(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 2386, in require
    items = working_set.resolve(reqs, env, installer)
  File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 851, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (tzlocal 2.0.0 (/usr/local/lib/python3.7/site-packages), Requirement.parse('tzlocal<2.0.0,>=1.4'), {'apache-airflow'})
@abhishekray07
Copy link

I am not entirely sure why you have a tzlocal conflict. I don't think it is due to the airflow exporter. Maybe try to get into the docker container and do pip show tzlocal to see why this particular version is being installed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants