Open josephdviviano opened 5 months ago
Got same error using pyenv (Linux).
@josephdviviano, you can refer to issue #31.
In my case I installed muscle with my package manager (sudo apt install muscle
; in your case you could use brew
) and updated the path as described in the last comment in #31 (build_pipeline/FormatAlignments.py:181
; in your case build_pipeline/FormatAlignments.py:179
) with the path of the new muscle installation (sh: echo $(which muscle)
).
Currently, I'm just testing anarci
locally. But bug (? -> already mentioned in several issues; @broncio123) could make deployment pipeline of apps using anarci
as dependency more complicated than necessary. Instead of installing it with a deployment script, like pip install git+https://github.com/oxpig/ANARCI
, one would need to clone the repo manually, inspect the target system / container image, update named path, and copy again the cloned and updated repo into the target image.
This bug is weird, since this repo includes a copy of muscle (bin/muscle
and bin/muscle_macOS
), and after installing anarci (modification above required), which muscle
now points my pyenv dir (${HOME}/.pyenv/shims/muscle
), which should have derived from the copy of muscle in this repo. Why is bin/muscle
not correctly used from the beginning in setup.py? Using the new copy in shims seems to work correctly.
Referencing the path to the muscle
binary included in the repo in build_pipeline/FormatAlignments.py:181
lead to initial error.
@broncio123 , I did further installation tests on my system by deleting and recreating my virtual environment. IMHO, muscle
could be listed as a requirement for the installation of anarci
as currently are hmmer
and biopython
.
I left build_pipeline/FormatAlignments.py:181
as it initially was, but deleted the muscle
binaries included in bin/
and updated setup.py:49
to data_files = [ ('bin', ['bin/ANARCI']) ],
. Now, the installation of muscle
in my system is correctly recognized during setup and I can install anarci
without errors.
Steps (Linux):
sudo apt install hmmer muscle
git clone https://github.com/oxpig/ANARCI.git anarci
cd anarci
# update `setup.py:49` -> `data_files = [ ('bin', ['bin/ANARCI']) ],`
# ---
# install pyenv -- not required, but is what I use locally. To be tested with --user/global installation or venv
pyenv install 3.11.7
pyenv virtualenv 3.11.7 anarci
pyenv activate anarci
# ---
pip install openmm biopython
python setup.py install
Hello, I'm unable to install this tool. Please advise.