Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble with Cartopy + travis CI #444

Closed
briochemc opened this issue May 23, 2019 · 2 comments
Closed

Trouble with Cartopy + travis CI #444

briochemc opened this issue May 23, 2019 · 2 comments

Comments

@briochemc
Copy link

I have been able to locally use python's Cartopy to plot nice maps from Julia via, e.g.,

using Conda; Conda.add("Cartopy")
using PyPlot, PyCall
ccrs = pyimport("cartopy.crs")
ax = subplot(projection=ccrs.Robinson())
ax.set_global()
ax.stock_img()
ax.coastlines()

(extracted from this gist — I don't even know if that's the recommended way.)

However, I have not been able to run such code via Travis CI. (I am trying to generate and deploy documentation that uses Cartopy.) I have tried a few different things, but without success, with every build either failing to find python, matplotlib, or cartopy. So here is my request:

Could I get some help in setting up a MWE of a Cartopy plot run in Julia by Travis CI?

Such a MWE could appear in PyPlot's Readme, and its output image be part of this list of PyPlot examples, or if one could use Cartopy from Plots.jl's pyplot backend, it could be added to the pyplot-backend examples. Maybe this is all trivial to some of you but it would go a long way to help newbs like me! 😅

@briochemc
Copy link
Author

FWIW, I created CartopyCI, a tiny Julia project which just runs the code above, to try things out. Link to its CI here.

@briochemc
Copy link
Author

I think I figured it out in CartopyCI. Of course, any suggestion still welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant