Closed gwarmstrong closed 4 years ago
Just noting for anyone else who runs into this problem -- as a band-aid solution, you can install songbird via pip
and that should circumvent this problem.
edit: As a more lasting solution, Songbird's conda-forge recipe should be updated: both to be consistent with the setup.py stuff, and to remove unneeded things (I don't think ipython
is explicitly required by Songbird, for example). See #45.
@gwarmstrong when you get a chance could you check that the new conda recipe fixes the problem for you?
Update, I got around to testing the newest recipe on Q2 2020.2. It now installs correctly (:D), but I got a weird "version conflict" error about TensorFlow -- this was resolvable by just pip-installing TensorFlow 1.15.2 directly.
TLDR, this error (which is different from the ones documented earlier in this thread ._.) happens because the new conda-forge recipe installs TF v1.15.0 -- this is the latest 1.x version of TF on conda that I could find. This is as expected, but it looks like Python/conda/etc. detects that songbird's setup.py
asks for TF >= 1.15.2 (because we can do that on pip, since this version is on pip and earlier versions of TF 1.15.x have a small security problem that was fixed in 1.15.2) and then notices that 1.15.0 is less than 1.15.2 and then explodes.
So the way to fix this new error long-term would be downgrading the minimum TF version in setup.py
, but of course this would miss out on the security fixes from 1.15.2. Ugh.
(in any case, things are easier to handle now)
Thanks for all the work on this!! Sorry I hadn’t gotten around to trying it yet. Wait, why not pin the tf version to >=1.15.2 in the conda build?
I think doing that will cause different problems, since TF version >= 1.15.2, <2
isn't installable at all through conda at present. Leaving out the , <2
part of that will get rid of the errors (yay) and tell conda to install TF 2.x (:thinking:), which should work with songbird but may cause other problems... hence the struggle.
Update, I got around to testing the newest recipe on Q2 2020.2. It now installs correctly (:D), but I got a weird "version conflict" error about TensorFlow -- this was resolvable by just pip-installing TensorFlow 1.15.2 directly.
TLDR, this error (which is different from the ones documented earlier in this thread ._.) happens because the new conda-forge recipe installs TF v1.15.0 -- this is the latest 1.x version of TF on conda that I could find. This is as expected, but it looks like Python/conda/etc. detects that songbird's
setup.py
asks for TF >= 1.15.2 (because we can do that on pip, since this version is on pip and earlier versions of TF 1.15.x have a small security problem that was fixed in 1.15.2) and then notices that 1.15.0 is less than 1.15.2 and then explodes.So the way to fix this new error long-term would be downgrading the minimum TF version in
setup.py
, but of course this would miss out on the security fixes from 1.15.2. Ugh.(in any case, things are easier to handle now)
Was able to recreate this.
So currently it seems the
conda-forge
build ofsongbird=1.0.2
andqiime2-2020.2
are unsatisfiable.Steps to recreate