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.

BUG Check "backreferences_dir" is str or None

See original GitHub issue

All builds for PyVista’s docs are failing on the CIs with the new v0.5.0 of sphinx-gallery. I confirmed this locally by upgrading sphinx-gallery and get the following error (from https://github.com/pyvista/pyvista/pull/451#issuecomment-555255085)

I’m not sure exactly where this error is coming from… seems to be only when using PyVsita’s scraper - can you all help me track this down?

# Sphinx version: 2.2.1
# Python version: 3.7.3 (CPython)
# Docutils version: 0.15.2 release
# Jinja2 version: 2.10.3
# Last messages:

# Loaded extensions:
Traceback (most recent call last):
  File "/Users/bane/anaconda3/envs/foo/lib/python3.7/site-packages/sphinx/cmd/build.py", line 275, in build_main
    args.tags, args.verbosity, args.jobs, args.keep_going)
  File "/Users/bane/anaconda3/envs/foo/lib/python3.7/site-packages/sphinx/application.py", line 269, in __init__
    self._init_builder()
  File "/Users/bane/anaconda3/envs/foo/lib/python3.7/site-packages/sphinx/application.py", line 330, in _init_builder
    self.events.emit('builder-inited')
  File "/Users/bane/anaconda3/envs/foo/lib/python3.7/site-packages/sphinx/events.py", line 103, in emit
    results.append(callback(self.app, *args))
  File "/Users/bane/anaconda3/envs/foo/lib/python3.7/site-packages/sphinx_gallery/gen_gallery.py", line 284, in generate_gallery_rst
    seen_backrefs)
  File "/Users/bane/anaconda3/envs/foo/lib/python3.7/site-packages/sphinx_gallery/gen_rst.py", line 328, in generate_dir_rst
    fname, target_dir, src_dir, gallery_conf, seen_backrefs)
  File "/Users/bane/anaconda3/envs/foo/lib/python3.7/site-packages/sphinx_gallery/gen_rst.py", line 777, in generate_file_rst
    fname, intro)
  File "/Users/bane/anaconda3/envs/foo/lib/python3.7/site-packages/sphinx_gallery/backreferences.py", line 248, in _write_backreferences
    '%s.examples.new' % backref)
  File "/Users/bane/anaconda3/envs/foo/lib/python3.7/posixpath.py", line 94, in join
    genericpath._check_arg_types('join', a, *p)
  File "/Users/bane/anaconda3/envs/foo/lib/python3.7/genericpath.py", line 149, in _check_arg_types
    (funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'bool'

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
larsonercommented, Nov 27, 2019

I would say error, it’s less likely to be missed/ignored

1reaction
GuillaumeFaveliercommented, Nov 19, 2019

TL;DR: "backreferences_dir": None in pyvista/docs/conf.py should solve this @banesullivan

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug Check Code Reference - Windows drivers
Entering this command causes WinDbg to display information about the specified bug check code. If your default number base (radix) is not 16, ......
Read more >
Why python designed as str(None) return 'None' instead of ...
Checking if a string has characters in it by checking len(str(result)) is definitely not pythonic (see ...
Read more >
Parsing arguments and building values
Returns the value or NULL in the case of an error; an exception will be raised if NULL is returned. Py_BuildValue() does not...
Read more >
Python Strings | Python Education
Python has a built-in string class named "str" with many handy features (there is an older module named "string" which you should not...
Read more >
Python | Check if a given string is binary string or not
The task is to check whether it is a binary string or not. Examples: ... this will raise value error if. # string...
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