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.

Broken sidebar when using YAML config, conda, and pip_install

See original GitHub issue

I’m seeing a strange effect where the navigation sidebar is broken depending on the RTD configuration. The effect is that clicking on the “Read the Docs”/version at the very bottom of the sidebar does nothing (it should pop up the version selector). Also, on a small screen where the sidebar is hidden by default, clicking on the sidebar button (the symbol of three horizontal bars in the top left corner) has no effect (as opposed to showing the sidebar).

The broken behavior can be seen in the current build on the Project URL. When loading that page e.g. in Safari with an open Web Inspector, there is an error message that hints at the problem:

[Error] TypeError: undefined is not an object (evaluating 'SphinxRtdTheme.Navigation.enableSticky')
	(anonymous function) (index.html:365)
	f (jquery-2.0.3.min.js:3:2256)
	fireWith (jquery-2.0.3.min.js:3:3059)
	ready (jquery-2.0.3.min.js:1:12573)
	ge (jquery-2.0.3.min.js:1:10197)

The project uses a readthedocs.yml file and it’s set up to use conda, and also to install the package for which the documentation is generated via pip (pip_install: true)

It turns out that this is the problem. If I switch from pip_install to setup_py_install (and adapt the environment.yml file accordingly to install all pip-prerequisites manually), it works fine.

The commit that makes everything work is https://github.com/mabuchilab/QNET/commit/cc55fe4d789c32ee25436af4749a2d7d9bc6c2ad

I’ve reverted that commit to have a “broken” build, which I’ll leave up for a few days to give people a chance to look at it.

I wonder if the problem is that I have sphinx_rtd_theme listed in setup.py: maybe this overwrites the system-sphinx-rtd_theme during the pip_install of the package, which doesn’t happen with setup_py_install?

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
astrojuanlucommented, May 2, 2018

Confirmed that this works again 😃 Thanks!

2reactions
ericholschercommented, May 1, 2018

Believe this should be fixed with our latest deploy.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Combining conda environment.yml with pip requirements.txt
conda env create -f environment.yml does not include pip packages installed using local code such as pip install -e . , but the...
Read more >
Tips & tricks — conda-forge 2022.12.16 documentation
It is quite common to install a package from conda-forge and, when trying to use it, see an error like (OS X example):....
Read more >
Continuous Integration With Python: An Introduction
In this Python tutorial, you'll learn the core concepts behind Continuous Integration (CI) and why they are essential for modern software engineering teams....
Read more >
End-To-End Walkthrough - nbdev - Fast.ai
A step-by-step guide to using nbdev. ... Python; A Python package manager: we recommend conda or pip; Jupyter Notebook ... conda install -c...
Read more >
Miniconda3 - NeSI Support
Y/site-packages/ (where X.Y is the Python version, e.g. 3.8) by pip install --user are included in your conda environments. Do not use conda...
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