tag:help.appveyor.com,2012-11-13:/discussions/problems/24882-anaconda-upload-is-not-workingAppVeyor: Discussion 2019-10-30T21:01:53Ztag:help.appveyor.com,2012-11-13:Comment/475756522019-08-30T05:17:51Z2019-08-30T05:17:51Zanaconda upload is not working<div><p>Hi,</p>
<p>I can not figure out why anaconda upload is not working:<br>
<a href="https://github.com/GeoscienceAustralia/vaws/commit/b348688b5e4ebdc3abf8f039ef0972818a5c56cb">https://github.com/GeoscienceAustralia/vaws/commit/b348688b5e4ebdc3...</a><br>
anaconda -t %BINSTAR_TOKEN% upload %BUILT_PACKAGE% -u dynaryu<br>
usage: anaconda [-h] [--disable-ssl-warnings] [--show-traceback] [-v] [-q]<br>
[-V] [-t TOKEN] [-s SITE] anaconda: error: argument : invalid choice: 'C:\Miniconda36-x64\conda-bld\win-64\vaws-3.1-py36_1.tar.bz2' (choose from 'auth', 'label', 'channel', 'config', 'copy', 'download', 'groups', 'login', 'logout', 'move', 'notebook', 'package', 'remove', 'search', 'show', 'upload', 'whoami')</p>
<p>I tried moving '-u dynaryu' around still it does not work. Is it a conda problem? I don't have any problem in running from my windows machine.<br>
Thanks.</p>
<p>Regards,</p></div>dynaryutag:help.appveyor.com,2012-11-13:Comment/475756522019-08-30T10:58:30Z2019-08-30T10:58:30Zanaconda upload is not working<div><p>I figure out the error, as BINSTART_TOKEN is not recognized even it was defined the environment section. And If I put the real value of the TOKEN, it still does not upload the file to the anaconda channel.</p></div>dynaryutag:help.appveyor.com,2012-11-13:Comment/475756522019-08-30T17:01:39Z2019-08-30T17:01:39Zanaconda upload is not working<div><p>I've looked at your commits and builds history and I see that you tried a lot of things. I did not follow all iterations, but here are few things you should consider to make it work</p>
<ul>
<li>
<p>If you use both <code>Environment</code> tab in UI and YAML file to set a variable, <code>Environment</code> tab in UI takes over. So decide on a single method to set this specific environment variable.</p>
</li>
<li>
<p>If you use <code>Environment</code> tab in UI, and paste <strong>already encrypted</strong> value in it, and then press "lock", it becomes double-encrypted, and therefore decoded into wrong value at the build time. Regardless if you press "lock" or not, you have to enter <strong>clear text</strong> value to <code>Environment</code> tab in UI.</p>
</li>
<li>
<p>if you use YAML, ensure you encrypted <strong>clear text</strong> value at <a href="https://ci.appveyor.com/account/dynaryu/tools/encrypt">https://ci.appveyor.com/account/dynaryu/tools/encrypt</a>. It is critical to ensure that you are logged into <code>dynaryu</code> account (you see it on the upper left screen corner near AppVeyor logo). In case you encrypt value being logged under some different AppVeyor account, it will not be decoded during build which runs under <code>dynaryu</code> account.</p>
</li>
<li>
<p>Seems that <code>anaconda</code> writes its output to stdErr, which make custom PowerShell host AppVeyor runs in fail. So you only <code>cmd</code> for it (<code>- ps: cmd /c</code> will not help).</p>
</li>
</ul></div>Ilya Finkelshteyn