Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in running metaGEM.sh #107

Open
Poccia opened this issue Aug 24, 2022 · 0 comments
Open

Error in running metaGEM.sh #107

Poccia opened this issue Aug 24, 2022 · 0 comments
Assignees
Labels
maintenance Chores & tasks required for smooth operations

Comments

@Poccia
Copy link

Poccia commented Aug 24, 2022

After installing the pipeline through the manual installation guide (which worked better for me than the automatic installation), I was receiving the following error when trying the check with bash metaGEM.sh -t check:

Setting current directory to root in config.yaml file ... 

Checking if conda is available ... detected version 4.13.0!
Searching for metaGEM conda environment ... detected! Activating metagem env ... 

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run

    $ conda init <SHELL_NAME>

Currently supported shells are:
  - bash
  - fish
  - tcsh
  - xonsh
  - zsh
  - powershell

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'.


Searching for metaWRAP conda environment ... detected!
Searching for prokka-roary conda environment ... detected!

However, the problem seemed to be on the script, because I was able to execute conda activate normally. The source of the problem was on line 114 in metaGEM.sh, when the script calls conda activate metagem.

To solve this issue, first is important that you can call metagem env using conda activate metagem without the directly path to the env. I believe the best solution is to add the env directory locate inside metaGEM directory to the conda envs_dirs list with

conda config --append envs_dirs ~/metaGEM/envs

Then, to make sure the script will be able to use conda activate, following conda/conda#7980 (comment), I add source ~/anaconda3/etc/profile.d/conda.sh to the top of the metaGEM.sh script, just after #!/bin/bash. This made the script works perfectly.

@franciscozorrilla franciscozorrilla self-assigned this Sep 1, 2022
@franciscozorrilla franciscozorrilla added the maintenance Chores & tasks required for smooth operations label Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Chores & tasks required for smooth operations
Projects
None yet
Development

No branches or pull requests

2 participants