MeltanoLabs / tap-salesforce

Singer.io tap for the Salesforce API
GNU Affero General Public License v3.0
1 stars 30 forks source link

Version conflict in requests library (simple-salesforce dependency) #8

Closed MeltyBot closed 2 years ago

MeltyBot commented 4 years ago

Migrated from GitLab: https://gitlab.com/meltano/tap-salesforce/-/issues/9

Originally created by @aaronsteers on 2020-05-17 00:13:21


It looks like the simple-salesforce version requirements on the requests library were recently bumped to >=2.22 whereas this plugin requires ==2.20.

Compare:

This is causing execution to fail at runtime.

  File "/venv/tap-salesforce/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/venv/tap-salesforce/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/venv/tap-salesforce/lib/python3.7/site-packages/pkg_resources/__init__.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (requests 2.20.0 (/venv/tap-salesforce/lib/python3.7/site-packages), Requirement.parse('requests>=2.22.0'), {'simple-salesforce'})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/venv/tap-salesforce/tap-salesforce", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/venv/tap-salesforce/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3250, in <module>
    @_call_aside
  File "/venv/tap-salesforce/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside
    f(*args, **kwargs)
  File "/venv/tap-salesforce/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3263, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/venv/tap-salesforce/lib/python3.7/site-packages/pkg_resources/__init__.py", line 585, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/venv/tap-salesforce/lib/python3.7/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/venv/tap-salesforce/lib/python3.7/site-packages/pkg_resources/__init__.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (requests 2.20.0 (/venv/tap-salesforce/lib/python3.7/site-packages), Requirement.parse('requests>=2.22.0'), {'simple-salesforce'})
Traceback (most recent call last):
  File "/usr/local/bin/tapdance", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/site-packages/tapdance/cli.py", line 14, in main
    "build_image": build_image,
  File "/usr/local/lib/python3.7/site-packages/fire/core.py", line 138, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "/usr/local/lib/python3.7/site-packages/fire/core.py", line 468, in _Fire
    target=component.__name__)
  File "/usr/local/lib/python3.7/site-packages/fire/core.py", line 672, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/logless/main.py", line 407, in wrapped_fn
    result = fn(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/tapdance/taputils.py", line 328, in sync
    rescan=rescan,
  File "/usr/local/lib/python3.7/site-packages/logless/main.py", line 407, in wrapped_fn
    result = fn(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/tapdance/taputils.py", line 210, in plan
    _discover(tap_name, config_file, catalog_dir)
  File "/usr/local/lib/python3.7/site-packages/logless/main.py", line 407, in wrapped_fn
    result = fn(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/tapdance/taputils.py", line 422, in _discover
    runnow.run(f"tap-{tap_name} --config {config_file} --discover > {catalog_file}")
  File "/usr/local/lib/python3.7/site-packages/logless/main.py", line 407, in wrapped_fn
    result = fn(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/runnow/jobs.py", line 125, in run
    raise RuntimeError(err_msg)
MeltyBot commented 2 years ago

View 3 previous comments from the original issue on GitLab