labstructbioinf / localpdb

Python package to manage protein structures and their annotations
MIT License
40 stars 5 forks source link

Add pandas version so that it matches localpdb requirements #36

Closed Rmadeye closed 1 year ago

Rmadeye commented 1 year ago
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 573, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 891, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 782, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (pandas 2.0.1 (/home/rmadeye/.local/lib/python3.10/site-packages), Requirement.parse('pandas<2,>=1'), {'localpdb'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/bin/ssaxgeo", line 4, in <module>
    __import__('pkg_resources').require('SSAxgeo==1.0.dev0')
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3267, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3241, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3279, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 575, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 588, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 782, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (pandas 2.0.1 (/home/rmadeye/.local/lib/python3.10/site-packages), Requirement.parse('pandas<2,>=1'), {'localpdb'})

One is required to install pandas in older version. While:

singularity exec ssaxgeo.sif pip3 install pandas==1.4.4

Will fix the problem, you should specify it for singularity building process