ReproNim / reproman

ReproMan (AKA NICEMAN, AKA ReproNim TRD3)
https://reproman.readthedocs.io
Other
24 stars 14 forks source link

Travis: 'make -C docs' failure #542

Closed kyleam closed 4 years ago

kyleam commented 4 years ago

The make -C docs html doctest phase is failing in one of the jobs (REPROMAN_TESTS_SSH=1 REPROMAN_TESTS_DEPS=core REPROMAN_TESTS_ASSUME_SSP=1). AFAIK the failure was first observed in gh-490 but seems unlikely to be related.

Exception occurred:
  File "/usr/lib/python3.5/typing.py", line 1134, in _get_defaults
    code = func.__code__
AttributeError: type object 'GitRunner' has no attribute '__code__'
The full traceback has been saved in /tmp/sphinx-err-o66mmqnq.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
Makefile:61: recipe for target 'html' failed
make: *** [html] Error 2
make: Leaving directory '/home/travis/build/ReproNim/reproman/docs'
travis_time:end:26b4d320:start=1597348343230857820,finish=1597348345577634611,duration=2346776791,event=scriptThe command "PYTHONPATH=$PWD make -C docs html doctest" exited with 2.

Done. Your build exited with 1.

https://travis-ci.org/github/ReproNim/reproman/jobs/717707039#L1978

kyleam commented 4 years ago

The python version used in that job is 3.5.2. The attribute error above will be caught within typing._get_defaults starting with 3.5.3 (specifically cpython's 991d14fee1).

The other builds (even those that use 3.5) use a later version. It's still not clear why this just started being an issue (perhaps a sphinx update). One fix would be to bump dist: in that that job to get a python version with the fix.