# Trouble with hosting. What am I doing wrong?

**URL:** <https://discourse.julialang.org/t/trouble-with-hosting-what-am-i-doing-wrong/30111>\
**Category:** New to Julia\
**Tags:** documenter\
**Created:** [October 20, 2019, 3:38pm UTC](https://discourse.julialang.org/t/trouble-with-hosting-what-am-i-doing-wrong/30111 "2019-10-20T15:38:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tim\_Kelley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim_kelley/32/7399_2.png) [@Tim\_Kelley](https://discourse.julialang.org/u/Tim_Kelley)\
**Post date:** [October 20, 2019, 3:38pm UTC](https://discourse.julialang.org/t/trouble-with-hosting-what-am-i-doing-wrong/30111/1 "2019-10-20T15:38:00Z")

</div>

Hello. I am an utter novice with Documenter and am completely stuck. Thanks in advance for any help.

I’m stuck on the hosting part of Documenter.jl. I got the ssh keys where they were supposed to be, which seemed to be easy.

I uploaded the /docs directory (except for docs/build) to my repo. That caused a travis build to fail and I can’t see why. I changed .travis.yml as per the directions in Documenter.jl and got another build failure.

Then I changed the ENV variables and did  
% julia make.jl

and I got

┌ Info: Deployment criteria:  
│ - ✔ ENV[“TRAVIS\_REPO\_SLUG”]=“” occurs in repo=“[github.com/ctkelley/ScalarEquations.jl.git](http://github.com/ctkelley/ScalarEquations.jl.git)”  
│ - ✘ ENV[“TRAVIS\_PULL\_REQUEST”]=“” is “false”  
│ - ✔ ENV[“TRAVIS\_TAG”]=“” is (i) empty or (ii) a valid VersionNumber  
│ - ✘ ENV[“TRAVIS\_BRANCH”]=“” matches devbranch=“master” (if tag is empty)  
│ - ✘ ENV[“DOCUMENTER\_KEY”] exists  
│ - ✔ ENV[“TRAVIS\_EVENT\_TYPE”]=“” is not “cron”  
└ Deploying: ✘

I have the ENV variables set on Travis. Why can’t make.jl see them?

---

<div class="post-metadata">

**Author:** ![Tim\_Kelley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim_kelley/32/7399_2.png) [@Tim\_Kelley](https://discourse.julialang.org/u/Tim_Kelley)\
**Post date:** [October 20, 2019, 8:43pm UTC](https://discourse.julialang.org/t/trouble-with-hosting-what-am-i-doing-wrong/30111/2 "2019-10-20T20:43:59Z")

</div>

Part of my problem was with the difference between local make.jl and the one travis uses. I think I have that figured out. My package uses PyPlot and the travis documenter build fails with this message. What do I need to do. I am not a Python user, so could use level 0 directions.

--------------- travis complaint below -----------------

The command “julia --project=docs/ -e ‘using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()’” exited with 0.

264106.01s$ julia --project=docs/ docs/make.jl

265ERROR: LoadError: InitError: PyError (PyImport\_ImportModule

266

267The Python package matplotlib could not be found by pyimport. Usually this means

268that you did not install matplotlib in the Python version being used by PyCall.

269

270PyCall is currently configured to use the Python version at:

271

272/usr/bin/python3

273

274and you should use whatever mechanism you usually use (apt-get, pip, conda,

275etcetera) to install the Python package containing the matplotlib module.

276

277One alternative is to re-configure PyCall to use a different Python

278version on your system: set ENV[“PYTHON”] to the path/name of the python

279executable you want to use, run Pkg.build(“PyCall”), and re-launch Julia.

280

281Another alternative is to configure PyCall to use a Julia-specific Python

282distribution via the Conda.jl package (which installs a private Anaconda

283Python distribution), which has the advantage that packages can be installed

284and kept up-to-date via Julia. As explained in the PyCall documentation,

285set ENV[“PYTHON”]=“”, run Pkg.build(“PyCall”), and re-launch Julia. Then,

286To install the matplotlib module, you can use `pyimport_conda("matplotlib", PKG)`,

287where PKG is the Anaconda package the contains the module matplotlib,

288or alternatively you can use the Conda package directly (via

289`using Conda` followed by `Conda.add` etcetera).

290

1. \<class ‘ImportError’\>

292ImportError(“No module named ‘matplotlib’”,)

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [October 21, 2019, 6:00am UTC](https://discourse.julialang.org/t/trouble-with-hosting-what-am-i-doing-wrong/30111/3 "2019-10-21T06:00:11Z")

</div>

(please [quote your code](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757))

It seems that you are passing args to the build process in [using environment variables](https://github.com/ctkelley/ScalarEquations.jl/blob/306e54f24aee2db651e17406769ca10837fb7fde/docs/make.jl#L3). Please make sure that you have done everything described here:

[https://juliadocs.github.io/Documenter.jl/dev/man/hosting/](https://juliadocs.github.io/Documenter.jl/dev/man/hosting/)

You may also want to pin to a specific version of Documenter in the relevant [Project.toml](https://github.com/ctkelley/ScalarEquations.jl/blob/306e54f24aee2db651e17406769ca10837fb7fde/docs/Project.toml), to make sure things don’t break if the interface changes.

Also, I like to look at the build setup of Documenter.jl itself to figure out the recommended way of doing things:

[https://github.com/JuliaDocs/Documenter.jl/tree/master/docs](https://github.com/JuliaDocs/Documenter.jl/tree/master/docs)

---

<div class="post-metadata">

**Author:** ![Tim\_Kelley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim_kelley/32/7399_2.png) [@Tim\_Kelley](https://discourse.julialang.org/u/Tim_Kelley)\
**Post date:** [October 21, 2019, 12:01pm UTC](https://discourse.julialang.org/t/trouble-with-hosting-what-am-i-doing-wrong/30111/4 "2019-10-21T12:01:14Z")

</div>

I took the make.jl in the Documenter.jl/docs a bit to literally and did the sub

mystuff–\>Documenter

once to often. I’m ok now but am still confused about what I’m really doing.

---

<div class="post-metadata">

**Author:** ![ctkelley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ctkelley/32/10684_2.png) [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Post date:** [May 1, 2020, 9:33pm UTC](https://discourse.julialang.org/t/trouble-with-hosting-what-am-i-doing-wrong/30111/5 "2020-05-01T21:33:38Z")

</div>

Hi, I’m back with a koan. I am trying to try reorganizing my docs in a dev branch. I’d like the docs for the master to stay where they are for awhile so I can play around without destroying anything. I’m getting this error

x ENV[“TRAVIS\_BRANCH”] matches devbranch=“master”

which makes sense, since I’m on the dev branch. Is there something I can to to convince documenter that I want the dev branch.

The mods so far work fine on master, so I’m pretty sure that I’ve missed something,

I’ve set

repo=“[github.com/ctkelley/SIAMFANLEquations.jl/tree/dev](http://github.com/ctkelley/SIAMFANLEquations.jl/tree/dev)” in make.jl  
and  
repo\_url: [https://github.com/ctkelley/SIAMFANLEquations.jl/tree/dev](https://github.com/ctkelley/SIAMFANLEquations.jl/tree/dev)  
in mkdocs.

Am I trying to do the impossible? I don’t see any branch in documenter.jl where someone did this.

Thanks,

– Tim

---

<div class="post-metadata">

**Author:** ![ctkelley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ctkelley/32/10684_2.png) [@ctkelley](https://discourse.julialang.org/u/ctkelley)\
**Post date:** [May 2, 2020, 12:14pm UTC](https://discourse.julialang.org/t/trouble-with-hosting-what-am-i-doing-wrong/30111/6 "2020-05-02T12:14:52Z")

</div>

I understand now. I did not have the vocabulary to parse the instructions, but I understand what a release branch is now, I think.

Still working through “pkg for bozos”
