galaxyproject / galaxyproject/planemo

Issue with Python based tools if conda base environment is activated by default

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

Description

Hi,

I had an issue to test/serve tools which needs Python libraries (e.g. Scanpy, Anndata, Table compute on IUC):

https://gist.github.com/bebatut/f31bdb9342c5032e2c49a0580ec3eaa8

The tools were failing because the needed Python libraries were not found. But if we go inside the conda environment created by Galaxy (mulled-…) and start python, the libraries are there.
Nothing interesting was in the log mentioning that the conda environment was not loaded.

After different tests (different versions of Planemo, conda, Galaxy), I found out that if I remove conda from the path and I do not have the conda base environment activated by default, I can test/serve the tools.

Any idea why?
Thanks

Bérénice

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the failure described in the linked gist through Planemo's test and serve entry points, comparing behavior with and without conda on PATH and the base environment activated. Trace how the Galaxy-created mulled environment is selected and report or correct the environment handling so libraries such as Scanpy and Anndata are found consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.