bio2bel/reactome

Upgrade to PyBEL 14 / Bio2BEL 3

cthoyt opened this issue · 1 comments

Blocked by:

Hi folks,

bio2bel_reactome depends on compath and bio2bel_chebi but each package depends on different incompatible versions of pybel:

bash$ pip install --upgrade bio2bel_reactome compath bio2bel_chebi
Requirement already up-to-date: bio2bel_reactome in /Users/zuck016/.pyenv/versions/anaconda3-2019.10/lib/python3.7/site-packages (0.2.4.dev0)
tmapper->pyobo>=0.1.1->bio2bel>=0.2.1->bio2bel_reactome) (0.15.2)
...
ERROR: pybel-jupyter 0.3.0 has requirement pybel>=0.14.7, but you'll have pybel 0.14.1 which is incompatible.
ERROR: covid19kg 0.0.1 has requirement bel-repository==0.1.0, but you'll have bel-repository 0.1.1 which is incompatible.
ERROR: covid19kg 0.0.1 has requirement pybel>=0.14.6, but you'll have pybel 0.14.1 which is incompatible.
ERROR: compath 0.1.3.dev0 has requirement bio2bel==0.2.1, but you'll have bio2bel 0.3.6 which is incompatible.
ERROR: compath 0.1.3.dev0 has requirement flask==1.0.2, but you'll have flask 1.1.1 which is incompatible.
ERROR: compath 0.1.3.dev0 has requirement pybel==0.13.2, but you'll have pybel 0.14.1 which is incompatible.
ERROR: compath 0.1.3.dev0 has requirement sqlalchemy==1.3.3, but you'll have sqlalchemy 1.3.8 which is incompatible.
ERROR: bio2bel-chebi 0.2.2.dev0 has requirement bio2bel<0.3.0,>=0.2.0, but you'll have bio2bel 0.3.6 which is incompatible.
ERROR: bio2bel-chebi 0.2.2.dev0 has requirement pybel<0.14.0,>=0.13.1, but you'll have pybel 0.14.1 which is incompatible.
ERROR: bel-repository 0.1.1 has requirement pybel<0.15.0,>=0.14.8, but you'll have pybel 0.14.1 which is incompatible.
ERROR: bio2bel-wikipathways 0.2.4.dev0 has requirement bio2bel<0.3.0,>=0.2.0, but you'll have bio2bel 0.3.6 which is incompatible.
ERROR: bio2bel-wikipathways 0.2.4.dev0 has requirement pybel<0.14.0,>=0.13.1, but you'll have pybel 0.14.1 which is incompatible.
Installing collected packages: pybel
  Attempting uninstall: pybel
    Found existing installation: pybel 0.14.9
    Uninstalling pybel-0.14.9:
      Successfully uninstalled pybel-0.14.9
Successfully installed pybel-0.14.1

As a result, I can't get bio2bel reactome to run:

bash-3.2$ bio2bel_reactome populate
Traceback (most recent call last):
  File "/Users/zuck016/.pyenv/versions/anaconda3-2019.10/bin/bio2bel_reactome", line 10, in <module>
    sys.exit(main())
  File "/Users/zuck016/.pyenv/versions/anaconda3-2019.10/lib/python3.7/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/Users/zuck016/.pyenv/versions/anaconda3-2019.10/lib/python3.7/site-packages/click/core.py", line 717, in main
    rv = self.invoke(ctx)
  File "/Users/zuck016/.pyenv/versions/anaconda3-2019.10/lib/python3.7/site-packages/click/core.py", line 1134, in invoke
    Command.invoke(self, ctx)
  File "/Users/zuck016/.pyenv/versions/anaconda3-2019.10/lib/python3.7/site-packages/click/core.py", line 956, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/zuck016/.pyenv/versions/anaconda3-2019.10/lib/python3.7/site-packages/click/core.py", line 555, in invoke
    return callback(*args, **kwargs)
  File "/Users/zuck016/.pyenv/versions/anaconda3-2019.10/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/zuck016/.pyenv/versions/anaconda3-2019.10/lib/python3.7/site-packages/bio2bel/manager/cli_manager.py", line 38, in main
    ctx.obj = cls(connection=connection)
  File "/Users/zuck016/.pyenv/versions/anaconda3-2019.10/lib/python3.7/site-packages/bio2bel_reactome/manager.py", line 45, in __init__
    super().__init__(*args, **kwargs)
  File "/Users/zuck016/.pyenv/versions/anaconda3-2019.10/lib/python3.7/site-packages/compath_utils/manager.py", line 46, in __init__
    raise TypeError(f'{self.pathway_model} should inherit from {CompathPathwayMixin}')
TypeError: <class 'bio2bel_reactome.models.Pathway'> should inherit from <class 'compath_utils.models.CompathPathwayMixin'>
bash-3.2$ 

It seems like @cthoyt is aware of this problem. Is there anyone who has the time/motivation to upgrade these packages?