cgat-developers / cgat-apps

cgat-apps repository
Other
33 stars 14 forks source link

Exception: Problem running command: conda info --json #32

Closed sandbardev closed 5 years ago

sandbardev commented 5 years ago

Currently running Linux Mint 18.3 on XFCE. I believe the error message is self-explanatory.

Installing cgat script to /home/sand/cgat-install/conda-install/envs/cgat-a/bin

Installed /home/sand/cgat-install/cgat-apps Processing dependencies for cgat==0.5.3 Finished processing dependencies for cgat==0.5.3 Traceback (most recent call last): File "scripts/conda.py", line 47, in (out, err) = run_command(statement) File "scripts/conda.py", line 41, in run_command raise Exception(issue) Exception: Problem running command: conda info --json Stderr was: b'/bin/bash: /home/sand/cgat-install/conda-install/envs/cgat-a/lib/libtinfo.so.5: no version >information available (required by /bin/bash)\n'

##########################################################

An error occurred in:

  • line number: 418
  • exit status: 1
  • command: python scripts/conda.py

The script will abort now. User input was:

./install.sh --devel

Please copy and paste this error and report it via Git Hub: https://github.com/cgat-developers/cgat-apps/issues

Debugging: CFLAGS: -I/home/sand/cgat-install/conda-install/envs/cgat-a/include -L/home/sand/cgat-install/conda-install/envs/cgat-a/lib CPATH: -I/home/sand/cgat-install/conda-install/envs/cgat-a/include -L/home/sand/cgat-install/conda-install/envs/cgat-a/lib C_INCLUDE_PATH: :/home/sand/cgat-install/conda-install/envs/cgat-a/include CPLUS_INCLUDE_PATH: :/home/sand/cgat-install/conda-install/envs/cgat-a/include LIBRARY_PATH: :/home/sand/cgat-install/conda-install/envs/cgat-a/lib LD_LIBRARY_PATH: :/home/sand/cgat-install/conda-install/envs/cgat-a/lib:/home/sand/cgat-install/conda-install/envs/cgat-a/lib/R/lib CGAT_HOME: /home/sand/cgat-install CONDA_INSTALL_DIR: /home/sand/cgat-install/conda-install CONDA_INSTALL_TYPE_APPS: apps-devel.yml CONDA_INSTALL_TYPE_CORE: core-devel.yml CONDA_INSTALL_ENV: cgat-a PYTHONPATH: INSTALL_BRANCH: master CORE_BRANCH: master RELEASE: CODE_DOWNLOAD_TYPE: 0

##########################################################

Acribbs commented 5 years ago

Hi,

We have not tested the installation script on this version of Linux and it’s not clear from the log report what the obvious issue is. My first thought was that your LD_LIBRARY_PATH wasn’t set correctly but it seems as though it is.

Could you try installing the —production version of the code using the install script.

Alternatively, could you try conda install cgat-scripts to install the code.

sandbardev commented 5 years ago

Conda install does not seem to find the cgat-scripts packages. I tried

conda install cgat-scripts

as well as the the specific command on https://anaconda.org/bioconda/cgat-scripts

conda install -c bioconda cgat-scripts

and it resulted in

(cgat-scripts[v0.3.2]) sand@aspire-E5-571 ~ $ conda install -c bioconda cgat-scripts Solving environment: failed

PackagesNotFoundError: The following packages are not available from current channels:

  • cgat-scripts
  • python-lzo=1.11
  • cgat-scripts
  • bioconductor-ihw==1.2.0
  • r-fdrtool
  • cgat-scripts
  • ggplot==0.6.8
  • brewer2mpl

Current channels:

To search for alternate channels that may provide the conda package you're looking for, navigate to

https://anaconda.org

and use the search bar at the top of the page.

Am I missing any repositories here? I also tried running the script with the --production parameter to which it yielded this:

Installed /home/sand/cgat-install/cgat-apps Processing dependencies for cgat==0.5.3 Finished processing dependencies for cgat==0.5.3 Traceback (most recent call last): File "scripts/conda.py", line 47, in (out, err) = run_command(statement) File "scripts/conda.py", line 41, in run_command raise Exception(issue) Exception: Problem running command: conda info --json Stderr was: b'/bin/bash: /home/sand/cgat-install/conda-install/envs/cgat-a/lib/libtinfo.so.5: no version >information available (required by /bin/bash)\n'

##########################################################

An error occurred in:

  • line number: 418
  • exit status: 1
  • command: python scripts/conda.py

The script will abort now. User input was:

./install.sh --production

Please copy and paste this error and report it via Git Hub: https://github.com/cgat-developers/cgat-apps/issues

Debugging: CFLAGS: -I/home/sand/cgat-install/conda-install/envs/cgat-a/include -L/home/sand/cgat-install/conda-install/envs/cgat-a/lib CPATH: -I/home/sand/cgat-install/conda-install/envs/cgat-a/include -L/home/sand/cgat-install/conda-install/envs/cgat-a/lib C_INCLUDE_PATH: :/home/sand/cgat-install/conda-install/envs/cgat-a/include CPLUS_INCLUDE_PATH: :/home/sand/cgat-install/conda-install/envs/cgat-a/include LIBRARY_PATH: :/home/sand/cgat-install/conda-install/envs/cgat-a/lib LD_LIBRARY_PATH: :/home/sand/cgat-install/conda-install/envs/cgat-a/lib:/home/sand/cgat-install/conda-install/envs/cgat-a/lib/R/lib CGAT_HOME: /home/sand/cgat-install CONDA_INSTALL_DIR: /home/sand/cgat-install/conda-install CONDA_INSTALL_TYPE_APPS: apps-production.yml CONDA_INSTALL_TYPE_CORE: core-production.yml CONDA_INSTALL_ENV: cgat-a PYTHONPATH: INSTALL_BRANCH: master CORE_BRANCH: master RELEASE: CODE_DOWNLOAD_TYPE: 0

##########################################################

Acribbs commented 5 years ago

Hmm, i have just tested the installation on OSX and redhat luinx and all seems to work well. Can you run the command:

conda config --show-sources and

conda config --show

Also, did you install using a clean environment?

Thanks

sandbardev commented 5 years ago

Yes, I did install using a clean environment. Interestingly, I exclusively managed to install the last repository(CGATOxford) in an OS identical to this one, which if exactly why I insisted on using Linux Mint 18.3 for this. Anyway, the output for the commands is as follows:

(cgat-apps) sand@aspire-E5-571 ~ $ conda config --show-sources

(cgat-apps) sand@aspire-E5-571 ~ $ conda config --show add_anaconda_token: True add_pip_as_python_dependency: True aggressive_update_packages:

I never needed to specifically add any external sources to perform conda installations, which I assume is why the output for the first command is empty.

sebastian-luna-valero commented 5 years ago

Hi,

The problem seems to occur when pinning the environment: https://github.com/cgat-developers/cgat-apps/blob/master/install.sh#L417

That wasn't performed in the CGATOxford installation.

Now that we have moved cgat-apps to bioconda: http://bioconda.github.io/recipes/cgat-apps/README.html

Can I suggest that you try that instead, please?

Best regards, Sebastian

sebastian-luna-valero commented 5 years ago

Please re-open if needed.