Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Docker and test errors related to conda, imageio_ffmpeg, and loci.formats #380

Merged
merged 5 commits into from
Dec 13, 2020

Conversation

jthetzel
Copy link
Contributor

@jthetzel jthetzel commented Nov 28, 2020

Atrribute name conflict mangling causes loci.formats.in to be renamed loci.formats.in_. Added try/except logic to use in_ if in fails with AttributeError.

pims.imageio_reader tests for the presence of ffmpeg executable by catching ImportError when importing imageio_ffmpeg. However, import of imageio_ffmpeg succeeds even when ffmpeg executable is not present. Added a call to imageio_ffmpeg.get_ffmpeg_exe to check if ffmpeg executable is present.

conda create creates the $HOME/.conda directory but does not prepend it to conda config. This might be an upstream bug in miniconda, but easily worked around by explicitly prepending local env_dirs and pkg_dirs in Dockerfile (see anaconda/docker-images#151 (comment) ).

Closes #377 and #379 .

`conda create` creates the $HOME/.conda directory but does
not prepend it conda config. Closes soft-matter#377
Attribute name automatically mangled due to conflict.
soft-matter#373 (comment)
Importing `imageio_ffmpeg` succeeds even if ffmpeg executable is not
available. This additional check is required when checking if
ffmpeg related tests should be skipped. Closes soft-matter#379.
@jthetzel jthetzel changed the title BLD: Fix build errors BLD: Fix build errors related to conda, imageio_ffmpeg, and loci.formats Nov 28, 2020
@jthetzel jthetzel changed the title BLD: Fix build errors related to conda, imageio_ffmpeg, and loci.formats BLD: Fix errors related to conda, imageio_ffmpeg, and loci.formats Nov 28, 2020
@jthetzel jthetzel changed the title BLD: Fix errors related to conda, imageio_ffmpeg, and loci.formats FIX: Docker and test errors related to conda, imageio_ffmpeg, and loci.formats Nov 28, 2020
@@ -15,6 +15,8 @@ USER pims
# Set up the initial conda environment
COPY --chown=pims:pims environment.yml /src/environment.yml
WORKDIR /src
RUN conda config --prepend envs_dirs $HOME/.conda/envs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for these, @jthetzel Build is working for me again locally 👍

@jthetzel
Copy link
Contributor Author

jthetzel commented Dec 8, 2020

@nkeim @GenevieveBuckley Any thoughts on how to improve this pull request? I believe future PRs are blocked until these build errors are addressed.

@nkeim
Copy link
Contributor

nkeim commented Dec 13, 2020

@jthetzel Thanks for this PR!! Those issues did not look particularly easy to track down. Sorry I've (we've) been away for awhile. It looks good to merge and I'm going ahead with it.

@nkeim nkeim merged commit a40fffe into soft-matter:master Dec 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docker build fails with conda permission error
3 participants