Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setup.py build: error: [Errno 2] No such file or directory: 'node_modules/.bin/webpack' #1033

Closed
mgorny opened this issue Jan 5, 2021 · 2 comments

Comments

@mgorny
Copy link

mgorny commented Jan 5, 2021

Problem

The pypi tarball for 0.5.1 does not build.

$ tar -xf sphinx_rtd_theme-0.5.1.tar.gz
$ cd sphinx_rtd_theme-0.5.1/
$ python setup.py build
running build
running build_py

up to date in 189ms

found 0 vulnerabilities
error: [Errno 2] No such file or directory: 'node_modules/.bin/webpack'

If I were to guess, it's missing some file that would make npm actually install something. Even then, having setup.py download anything really sucks. And I think I've already suggested including prebuilt webpack in pypi releases.

Environment Info

  • Python Version: 3.9.1
  • Sphinx Version: 3.4.1
  • RTD Theme Version: 0.5.1
@stsewd
Copy link
Member

stsewd commented Jan 5, 2021

You need to run npm first, see #1014

@stsewd stsewd closed this as completed Jan 5, 2021
@stsewd
Copy link
Member

stsewd commented Jan 5, 2021

BTW, the assets are there, you don't need to run npm, just need skip that #1014 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants