Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/276.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
travis ci基于Python3.4构建六个urllib赢得';安装_Python_Pip_Travis Ci_Urllib_Six - Fatal编程技术网

travis ci基于Python3.4构建六个urllib赢得';安装

travis ci基于Python3.4构建六个urllib赢得';安装,python,pip,travis-ci,urllib,six,Python,Pip,Travis Ci,Urllib,Six,我有一个go项目,它有一个Python 3.4依赖项(外部命令)。我有一套叫做reqs.txt的需求。我使用virtualenv来确保我在自己的venv中,因此我可以安装依赖项 我收到以下错误(完整日志如下): 这是令人沮丧的,因为就在这一行之前,安装了six软件包 My.travis.yml文件 特拉维斯日志 $pip安装-r cmd/refframes/reqs.txt 您使用的是pip版本6.0.7,但版本9.0.1可用。 您应该考虑通过“PIP安装升级PIP”命令进行升级。 收集appd

我有一个go项目,它有一个Python 3.4依赖项(外部命令)。我有一套叫做
reqs.txt
的需求。我使用virtualenv来确保我在自己的venv中,因此我可以安装依赖项

我收到以下错误(完整日志如下):

这是令人沮丧的,因为就在这一行之前,安装了
six
软件包

My.travis.yml文件 特拉维斯日志
$pip安装-r cmd/refframes/reqs.txt
您使用的是pip版本6.0.7,但版本9.0.1可用。
您应该考虑通过“PIP安装升级PIP”命令进行升级。
收集appdirs==1.4.0(来自-r cmd/refframes/reqs.txt(第1行))
下载appdirs-1.4.0-py2.py3-none-any.whl
收集numpy==1.12.0(来自-r cmd/refframes/reqs.txt(第2行))
下载numpy-1.12.0.zip(4.8MB)
100%|#####################################
从numpy源目录运行。
收集包装==16.8(来自-r cmd/refframes/reqs.txt(第3行))
下载packaging-16.8-py2.py3-none-any.whl
收集py==1.4.32(来自-r cmd/refframes/reqs.txt(第4行))
下载py-1.4.32-py2.py3-none-any.whl(82kB)
100%|#####################################
收集pyparsing==2.1.10(来自-r cmd/refframes/reqs.txt(第5行))
下载pyparsing-2.1.10-py2.py3-none-any.whl(56kB)
100%|#####################################
收集pytest==3.0.6(来自-r cmd/refframes/reqs.txt(第6行))
下载pytest-3.0.6-py2.py3-none-any.whl(172kB)
100%|#####################################
收集六个==1.10.0(来自-r cmd/refframes/reqs.txt(第7行))
下载six-1.10.0-py2.py3-none-any.whl
收集spiceypy==1.1.0(来自-r cmd/refframes/reqs.txt(第8行))
下载spiceypy-1.1.0.tar.gz(213kB)
100%|##########################
回溯(最近一次呼叫最后一次):
文件“”,第20行,在
文件“/tmp/pip-build-l48p479i/spiceypy/setup.py”,第5行,在
进口香料
文件“/tmp/pip-build-l48p479i/spiceypy/getspice.py”,第13行,in
将six.moves.urllib作为urllib导入
ImportError:没有名为“six”的模块
从命令python setup.py egg_info完成输出:
回溯(最近一次呼叫最后一次):
文件“”,第20行,在
文件“/tmp/pip-build-l48p479i/spiceypy/setup.py”,第5行,在
进口香料
文件“/tmp/pip-build-l48p479i/spiceypy/getspice.py”,第13行,in
将six.moves.urllib作为urllib导入
ImportError:没有名为“six”的模块
----------------------------------------
命令“python setup.py egg_info”失败,错误代码为1,位于/tmp/pip-build-l48p479i/spiceypy中
命令“pip install-r cmd/refframes/reqs.txt”失败,在运行期间以1退出。
您的生成已停止。

解决方案是要求在其他python要求之前安装
six
。不知道为什么,但这是有效的

这是我更新的
.travis.yml
文件:

language: go
go:
  - 1.7
addons:
  apt:
    sources:
      - deadsnakes # source required so it finds the package definition below
    packages:
      - python3.4
      - python3.4-dev
before_install:
  - go get github.com/axw/gocov/gocov
  - go get github.com/mattn/goveralls
  - if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
  - sudo pip install virtualenv
  - virtualenv -p `which python3.4` .venv
  - source .venv/bin/activate
  - python -V
  - pip -V
  - pip install six
  - pip install -r cmd/refframes/reqs.txt
  - wget -O cmd/refframes/spicekernels/de430.bsp https://naif.jpl.nasa.gov/pub/naif/generic_kernels/spk/planets/de430.bsp
script:
  - python cmd/refframes/tests.py
  - go test -v -timeout=30m -covermode=count -coverprofile=coverage.out
  - $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci
env:
  - SMD_CONFIG=./
sudo: required
language: go
go:
  - 1.7
addons:
  apt:
    sources:
      - deadsnakes # source required so it finds the package definition below
    packages:
      - python3.4
before_install:
  - go get github.com/axw/gocov/gocov
  - go get github.com/mattn/goveralls
  - if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
  - sudo pip install virtualenv
  - virtualenv -p `which python3.4` .venv
  - source .venv/bin/activate
  - python -V
  - pip -V
  - pip install -r cmd/refframes/reqs.txt
  - wget -O cmd/refframes/spicekernels/de430.bsp https://naif.jpl.nasa.gov/pub/naif/generic_kernels/spk/planets/de430.bsp
script:
  - python cmd/refframes/tests.py
  - go test -v -timeout=30m -covermode=count -coverprofile=coverage.out
  #- $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci
  - $HOME/gopath/bin/goveralls -package github.com/ChristopherRabotin/smd -service=travis-ci
$ pip install -r cmd/refframes/reqs.txt
You are using pip version 6.0.7, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting appdirs==1.4.0 (from -r cmd/refframes/reqs.txt (line 1))
  Downloading appdirs-1.4.0-py2.py3-none-any.whl
Collecting numpy==1.12.0 (from -r cmd/refframes/reqs.txt (line 2))
  Downloading numpy-1.12.0.zip (4.8MB)
    100% |################################| 4.8MB 127kB/s 
    Running from numpy source directory.
Collecting packaging==16.8 (from -r cmd/refframes/reqs.txt (line 3))
  Downloading packaging-16.8-py2.py3-none-any.whl
Collecting py==1.4.32 (from -r cmd/refframes/reqs.txt (line 4))
  Downloading py-1.4.32-py2.py3-none-any.whl (82kB)
    100% |################################| 86kB 5.0MB/s 
Collecting pyparsing==2.1.10 (from -r cmd/refframes/reqs.txt (line 5))
  Downloading pyparsing-2.1.10-py2.py3-none-any.whl (56kB)
    100% |################################| 57kB 6.5MB/s 
Collecting pytest==3.0.6 (from -r cmd/refframes/reqs.txt (line 6))
  Downloading pytest-3.0.6-py2.py3-none-any.whl (172kB)
    100% |################################| 176kB 2.9MB/s 
Collecting six==1.10.0 (from -r cmd/refframes/reqs.txt (line 7))
  Downloading six-1.10.0-py2.py3-none-any.whl
Collecting spiceypy==1.1.0 (from -r cmd/refframes/reqs.txt (line 8))
  Downloading spiceypy-1.1.0.tar.gz (213kB)
    100% |################################| 217kB 2.4MB/s 
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/tmp/pip-build-l48p479i/spiceypy/setup.py", line 5, in <module>
        import getspice
      File "/tmp/pip-build-l48p479i/spiceypy/getspice.py", line 13, in <module>
        import six.moves.urllib as urllib
    ImportError: No module named 'six'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

      File "<string>", line 20, in <module>

      File "/tmp/pip-build-l48p479i/spiceypy/setup.py", line 5, in <module>

        import getspice

      File "/tmp/pip-build-l48p479i/spiceypy/getspice.py", line 13, in <module>

        import six.moves.urllib as urllib

    ImportError: No module named 'six'

    ----------------------------------------
    Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-l48p479i/spiceypy
The command "pip install -r cmd/refframes/reqs.txt" failed and exited with 1 during .
Your build has been stopped.
language: go
go:
  - 1.7
addons:
  apt:
    sources:
      - deadsnakes # source required so it finds the package definition below
    packages:
      - python3.4
      - python3.4-dev
before_install:
  - go get github.com/axw/gocov/gocov
  - go get github.com/mattn/goveralls
  - if ! go get code.google.com/p/go.tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
  - sudo pip install virtualenv
  - virtualenv -p `which python3.4` .venv
  - source .venv/bin/activate
  - python -V
  - pip -V
  - pip install six
  - pip install -r cmd/refframes/reqs.txt
  - wget -O cmd/refframes/spicekernels/de430.bsp https://naif.jpl.nasa.gov/pub/naif/generic_kernels/spk/planets/de430.bsp
script:
  - python cmd/refframes/tests.py
  - go test -v -timeout=30m -covermode=count -coverprofile=coverage.out
  - $HOME/gopath/bin/goveralls -coverprofile=coverage.out -service=travis-ci
env:
  - SMD_CONFIG=./