question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Docs Building on Travis is Failing

See original GitHub issue

Travis is failing to build docs and is failing with a strange import error:

Traceback (most recent call last):
  File "/home/travis/anaconda/envs/deepchem/bin/sphinx-apidoc", line 7, in <module>
    from sphinx.apidoc import main
  File "/home/travis/anaconda/envs/deepchem/lib/python2.7/site-packages/sphinx/apidoc.py", line 25, in <module>
    from sphinx.util.osutil import walk
  File "/home/travis/anaconda/envs/deepchem/lib/python2.7/site-packages/sphinx/util/__init__.py", line 27, in <module>
    import docutils
  File "/home/travis/anaconda/envs/deepchem/lib/python2.7/site-packages/sphinx/util/docutils.py", line 25, in <module>
    from sphinx.locale import __
ImportError: cannot import name __
Traceback (most recent call last):
  File "/home/travis/anaconda/envs/deepchem/bin/sphinx-build", line 11, in <module>
    sys.exit(main())
  File "/home/travis/anaconda/envs/deepchem/lib/python2.7/site-packages/sphinx/__init__.py", line 51, in main
    sys.exit(build_main(argv))
  File "/home/travis/anaconda/envs/deepchem/lib/python2.7/site-packages/sphinx/__init__.py", line 61, in build_main
    from sphinx import cmdline
  File "/home/travis/anaconda/envs/deepchem/lib/python2.7/site-packages/sphinx/cmdline.py", line 23, in <module>
    from sphinx.application import Sphinx
  File "/home/travis/anaconda/envs/deepchem/lib/python2.7/site-packages/sphinx/application.py", line 31, in <module>
    from sphinx.roles import XRefRole
  File "/home/travis/anaconda/envs/deepchem/lib/python2.7/site-packages/sphinx/roles.py", line 21, in <module>
    from sphinx.util import ws_re
  File "/home/travis/anaconda/envs/deepchem/lib/python2.7/site-packages/sphinx/util/__init__.py", line 27, in <module>
    import docutils
  File "/home/travis/anaconda/envs/deepchem/lib/python2.7/site-packages/sphinx/util/docutils.py", line 25, in <module>
    from sphinx.locale import __
ImportError: cannot import name __
About to push docs to s3
ERROR: Parameter problem: Invalid character(s) in header name ''content-type'': "''"
ERROR: Parameter problem: Invalid character(s) in header name ''content-type'': "''"

Does anyone have any ideas on what’s going on here?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
mpharrigancommented, Sep 1, 2017

make sure you’re installing jupyter before trying to run the jupyter notebooks

0reactions
rbharathcommented, Dec 24, 2017

I believe this issue has been resolved. Closing for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Common Build Problems - Travis CI Docs
My build fails unexpectedly # ... One possible cause for builds failing unexpectedly can be calling set -e (also known as set errexit...
Read more >
Travis build is failing - Development - Image.sc Forum
Travis always complains that builds fail on the mdoube fork, for code that builds fine in PRs and after they are merged into ......
Read more >
Build shows as successful even though the sole job failed
I have a build with a test that I've deliberately broken. Although the UI correctly reports the build as failed, the text and...
Read more >
Fatih Kadir Akın - Travis CI
Fatih Kadir Akın. f · Repositories · Insights · tren. Last Build. 43. Default Branch. master. Commit. c2e2fc2. Finished. passed 2 years ago ......
Read more >
Travis-CI only deploy once after all builds finish - Stack Overflow
How can I adjust the script to only build and deploy the docs once? language: python python: - 3.8 - 3.7 - 3.6...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found