harvard-nrg / lochness

Download your data to a data lake.
Other
5 stars 2 forks source link

sync cannot run with 0.8a version #4

Closed sguthrie closed 5 years ago

sguthrie commented 5 years ago
(/data/sbdp/etc/env/lochness-dev) [sg871@cmu011 erisone-cron-scripts]$ sync.py -c etc/lochness.yaml --debug
Traceback (most recent call last):
  File "/data/sbdp/etc/env/lochness-dev/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/data/sbdp/etc/env/lochness-dev/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/data/sbdp/etc/env/lochness-dev/lib/python3.7/site-packages/pkg_resources/__init__.py", line 791, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.VersionConflict: (lochness 0.8a0 (/data/sbdp/sw/lib/lochness), Requirement.parse('lochness==0.7a0'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/data/sbdp/etc/env/lochness-dev/bin/sync.py", line 4, in <module>
    __import__('pkg_resources').require('lochness==0.7a0')
  File "/data/sbdp/etc/env/lochness-dev/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3241, in <module>
    @_call_aside
  File "/data/sbdp/etc/env/lochness-dev/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3225, in _call_aside
    f(*args, **kwargs)
  File "/data/sbdp/etc/env/lochness-dev/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3254, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/data/sbdp/etc/env/lochness-dev/lib/python3.7/site-packages/pkg_resources/__init__.py", line 585, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/data/sbdp/etc/env/lochness-dev/lib/python3.7/site-packages/pkg_resources/__init__.py", line 598, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/data/sbdp/etc/env/lochness-dev/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'lochness==0.7a0' distribution was not found and is required by the application
sguthrie commented 5 years ago

Resolved by uninstalling and reinstalling lochness:

pip uninstall lochness
pip install -e /data/sbdp/sw/lib/lochness