galaxyproject / galaxyproject/planemo

Need to reinstall planemo every time after using it

Open
#1,078 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
110
Forks
102
Avg merge
4d 21h
Merged PRs (30d)
13

Description

Here is what I did to setup planemo
- I created a conda environment with only Python 3.6 (`conda create -n planemo python=3.6`)
- I installed Planeno in it with pip (`pip install planemo`)

When I run Planeno for test (`planemo test --galaxy_python_version 3.6 --galaxy_branch release_20.05 .`), it works fine the 1st time (installing Galaxy, running the Galaxy and the tests). But if I run it a 2nd time, I got this error:

```
Traceback (most recent call last):
File "~/miniconda3/envs/planemo/bin/planemo", line 5, in
from planemo.cli import planemo
File "~/miniconda3/envs/planemo/lib/python3.6/site-packages/planemo/cli.py", line 11, in
from planemo.galaxy import profiles
File "~/miniconda3/envs/planemo/lib/python3.6/site-packages/planemo/galaxy/__init__.py", line 5, in
from .config import galaxy_config
File "~/miniconda3/envs/planemo/lib/python3.6/site-packages/planemo/galaxy/config.py", line 52, in
from .workflows import (
File "~/miniconda3/envs/planemo/lib/python3.6/site-packages/planemo/galaxy/workflows.py", line 12, in
from gxformat2.normalize import inputs_normalized, outputs_normalized
ImportError: cannot import name 'outputs_normalized'
```

If I reinstall Planeno with pip, it works again. And then the next time, same error. Need to reinstall Planeno.

It seems that a different version of `gxformat2` is reinstalled:

```
Installing collected packages: bioblend, gxformat2
Attempting uninstall: bioblend
Found existing installation: bioblend 0.13.0
Uninstalling bioblend-0.13.0:
Successfully uninstalled bioblend-0.13.0
Attempting uninstall: gxformat2
Found existing installation: gxformat2 0.11.3
Uninstalling gxformat2-0.11.3:
Successfully uninstalled gxformat2-0.11.3
Successfully installed bioblend-0.14.0 gxformat2-0.15.
```

Is it an expected behavior? Are Galaxy and Planemo using different versions of `gxformat2` and `gxformat2` is overwriting when Galaxy is installed during planemo test?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.