{"action":"opened","issue":{"url":"https://api.github.com/repos/satellogic/open-impact/issues/4","repository_url":"https://api.github.com/repos/satellogic/open-impact","labels_url":"https://api.github.com/repos/satellogic/open-impact/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/satellogic/open-impact/issues/4/comments","events_url":"https://api.github.com/repos/satellogic/open-impact/issues/4/events","html_url":"https://github.com/satellogic/open-impact/issues/4","id":308910853,"number":4,"title":"conda environment is not shareable","user":{"login":"Juanlu001","id":316517,"avatar_url":"https://avatars2.githubusercontent.com/u/316517?v=4","gravatar_id":"","url":"https://api.github.com/users/Juanlu001","html_url":"https://github.com/Juanlu001","followers_url":"https://api.github.com/users/Juanlu001/followers","following_url":"https://api.github.com/users/Juanlu001/following{/other_user}","gists_url":"https://api.github.com/users/Juanlu001/gists{/gist_id}","starred_url":"https://api.github.com/users/Juanlu001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Juanlu001/subscriptions","organizations_url":"https://api.github.com/users/Juanlu001/orgs","repos_url":"https://api.github.com/users/Juanlu001/repos","events_url":"https://api.github.com/users/Juanlu001/events{/privacy}","received_events_url":"https://api.github.com/users/Juanlu001/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-27T10:28:06Z","updated_at":"2018-03-27T10:28:06Z","closed_at":null,"author_association":"NONE","body":"I had to make these changes to `environment.yml` to make it work on Linux:\r\n\r\n```diff\r\ndiff --git a/environment.yml b/environment.yml\r\nindex 454b974..dd853dd 100644\r\n--- a/environment.yml\r\n+++ b/environment.yml\r\n@@ -4,7 +4,6 @@ channels:\r\n - defaults\r\n dependencies:\r\n - affine=2.2.0=py_0\r\n-- appnope=0.1.0=py36_0\r\n - asn1crypto=0.24.0=py36_0\r\n - attrs=17.4.0=py_0\r\n - backports=1.0=py36_1\r\n@@ -120,7 +119,7 @@ dependencies:\r\n - pytz=2018.3=py_0\r\n - pywavelets=0.5.2=py36_1\r\n - pyzmq=17.0.0=py36_3\r\n-- qt=5.6.2=h9e3eb04_4\r\n+- qt=5.6.2\r\n - qtconsole=4.3.1=py36_0\r\n - rasterio=0.36.0=py36_3\r\n - readline=7.0=0\r\n@@ -151,12 +150,9 @@ dependencies:\r\n - xz=5.2.3=0\r\n - zeromq=4.2.3=2\r\n - zlib=1.2.11=0\r\n-- anaconda=custom=py36ha4fed55_0\r\n - intel-openmp=2018.0.0=8\r\n-- libgfortran=3.0.1=h93005f0_2\r\n-- mkl=2018.0.2=1\r\n-- numpy=1.14.2=py36ha9ae307_0\r\n-- scipy=1.0.0=py36h1de22e9_0\r\n+- numpy=1.14.2\r\n+- scipy=1.0.0\r\n - pip:\r\n   - backports.functools-lru-cache==1.5\r\n   - dask==0.17.2\r\n```\r\n\r\nThe reason is that, since the introduction of newer conda versions, `environment.yml` files are no longer cross platform by default:\r\n\r\nhttps://github.com/conda/conda/issues/6220\r\n\r\n(Other related issues: https://github.com/conda/conda/issues/1033 https://github.com/ContinuumIO/anaconda-issues/issues/546)\r\n\r\nThe solution is to export the environment with the `--no-builds` flag, which needs conda >= 4.3.31 to work. _However_, be careful with which conda version you use because now conda-forge is in an \"everything is broken\" state which hopefully will go away soon, but not before AnacondaCON https://github.com/conda-forge/conda-feedstock/issues/43\r\n\r\nSo my advice is to use this in the meanwhile:\r\n\r\n```\r\n$ conda install \"conda<4.4\" -c conda-forge\r\n```\r\n\r\nAs a last note, there's an open issue about pip packages in `environment.yml` files https://github.com/conda/conda/issues/5901 that might end up in broken installations, so my advice is to remove them from the `environment.yml` file and tell the users to install them manually after creating the environment.\r\n\r\nNobody said it would be easy :)"}}
{"actor":{"display_login":"Juanlu001"}}