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

Version conflict while installing click for Tabulo #25

Open
gurjotcrossml opened this issue Jan 18, 2022 · 1 comment
Open

Version conflict while installing click for Tabulo #25

gurjotcrossml opened this issue Jan 18, 2022 · 1 comment

Comments

@gurjotcrossml
Copy link

While running the tabulo --help , I am encountering the following error.
There seem to be a conflict between the two libraries, where each library want some specific version of click. I have downloaded both versions of click, i.e. 6.7 and 7.1.2. but still encountering error.

Traceback (most recent call last):
  File "/home/gurjot/Tabulo/tabenv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/home/gurjot/Tabulo/tabenv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/home/gurjot/Tabulo/tabenv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (click 6.7 (/home/gurjot/Tabulo/tabenv/lib/python3.8/site-packages), Requirement.parse('click>=7.1.2'), {'Flask'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/gurjot/Tabulo/tabenv/bin/tabulo", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/home/gurjot/Tabulo/tabenv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3252, in <module>
    def _initialize_master_working_set():
  File "/home/gurjot/Tabulo/tabenv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3235, in _call_aside
    f(*args, **kwargs)
  File "/home/gurjot/Tabulo/tabenv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3264, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/home/gurjot/Tabulo/tabenv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 585, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/home/gurjot/Tabulo/tabenv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/home/gurjot/Tabulo/tabenv/lib/python3.8/site-packages/pkg_resources/__init__.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (click 6.7 (/home/gurjot/Tabulo/tabenv/lib/python3.8/site-packages), Requirement.parse('click>=7.1.2'), {'Flask'})
@marc-philipp-knechtle
Copy link

Hi, i had the same issue. This was caused by your python version using the latest available Flask package.
(From your output, it's visible that you use python3.8 which isn't supposed to be used anyway, I used python3.6).
There is no upper bound in setup.py specified which is the reason why python installs the latest package.
I solved this issue by adding a concrete range to the setup.py file for click. In my case it was Flask>=0.12,<2.0.0.
I hope this solves your issue.

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