Closed GeoMicroSoares closed 4 years ago
Hey
So this sounds like a snakemake/conda issue rather than a MAGpy one, but I can try and help out
Are you running snakemake from within an env? If you type "which conda" into the terminal does it still point to your old miniconda? Can you create the ete3 environment yourself? i.e.
conda env create -f MAGpy/envs/ete3.yaml
Unfortunately conda has become quite unstable recently
Hey there @mw55309 , thanks for the help.
Running snakemake from the magpy_install environment created with the 10min install yep.
All you asked for seems to make sense:
$which conda
/home/andre/miniconda3/envs/magpy_install/bin/conda
$ conda env create -f MAGpy/envs/ete3.yaml
Collecting package metadata: done
Solving environment: done
Downloading and Extracting Packages
numpy-1.16.2 | 4.3 MB | ########################################################################################## | 100%
setuptools-40.8.0 | 625 KB | ########################################################################################## | 100%
certifi-2019.3.9 | 149 KB | ########################################################################################## | 100%
six-1.12.0 | 22 KB | ########################################################################################## | 100%
gobject-introspectio | 1.2 MB | ########################################################################################## | 100%
pip-19.0.3 | 1.8 MB | ########################################################################################## | 100%
lxml-4.3.2 | 1.5 MB | ########################################################################################## | 100%
sip-4.18.1 | 277 KB | ########################################################################################## | 100%
pyqt-5.6.0 | 5.4 MB | ########################################################################################## | 100%
wheel-0.33.1 | 34 KB | ########################################################################################## | 100%
scipy-1.2.1 | 17.7 MB | ########################################################################################## | 100%
python-3.7.1 | 36.4 MB | ########################################################################################## | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# $ conda activate ete3
#
# To deactivate an active environment, use
#
# $ conda deactivate
I suspect the failure might have been a one-off conda gremlin - might be worth trying again?
How is your $HOME/.condarc? I am not sure where Snakemake is picking up your old conda environment from, but it might worth removing any reference to your miniconda2 installation in the .condarc
Tried it again with the same result... Weirdly enough, no .condarc around here! Should I create one?
There is definitely something weird going on in your set up in that both the envs and packages directories are pointing to your miniconda2 environment:
__root environment : /home/andre/miniconda2 (read only)__
default environment : /home/andre/miniconda3/envs/magpy_install
envs directories : /home/andre/.conda/envs
__/home/andre/miniconda2/envs__
package cache : __/home/andre/miniconda2/pkgs__
/home/andre/.conda/pkgs
I don't really know what to do here as this isn't a MAGpy issue, it is some weird Snakemake/Conda issue
condarc is supposed to tell conda where to store envs, where to download packages, what channels to use etc
https://docs.conda.io/projects/conda/en/latest/user-guide/configuration/use-condarc.html
The issue is if you begin f*cking with conda, all your other envs might get messed up
Can you run MAGpy as a different user? (with a clean conda install?)
Yeah, proper weird stuff. I'll try and get some help from them somehow. Looking forward to solving this and trying out MAGpy though. Thought of creating something like a docker image to run MAGpy? Might be good to avoid all the conda-related problems for example. All the best!
*Edit, didn't see your second reply!
I'll try giving the docs a look and running it as a different user yep - thanks!
Hi there,
Managed to follow the 10min install and complete it but get to test the install with
snakemake --use-conda -s MAGpy test
and get the following:So not only is it unable to get permission to certain folders, it's also weirdly calling my old miniconda2 install during this. Any help?