Readthedocs.org: Missing JavaScript files

Created on 20 Feb 2019  路  6Comments  路  Source: readthedocs/readthedocs.org

Details

Expected Result

_static/thingiview/xxxx.js files are accesible/served. When I build the documentation locally, that is the case.

Actual Result

It seems _static/thingiview/xxxx.js files are missing and RtD replies with a 404 error.

Notes

These files are copied to _static/thingiview/ by this extension:

https://github.com/Peque/sphinxcadquery

Note I am not sure if:

  • The files are actually there on RtD, but not served (only returning a 404)
  • The files are directly not copied to _static, in which case I do not know why it would work locally but not remotely

Do you have any ideas/suggestions on how to proceed to fix/debug this?

Support

Most helpful comment

If you're satisfied with this and it works, feel free to close this issue out.

All 6 comments

Which version of sphinx are you using locally?

@stsewd 1.8.4.

I am essentially using the same Conda environment configuration file that Read the Docs is using:

https://github.com/Bulebots/bulebule/blob/sphinxcadquery/environment.yaml

Read the Docs is then provided with:

https://github.com/Bulebots/bulebule/blob/sphinxcadquery/.readthedocs.yaml

Looking at the build output, I can see it tried to install sphinxcadquery 0.3.0:

...
Collecting sphinxcadquery (from -r /home/docs/checkouts/readthedocs.org/user_builds/bulebule/checkouts/sphinxcadquery/condaenv.jlxucw.requirements.txt (line 3))
  Downloading https://files.pythonhosted.org/packages/5d/87/51c81890eb58f97371f202d28c5c601e1752105d70329ada719f136cd36c/sphinxcadquery-0.3.0.tar.gz
...

However, the file on PyPI does not contain those JavaScript files:

$ wget https://files.pythonhosted.org/packages/5d/87/51c81890eb58f97371f202d28c5c601e1752105d70329ada719f136cd36c/sphinxcadquery-0.3.0.tar.gz
$ tar tvfz sphinxcadquery-0.3.0.tar.gz
drwxrwxr-x  0 peque  peque       0 Feb 19 15:15 sphinxcadquery-0.3.0/
-rw-rw-r--  0 peque  peque     703 Feb 19 15:15 sphinxcadquery-0.3.0/PKG-INFO
-rw-rw-r--  0 peque  peque    1135 Feb 19 11:28 sphinxcadquery-0.3.0/README.rst
-rw-rw-r--  0 peque  peque      38 Feb 19 15:15 sphinxcadquery-0.3.0/setup.cfg
-rw-rw-r--  0 peque  peque    1020 Feb 19 11:23 sphinxcadquery-0.3.0/setup.py
drwxrwxr-x  0 peque  peque       0 Feb 19 15:15 sphinxcadquery-0.3.0/sphinxcadquery/
-rw-rw-r--  0 peque  peque      22 Feb 19 15:09 sphinxcadquery-0.3.0/sphinxcadquery/__init__.py
-rw-rw-r--  0 peque  peque    3564 Feb 19 15:08 sphinxcadquery-0.3.0/sphinxcadquery/sphinxcadquery.py
drwxrwxr-x  0 peque  peque       0 Feb 19 15:15 sphinxcadquery-0.3.0/sphinxcadquery.egg-info/
-rw-rw-r--  0 peque  peque     703 Feb 19 15:15 sphinxcadquery-0.3.0/sphinxcadquery.egg-info/PKG-INFO
-rw-rw-r--  0 peque  peque     268 Feb 19 15:15 sphinxcadquery-0.3.0/sphinxcadquery.egg-info/SOURCES.txt
-rw-rw-r--  0 peque  peque       1 Feb 19 15:15 sphinxcadquery-0.3.0/sphinxcadquery.egg-info/dependency_links.txt
-rw-rw-r--  0 peque  peque       7 Feb 19 15:15 sphinxcadquery-0.3.0/sphinxcadquery.egg-info/requires.txt
-rw-rw-r--  0 peque  peque      15 Feb 19 15:15 sphinxcadquery-0.3.0/sphinxcadquery.egg-info/top_level.txt

This is probably a problem with the setup.py as I can see the problem persists to the latest release 0.5.0. Try creating a MANIFEST.in and make sure that when you run python setup.py sdist that the JS files are in there!

If you're satisfied with this and it works, feel free to close this issue out.

@davidfischer I did have the wrong line defined in package_data. It is fixed now and it seems to be working.

Thanks for your help, and really sorry for the noise! :sweat_smile:

Was this page helpful?
0 / 5 - 0 ratings