Creating conda environment from environment.yml file not working

1,562 views
Skip to first unread message

Vedrana Krivokuca

unread,
Oct 25, 2017, 3:22:23 AM10/25/17
to bob-devel
Hi everyone,

I created a conda environment for my paper package as follows:

conda create -n bob.paper.isba2018_entropy.env --override-channels -c https://www.idiap.ch/software/bob/conda -c defaults python=2.7 bob-extras=2017.10.22 zc.buildout

Then I activated my environment:

source activate bob.paper.isba2018_entropy.env

Then I exported the environment to an environment.yml file:

conda env export > environment.yml

This was all packaged into a PyPI package.  Then I tried to install everything from scratch on my laptop, from the PyPI package, to see what it might be like for a user of my package.  I did the following:

1.) Installed Miniconda (32-bit, Python 2.7, Linux)
2.) Unzipped the package and cd into the working dir
3.) conda env create -f environment.yml

Here the problems started.  I keep getting "ResolvePackageNotFound".  At first I thought I'd just remove the offending packages, but then it came to the "bob.bio.vein" package, which I obviously need, so I can't get rid of it!  I've been trying to look up how to resolve this but I haven't found anything that works for me yet.  Any ideas?

Vedrana Krivokuca

unread,
Oct 25, 2017, 3:34:05 AM10/25/17
to bob-devel
Interestingly, if I try to create the environment on my laptop using

conda create -n test --override-channels -c https://www.idiap.ch/software/bob/conda -c defaults python=2.7 bob-extras=2017.10.22 zc.buildout

I get "PackageNotFoundError: Packages missing in current channels: bob-extras 2017.10.22"

Is bob-extras not available for linux-32?  I ask because it says that it tried to find the package in https://www.idiap.ch/software/bob/conda/linux-32

Vedrana Krivokuca

unread,
Oct 25, 2017, 3:36:13 AM10/25/17
to bob-devel
... and linux32 directory does not even exist in https://www.idiap.ch/software/bob/conda/ ............

André Anjos

unread,
Oct 25, 2017, 3:54:10 AM10/25/17
to bob-...@googlegroups.com
You're right. We don't support 32-bit installations. Andre

--
-- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/
---
You received this message because you are subscribed to the Google Groups "bob-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Dr. André Anjos
Idiap Research Institute
Centre du Parc - rue Marconi 19
CH-1920 Martigny, Suisse
Phone: +41 27 721 7763
Fax: +41 27 721 7712
http://andreanjos.org

Vedrana Krivokuca

unread,
Oct 25, 2017, 4:26:50 AM10/25/17
to bob-devel
Are you planning to support them in the future, or should I specify in the paper package that it will only work for 64-bit architectures?


On Wednesday, 25 October 2017 09:54:10 UTC+2, André Anjos wrote:
You're right. We don't support 32-bit installations. Andre
On Wed, Oct 25, 2017 at 9:36 AM, Vedrana Krivokuca <ved...@gmail.com> wrote:
... and linux32 directory does not even exist in https://www.idiap.ch/software/bob/conda/ ............


On Wednesday, 25 October 2017 09:34:05 UTC+2, Vedrana Krivokuca wrote:
Interestingly, if I try to create the environment on my laptop using

conda create -n test --override-channels -c https://www.idiap.ch/software/bob/conda -c defaults python=2.7 bob-extras=2017.10.22 zc.buildout

I get "PackageNotFoundError: Packages missing in current channels: bob-extras 2017.10.22"

Is bob-extras not available for linux-32?  I ask because it says that it tried to find the package in https://www.idiap.ch/software/bob/conda/linux-32

On Wednesday, 25 October 2017 09:22:23 UTC+2, Vedrana Krivokuca wrote:
Hi everyone,

I created a conda environment for my paper package as follows:

conda create -n bob.paper.isba2018_entropy.env --override-channels -c https://www.idiap.ch/software/bob/conda -c defaults python=2.7 bob-extras=2017.10.22 zc.buildout

Then I activated my environment:

source activate bob.paper.isba2018_entropy.env

Then I exported the environment to an environment.yml file:

conda env export > environment.yml

This was all packaged into a PyPI package.  Then I tried to install everything from scratch on my laptop, from the PyPI package, to see what it might be like for a user of my package.  I did the following:

1.) Installed Miniconda (32-bit, Python 2.7, Linux)
2.) Unzipped the package and cd into the working dir
3.) conda env create -f environment.yml

Here the problems started.  I keep getting "ResolvePackageNotFound".  At first I thought I'd just remove the offending packages, but then it came to the "bob.bio.vein" package, which I obviously need, so I can't get rid of it!  I've been trying to look up how to resolve this but I haven't found anything that works for me yet.  Any ideas?

--
-- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+...@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/

---
You received this message because you are subscribed to the Google Groups "bob-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

André Anjos

unread,
Oct 25, 2017, 4:28:19 AM10/25/17
to bob-...@googlegroups.com
This is clearly marked on the installation instructions: https://www.idiap.ch/software/bob/docs/bob/bob/stable/install.html

Don't you point to that? Andre

--
-- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/

---
You received this message because you are subscribed to the Google Groups "bob-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Amir Mohammadi

unread,
Oct 25, 2017, 4:31:58 AM10/25/17
to bob-...@googlegroups.com

Hi Vedrana,

Any recent PC supports 64-bit computing.
Bob does compile and run in 32-bit when installed from source (tested on raspberry pi).

But again, for paper packages you want to make sure others have the same exact setup. So you need to ask them to run the experiments of your paper in a 64-bit Linux machine.

Best,
Amir

Vedrana Krivokuca

unread,
Oct 25, 2017, 4:35:33 AM10/25/17
to bob-devel
I don't point to that because I'm asking the user to create the conda environment from environment.yml, whereas this link does not mention that.

Vedrana Krivokuca

unread,
Oct 25, 2017, 4:38:22 AM10/25/17
to bob-devel
Hi Amir,

Yes, my laptop is currently set up with 32-bit Linux and I am unable to create the required conda environment, so I will have to specify that the paper package is meant to be run on 64-bit Linux.

André Anjos

unread,
Oct 25, 2017, 4:40:21 AM10/25/17
to bob-...@googlegroups.com
Then you should specify the same as is written on the documentation. Andre

--
-- You received this message because you are subscribed to the Google Groups bob-devel group. To post to this group, send email to bob-...@googlegroups.com. To unsubscribe from this group, send email to bob-devel+unsubscribe@googlegroups.com. For more options, visit this group at https://groups.google.com/d/forum/bob-devel or directly the project website at http://idiap.github.com/bob/

---
You received this message because you are subscribed to the Google Groups "bob-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bob-devel+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages