-
Notifications
You must be signed in to change notification settings - Fork 67
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
Conversation
`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.
fb2a1ff
to
37bf918
Compare
@@ -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 |
There was a problem hiding this comment.
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 👍
@nkeim @GenevieveBuckley Any thoughts on how to improve this pull request? I believe future PRs are blocked until these build errors are addressed. |
@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. |
Atrribute name conflict mangling causes
loci.formats.in
to be renamedloci.formats.in_
. Added try/except logic to usein_
ifin
fails withAttributeError
.pims.imageio_reader
tests for the presence of ffmpeg executable by catchingImportError
when importingimageio_ffmpeg
. However, import ofimageio_ffmpeg
succeeds even when ffmpeg executable is not present. Added a call toimageio_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 localenv_dirs
andpkg_dirs
in Dockerfile (see anaconda/docker-images#151 (comment) ).Closes #377 and #379 .