使用conda env上传时出错

时间:2017-06-21 23:33:18

标签: anaconda conda

我最近重新安装了Anaconda,我目前无法将环境上传到Anaconda云帐户,收到以下错误:

$ conda env upload --file c:/users/mweber/temp/StreamCat.yml

使用Anaconda API:https://api.anaconda.org 将环境StreamCat上传到anaconda-server(https://api.anaconda.org)... 发生意外的错误。 请考虑将以下信息发布到 conda GitHub问题跟踪器:

https://github.com/conda/conda/issues

目前的conda安装:

           platform : win-64
      conda version : 4.3.21
   conda is private : False
  conda-env version : 4.3.21
conda-build version : 1.20.0
     python version : 2.7.13.final.0
   requests version : 2.13.0
   root environment : f:\Continuum\Anaconda2  (writable)
default environment : f:\Continuum\Anaconda2
   envs directories : f:\Continuum\Anaconda2\envs
                      C:\Users\mweber\AppData\Local\conda\conda\envs
                      c:\Users\mweber\.conda\envs
      package cache : f:\Continuum\Anaconda2\pkgs
                      C:\Users\mweber\AppData\Local\conda\conda\pkgs
       channel URLs : https://conda.anaconda.org/conda-forge/win-64
                      https://conda.anaconda.org/conda-forge/noarch
                      https://repo.continuum.io/pkgs/free/win-64
                      https://repo.continuum.io/pkgs/free/noarch
                      https://repo.continuum.io/pkgs/r/win-64
                      https://repo.continuum.io/pkgs/r/noarch
                      https://repo.continuum.io/pkgs/pro/win-64
                      https://repo.continuum.io/pkgs/pro/noarch
                      https://repo.continuum.io/pkgs/msys2/win-64
                      https://repo.continuum.io/pkgs/msys2/noarch
        config file : c:\Users\mweber\.condarc
         netrc file : None
       offline mode : False
         user-agent : conda/4.3.21 requests/2.13.0 CPython/2.7.13 Windows/7 Windows/6.1.7601
      administrator : False

$ f:\Continuum\Anaconda2\Scripts\conda-env-script.py upload --file c:/users/mweber/temp/StreamCat.yml

Traceback (most recent call last):
  File "f:\Continuum\Anaconda2\lib\site-packages\conda\exceptions.py", line 632, in conda_exception_handler
    return_value = func(*args, **kwargs)
  File "f:\Continuum\Anaconda2\lib\site-packages\conda_env\cli\main_upload.py", line 101, in execute
    info = uploader.upload()
  File "f:\Continuum\Anaconda2\lib\site-packages\conda_env\utils\uploader.py", line 81, in upload
    if self.is_ready():
  File "f:\Continuum\Anaconda2\lib\site-packages\conda_env\utils\uploader.py", line 94, in is_ready
    return self.ensure_package_namespace() and self.ensure_distribution()
  File "f:\Continuum\Anaconda2\lib\site-packages\conda_env\utils\uploader.py", line 109, in ensure_package_namespace
    self.binstar.add_release(self.username, self.packagename, self.version, {}, '', '')
  File "f:\Continuum\Anaconda2\lib\site-packages\binstar_client\__init__.py", line 417, in add_release
    self._check_response(res)
  File "f:\Continuum\Anaconda2\lib\site-packages\binstar_client\__init__.py", line 216, in _check_response
    raise ErrCls(msg, res.status_code)
BinstarError: (u'Bad Request: Bad request syntax or unsupported method ([POST] https://api.anaconda.org/release/mweber36/StreamCat/2017.06.21.1612 -> 400)', 400)

我能够从其他用户的计算机上传确切的环境.yml文件,但是我在win-64和ubuntu-64平台上都遇到了这个错误,其中包含类似的conda install,如上所示。任何建议都非常感谢 - 发布到conda GitHub问题跟踪器的问题。

0 个答案:

没有答案