-
Notifications
You must be signed in to change notification settings - Fork 33
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
libmamba Non-conda folder exists at prefix #222
Comments
Hi Jiarong, Best, |
Sorry, I was quite busy last week. |
Seeing this also on a fresh env. After failed installs, there's a In any case: doing all of the below:
allowed setup to complete, but does not allow
|
I have solved the problem by mamually mamba install all packages |
@joelive glad it works! My comment above doesn't allow you to run virsorter, as it still attempts a |
@ALL, I just had chance to test this. It looks like the new mamba version 2 is the issue. You can change to mamba version 1 to resolve this issue.
|
thanks @jiarong thanks for the solution! I was able to install your app and run it! |
Hello @jiarong I have installed vs2 using mamba (ver 1.5.9) /storage/home/svg5863/miniforge3/envs/vs2/bin/virsorter setup -d db -j 4 |
@sohini5981 Have you tried the solution here ? #222 (comment) I had a smilar issue to what you're describing and this resolved my issue. I would start with that! |
Right, it's the same issue. The trick is to change mamba within the VS2 env. The problem is the mamba within the VS2 env, not the mamba in your base env. |
Thank you all for addressing the issue. I did change the mamba ver within
the vs2 env. It did not help. Hence, I used the aptainer method to install
the whole thing. That worked and hopefully now I will be able to run it.
Thank you all.
…On Fri, Nov 22, 2024, 7:39 PM jiarong ***@***.***> wrote:
@sohini5981 <https://github.com/sohini5981> Have you tried the solution
here ? #222 (comment)
<#222 (comment)>
I had a smilar issue to what you're describing and this resolved my issue.
I would start with that!
Right, it's the same issue. The trick is to change mamba within the VS2
env. The problem is the mamba within the VS2 env, not the mamba in your
base env.
—
Reply to this email directly, view it on GitHub
<#222 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJXQUR3ATFKP4AYKA2UA2BD2B7FFBAVCNFSM6AAAAABQQCTYRCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJVGE2TGMZTG4>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@ALL, I have fixed this issue in bioconda version. Just upgarde and you should be able to run w/o manually downgrading mamba to v1. |
@jiarong thanks for posting the solution about downgrading mamba when facing libmamba Non-conda folder exists at prefix Error! It worked also for issues not related to VirStorter2, but to Metagenome atlas as well! |
Thank you for the fix. any idea hopw this could be permanently solved. libmamba v1 is no longer maintained and eventually we should swicht to v2.. |
My understanding is that the issue is caused by the incompatibility between snakemake and mamba2. We can switch back to conda since it's conda's resolver is pretty decent now, or just wait till snakemake resolve the issue with mamba2. |
When I run the virsorter setup command, it always report error.
(virsort2) bo@bioinofo2:~$ virsorter setup -d virsorter_db/
[2024-10-24 02:47 INFO] VirSorter 2.2.4
[2024-10-24 02:47 INFO] /home/bo/miniconda3/envs/virsort2/bin/virsorter setup -d virsorter_db/
[2024-10-24 02:47 INFO] Setting up VirSorter2 database; this might take ~10 mins and only needs to be done once.
[2024-10-24 02:47 INFO] saving /home/bo/virsorter_db as DBDIR to config file /home/bo/miniconda3/envs/virsort2/lib/python3.10/site-packages/virsorter/template-config.yaml
CreateCondaEnvironmentException:
Could not create conda environment from /home/bo/miniconda3/envs/virsort2/lib/python3.10/site-packages/virsorter/rules/../envs/vs2.yaml:
error libmamba Non-conda folder exists at prefix
critical libmamba Aborting.
File "/home/bo/miniconda3/envs/virsort2/lib/python3.10/site-packages/snakemake/deployment/conda.py", line 350, in create
[2024-10-24 02:47 ERROR] CreateCondaEnvironmentException:
Could not create conda environment from /home/bo/miniconda3/envs/virsort2/lib/python3.10/site-packages/virsorter/rules/../envs/vs2.yaml:
error libmamba Non-conda folder exists at prefix
critical libmamba Aborting.
File "/home/bo/miniconda3/envs/virsort2/lib/python3.10/site-packages/snakemake/deployment/conda.py", line 350, in create
[2024-10-24 02:47 INFO] First attempt failed; trying the second time.
CreateCondaEnvironmentException:
Could not create conda environment from /home/bo/miniconda3/envs/virsort2/lib/python3.10/site-packages/virsorter/rules/../envs/vs2.yaml:
error libmamba Non-conda folder exists at prefix
critical libmamba Aborting.
File "/home/bo/miniconda3/envs/virsort2/lib/python3.10/site-packages/snakemake/deployment/conda.py", line 350, in create
[2024-10-24 02:47 CRITICAL] Command 'snakemake --snakefile /home/bo/miniconda3/envs/virsort2/lib/python3.10/site-packages/virsorter/rules/setup-retry.smk --directory /home/bo/virsorter_db --quiet --config Skip_deps_install=False --jobs 64 --rerun-incomplete --latency-wait 600 --nolock --use-conda --conda-prefix /home/bo/virsorter_db/conda_envs --conda-frontend mamba ' returned non-zero exit status 1.
The text was updated successfully, but these errors were encountered: