JuliaCloud / LibCloud.jl

Common interface across cloud providers (based on Apache LibCloud)
Other
6 stars 6 forks source link

LibCloud.jl does not install libcloud #9

Open samuelpowell opened 7 years ago

samuelpowell commented 7 years ago

On a fresh installation of Julia 0.5 on OS X (with PyCall using Conda's Python installation), adding LibCloud and then using the package results in:

julia> using LibCloud
ERROR: LoadError: InitError: PyError (:PyImport_ImportModule) <type 'exceptions.ImportError'>
ImportError('No module named container.types',)

this is presumably because the call to pyimport_conda (common.jl:22) fails

using Conda
julia> pyimport_conda("libcloud", "apache-libcloud")
INFO: Installing libcloud via the Conda apache-libcloud package...
Fetching package metadata .........

PackageNotFoundError: Package not found: '' Package missing in current osx-64 channels: 
  - apache-libcloud

You can search for packages on anaconda.org with

    anaconda search -t conda apache-libcloud

You may need to install the anaconda-client command line client with

    conda install anaconda-client

One can install libcloud using Conda's pip, but that somewhat defeats the purpose of the pyimport_conda statement, and is contrary to the README.

samuelpowell commented 7 years ago

Note that whilst the apache-libcloud package for is available in a number of conda channels (selected by the third argument to pyimport_conda), they all seem out of date (incompatible with LibCloud).