Skip to content

pip not installed along with Conda / PyCall #25

@jwscook

Description

@jwscook

Hi Devs,

I'm coming up against a problem running my tests on Appveyor. See this CI job as an example failure.

I've got a project with a few python dependencies that are both packaged e.g. scipy and non-packaged (a repo on github). To install thems in the build.jl I use commands like:

Using Conda
pip = joinpath(Conda.BINDIR, "pip")
run(`$pip install scipy`)
run(`$pip install git+https://github.com/ScottishCovidResponse/data_pipeline_api@0.7.0`)

which works well on travis but on Appveyor errors out because it can't find pip

 Error: Error building `SimulationData`: 
    Building Conda ─→ `C:\Users\appveyor\.julia\packages\Conda\3rPhK\deps\build.log`
    Building PyCall  `C:\Users\appveyor\.julia\packages\PyCall\zqDXB\deps\build.log`
 ERROR: LoadError: IOError: could not spawn `'C:\Users\appveyor\.julia\conda\3\Library\bin\pip' install scipy pyyaml setuptools-scm aiohttp`: no such file or directory (ENOENT)
 Stacktrace:
  [1] _spawn_primitive(::String, ::Cmd, ::Array{Any,1}) at .\process.jl:99
  [2] #550 at .\process.jl:112 [inlined]
  [3] setup_stdios(::Base.var"#550#551"{Cmd}, ::Array{Any,1}) at .\process.jl:196
  [4] _spawn at .\process.jl:111 [inlined]
  [5] run(::Cmd; wait::Bool) at .\process.jl:439
  [6] run(::Cmd) at .\process.jl:438
  [7] top-level scope at C:\projects\simulationdata-jl\deps\build.jl:8
  [8] include(::String) at .\client.jl:439
  [9] top-level scope at none:5
 in expression starting at C:\projects\simulationdata-jl\deps\build.jl:8
 @ Pkg.Operations D:\buildbot\worker\package_win32\build\usr\share\julia\stdlib\v1.4\Pkg\src\Operations.jl:899
""

I've thought about using Conda to install https://github.com/ScottishCovidResponse/data_pipeline_api@0.7.0 in isolation of pip but can't make that work either.

Any pointers for putting pip in C:\Users\appveyor\.julia\conda\3\Library\bin\?

Thanks,
James

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions