Hi,
Following the instructions on the ncbi website I installed Entrez Direct on my computer (MacOS). When I run the ncbi-provided script to confirm the installation in a new terminal everything is fine. But when I enter the bioinfo environment (after "conda activate bioinfo") I cannot confirm the installation:
$ cat installconfirm
***********************
esearch version:
11.0
xtract version:
EDirect install status:
***********************
(bioinfo)
and xtract gives the following error message:
$ xtract -version
-bash: /Users/myUserName/miniconda3/envs/bioinfo/bin/xtract: cannot execute binary file
(bioinfo)
If anyone knows a solution to this problem it would be of great help.
PS: echo $PATH has the ~/edirect folder
1 answer
The xtract command was rewritten in GO and it looks like the conda installation packages the wrong version of it but only in build pl526_1.
I have opened an issue with conda:
https://github.com/bioconda/bioconda-recipes/issues/20083
The binary versions for xtract are listed here:
Here is a quick and dirty fix on a Mac:
URL=https://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/xtract.Darwin
curl $URL > `which xtract`
this will rewrite your copy of xtract with the proper binary version
Log in to answer this question.
what are you trying with this command:
xtract -version | echo?Should have been just: xtract -version Same issue
If you installed
entrezutilsin regular terminal (outside conda) then why are trying to run them from a conda environment?If you want to install inside your conda environment then do
once you activate that environment.
This didn't work for me and the issue is still the same
This is what I get:
Perhaps conda's macOS install for Entrezdirect is broken? In a fresh terminal (while not in a conda env) are you able to run
which esearchandesearch -h?I ran both commands in a fresh terminal (not in conda env)
"$ esearch -h" opened the help page
Precision: esearch works in the conda env, but not xtract