unable to setup hugo server in local
Closed this issue · 4 comments
bs@bs-Lenovo-E41-25:~/numpy.org$ hugo server
Watching for changes in /home/bs/numpy.org/{archetypes,assets,content,layouts,static,themes}
Watching for config changes in /home/bs/numpy.org/config.yaml, /home/bs/numpy.org/themes/scientific-python-hugo-theme/config.yaml, /home/bs/numpy.org/themes/scientific-python-hugo-theme/themes/hugo-atom-feed/config.toml
Start building sites …
hugo v0.147.8-10da2bd765d227761641f94d713d094e88b920ae+extended linux/amd64 BuildDate=2025-06-07T12:59:52Z VendorInfo=gohugoio
ERROR TOCSS-DART: failed to transform "theme-css/sphinx-design/index.scss.css" (text/x-scss): got unexpected EOF when executing "sass". The user running hugo must have read and execute permissions on this program. With execute permissions only, this error is thrown.
ERROR TOCSS-DART: failed to transform "theme-css/pst/bootstrap.scss.css" (text/x-scss): ":1:1": connection is shut down
ERROR TOCSS-DART: failed to transform "theme-css/pst/pydata-sphinx-theme.scss.css" (text/x-scss): ":1:1": connection is shut down
Built in 4639 ms
Error: error building site: TOCSS-DART: failed to transform "theme-css/pst/bootstrap.scss.css" (text/x-scss): ":1:1": connection is shut down
Thank you, @melissawm, for your guidance!
@boopalan-s Were you able to set up a hugo server on your local machine? Feel free to share your thoughts on how we could improve the documentation for setting up a local development environment for numpy.org.
I got an help form here to resolve this issue ,but on there the conversation is not tin english https://forums.tamillinuxcommunity.org/t/problem-in-using-hugo-static-site-generators/3007
Later I switched from linux-mint to ubuntu. There i did easily then linux-mint.
@boopalan-s Great to hear that you were able to resolve the issue!
After taking a closer look at the error messages you shared it looks like the issue was with permissions in the Sass binary on your local machine. There are ways to resolve this issue without switching to a different operating system, but it falls outside the scope of the numpy.org documentation. I will go ahead and close this issue now.