mustache icon indicating copy to clipboard operation
mustache copied to clipboard

tag latest versions

Open jowodo opened this issue 2 years ago • 2 comments

Hi

it would be great if you could tag the latest versions on github such that they match with the pypi versions. This allows to download from github with a specified version number:

VERSION=1.0.1
conda env create --name mustache-$VERSION -f https://raw.githubusercontent.com/ay-lab/mustache/v$VERSION/environment.yml
conda activate mustache-$VERSION 
pip install mustache-hic==$VERSION 

At the moment 1.0.1 is the highest installable version from github. If i load directly from master/main, the version is not strictly specified and I could run into development bugs more easily.

Thanks a lot!

jowodo avatar Jun 09 '23 08:06 jowodo

I noticed that Version 1.0.1 does not include diff_mustache.py. That means that my options are now:

  • create conda environment according to latest master branch commit
  • create conda environment according to version 1.0.1

Both are suboptimal in my view.

jowodo avatar Jun 09 '23 12:06 jowodo

The latest environment.yaml is flawed and a lot of packages are interpreted as channels ... https://github.com/ay-lab/mustache/commit/63bc67afcae784701f4502f2929f031ac88a948c?diff=unified lines 5-24 are the problem. When I use the environment.yaml file from the master branch and remove the 19 or so problematic line, I manage to install, but as soon I want to execute diff_mustache.py, I get this error:

# INSTALLTION
VERSION=1.3.1
git clone https://github.com/ay-lab/mustache.git
vim mustache/environment.yaml # delete lines
conda env create --name mustache-$VERSION -f mustache/environment.yml
conda activate mustache-$VERSION
pip install -U mustache-hic==$VERSION
ln -s ${CONDA_PREFIX}/lib/python3.8/site-packages/mustache/*mustache.py ${CONDA_PREFIX}/bin
chmod +x ${CONDA_PREFIX}/lib/python3.8/site-packages/mustache/*mustache.py
# TESTING
$ diff_mustache.py -h
Traceback (most recent call last):
  File "/home/apps/conda/miniconda3/envs/mustache-1.3.1/bin/diff_mustache.py", line 14, in <module>
    import hicstraw
ImportError: /lib64/libk5crypto.so.3: undefined symbol: EVP_KDF_ctrl, version OPENSSL_1_1_1b

mustache.py and mustache give similar errors. When installing version 1.0.1 as mentioned in the first post, mustache works.

I further noticed, that in the pip segment of the environment.yaml file: mustache-hic==0.1.9. Shouldn't this be 1.3.1?

jowodo avatar Jun 09 '23 12:06 jowodo