FXIhub / condor

Condor: a simulation tool for flash X-ray imaging
http://lmb.icm.uu.se/condor
BSD 2-Clause "Simplified" License
25 stars 14 forks source link

Make condor a conda package #13

Open mhantke opened 6 years ago

daurer commented 6 years ago

I guess we could create an fxihub account on https://anaconda.org/ and create our own fxihub channel (https://conda.io/docs/user-guide/tasks/create-custom-channels.html) to where we could upload different software projects as conda packages?

angeloziletti commented 6 years ago

Is this already completed?

I found this page: https://anaconda.org/filipemaia/condor

However, $ conda install -c filipemaia condor fails for me with:

Solving environment: failed PackagesNotFoundError: The following packages are not available from current channels:

  • condor

I have Ubuntu 16.04.4 LTS.

Thanks in advance for your time.

mhantke commented 6 years ago

Not completed yet... We are still working on this. But good to know that there is interest.

FilipeMaia commented 6 years ago

Having the package without libspimage could be done relatively soon I think. The libspimage part is more tricky...

FilipeMaia commented 6 years ago

@angeloziletti There are now packages for linux-64 and osx-64. It would be great to know if they work for you. They however no not have libspimage or spsim. Windows packages are currently impossible as some dependencies (e.g. nfft) do not have Windows packages.

angeloziletti commented 6 years ago

Thanks for your reply and your work.

I tried again: $ conda install -c filipemaia condor

And then I get:

Solving environment: failed

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

I am using Ubuntu 16.04 and Python 2.7, maybe that is the issue.

I should point out that my interest in having condor as conda package (together with its dependencies libspimage and spsim) is that it would make Docker files and Continuous Integration much easier for codes that use condor. The condor package itself is very easy to install automatically, while installing libspimage and spsim automatically can be tricky (and I need them because I use condor for crystal structures).

I know that this is a lot of work, so I understand if it cannot be done.

Thanks again for your help.

FilipeMaia commented 6 years ago

Is the system 32 or 64 bits? And nfft is available from conda-forge: https://anaconda.org/conda-forge/nfft

FilipeMaia commented 6 years ago

And you're probably right about Python 2.7 being an issue. Can you try with Python 3?

angeloziletti commented 6 years ago

I have a 64 bits system. I have tried with python3 and it still does not work. I am not sure, maybe I have a broken conda installation.

FilipeMaia commented 6 years ago

Can you install nfft alone? conda install -c conda-force nfft

What version of python3 do you have?

angeloziletti commented 6 years ago

Ok, I think we a working solution for python3.

If one first install nfft, and then condor:

conda install -c conda-forge nfft conda install -c filipemaia condor

the installation works. This procedure works for the both python3 version I tried (Python 3.6.6 and Python 3.4.5). Installing condor without first installing nfft fails with the same error as described above.

With python2.7, the same procedure

conda install -c conda-forge nfft conda install -c filipemaia condor

gives me the following error:

Solving environment: failed UnsatisfiableError: The following specifications were found to be in conflict:

FilipeMaia commented 6 years ago

Just to clarify the error happens when you do the conda install -c filipemaia condor not the conda install -c conda-forge nfft, correct?

angeloziletti commented 6 years ago

The error happens if one tries to install condor without installing nfft first.

One needs first to install nfft conda install -c conda-forge nfft and then install condor: conda install -c filipemaia condor

Installing condor without first installing nfft will results in an error.

FilipeMaia commented 4 years ago

The correct fix should have been:

conda install -c conda-forge -c filipemaia condor

In other developments, a conda package with libspimage will soon be ready.