Closed Salfo closed 6 years ago
The issue that you have reported is concerning the Project widget. It would appear from the error message that one or more of your files in project/
folder are missing tags = []
in their frontmatter. The above issue will likely be resolved after adding the missing parameter to all your project files.
coming-soon.txt
I have one file in project/
and I don't think it is missing the tags = []
. Attached is the sole file in project/
, if that can help. Also, will that be simpler to just delete the project and start over, i.e create a new project of the same name as the initial one. I worry about doing that because I have already deploy my website, and I am not sure if I can just start over. Again, everything was working, and I am not sure what went wrong.
Kind Regards,
.
That project page works fine, assuming your actual file is named coming-soon.md
rather than coming-soon.txt
. If there is still an issue, you will be more likely to get a helpful response if you can link to a Github repository containing your website. Also, Hugo discussion forum may be able to help.
Thank you very much. My problem is now solved. I had coming-soon.html
in my project/
folder. When I deleted it, blogdown:::serve_site()
runs perfectly. So, you were right when you said the problem was in the project/
folder. I just had to remove the .html
file.
Kind Regards,
Hi, @Salfo @gcushen, I have a similar error and it had troubled me for weeks. I posted it in Rstudio community but it has not solved yet: https://community.rstudio.com/t/blogdown-serve-site-hugo-execution-failed-with-error-code-1/45750/24.
My pc information:
devtools::session_info() Session info --------------------------------------------------------------------------------------------- setting value version R version 3.6.1 (2019-07-05) os Windows 10 x64 system x86_64, mingw32 ui RStudio
As you can see below, it seems that the public\authors\
folder has some problems, I tried diabling the author link as discussed here:https://github.com/gcushen/hugo-academic/issues/982. but the issue persists.
I also checked the hugo.exe is in the system path.
All the files were uploaded to https://github.com/hcp4715/blogdown_trial, in case you need to reproduce the problem.
Many thanks.
Hi gcushen,
I had this issue a while ago. At that time the solution was to remove the .html files in my project/
folder. Have you done that?
I experience the same problem with @hcp4715 and removing .html won't work because I do not have any additional .html files other than the default. It happens right after updating academic theme through git. I do not understand which path should be fixed according to the error message.
Didn't expect I would encounter this error again, but I do.
After updated my R to 4.0.2, I also updated blogdown and hugo, and then, I had almost the same issue now.
> xfun::session_info('rmarkdown')
R version 4.0.2 (2020-06-22)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 18363), RStudio 1.3.959
Locale:
LC_COLLATE=Chinese (Simplified)_China.936 LC_CTYPE=Chinese (Simplified)_China.936 LC_MONETARY=Chinese (Simplified)_China.936
LC_NUMERIC=C LC_TIME=Chinese (Simplified)_China.936
system code page: 1252
Package version:
base64enc_0.1.3 digest_0.6.25 evaluate_0.14 glue_1.4.1 graphics_4.0.2 grDevices_4.0.2 highr_0.8 htmltools_0.5.0
jsonlite_1.7.0 knitr_1.29 magrittr_1.5 markdown_1.1 methods_4.0.2 mime_0.9 rlang_0.4.7 rmarkdown_2.3
stats_4.0.2 stringi_1.4.6 stringr_1.4.0 tinytex_0.25 tools_4.0.2 utils_4.0.2 xfun_0.16 yaml_2.2.1
Pandoc version: 2.7.3
> blogdown::build_site()
Building sites 鈥?ERROR 2020/08/01 14:48:06 render of "page" failed: execute of template failed: template: publication/single.html:5:3: executing "publication/single.html" at <partial "site_head" .>: error calling partial: "D:\HCP_cloud\My_sites\CV_site\themes\hugo-academic\layouts\partials\site_head.html:97:17": execute of template failed: template: partials/site_head.html:97:17: executing "partials/site_head.html" at <site>: can't evaluate field engine in type int64
ERROR 2020/08/01 14:48:06 render of "page" failed: execute of template failed: template: publication/single.html:5:3: executing "publication/single.html" at <partial "site_head" .>: error calling partial: "D:\HCP_cloud\My_sites\CV_site\themes\hugo-academic\layouts\partials\site_head.html:97:17": execute of template failed: template: partials/site_head.html:97:17: executing "partials/site_head.html" at <site>: can't evaluate field engine in type int64
ERROR 2020/08/01 14:48:06 render of "page" failed: execute of template failed: template: publication/single.html:5:3: executing "publication/single.html" at <partial "site_head" .>: error calling partial: "D:\HCP_cloud\My_sites\CV_site\themes\hugo-academic\layouts\partials\site_head.html:97:17": execute of template failed: template: partials/site_head.html:97:17: executing "partials/site_head.html" at <site>: can't evaluate field engine in type int64
ERROR 2020/08/01 14:48:06 render of "page" failed: execute of template failed: template: project/single.html:5:3: executing "project/single.html" at <partial "site_head" .>: error calling partial: "D:\HCP_cloud\My_sites\CV_site\themes\hugo-academic\layouts\partials\site_head.html:97:17": execute of template failed: template: partials/site_head.html:97:17: executing "partials/site_head.html" at <site>: can't evaluate field engine in type int64
Total in 504 ms
Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: publication/single.html:5:3: executing "publication/single.html" at <partial "site_head" .>: error calling partial: "D:\HCP_cloud\My_sites\CV_site\themes\hugo-academic\layouts\partials\site_head.html:97:17": execute of template failed: template: partials/site_head.html:97:17: executing "partials/site_head.html" at <site>: can't evaluate field engine in type int64
Building sites 鈥?ERROR 2020/08/01 14:48:07 render of "page" failed: execute of template failed: template: publication/single.html:5:3: executing "publication/single.html" at <partial "site_head" .>: error calling partial: "D:\HCP_cloud\My_sites\CV_site\themes\hugo-academic\layouts\partials\site_head.html:97:17": execute of template failed: template: partials/site_head.html:97:17: executing "partials/site_head.html" at <site>: can't evaluate field engine in type int64
ERROR 2020/08/01 14:48:07 render of "page" failed: execute of template failed: template: publication/single.html:5:3: executing "publication/single.html" at <partial "site_head" .>: error calling partial: "D:\HCP_cloud\My_sites\CV_site\themes\hugo-academic\layouts\partials\site_head.html:97:17": execute of template failed: template: partials/site_head.html:97:17: executing "partials/site_head.html" at <site>: can't evaluate field engine in type int64
ERROR 2020/08/01 14:48:07 render of "page" failed: execute of template failed: template: docs/single.html:5:3: executing "docs/single.html" at <partial "site_head" .>: error calling partial: "D:\HCP_cloud\My_sites\CV_site\themes\hugo-academic\layouts\partials\site_head.html:97:17": execute of template failed: template: partials/site_head.html:97:17: executing "partials/site_head.html" at <site>: can't evaluate field engine in type int64
ERROR 2020/08/01 14:48:07 render of "page" failed: execute of template failed: template: docs/single.html:5:3: executing "docs/single.html" at <partial "site_head" .>: error calling partial: "D:\HCP_cloud\My_sites\CV_site\themes\hugo-academic\layouts\partials\site_head.html:97:17": execute of template failed: template: partials/site_head.html:97:17: executing "partials/site_head.html" at <site>: can't evaluate field engine in type int64
Total in 487 ms
Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: publication/single.html:5:3: executing "publication/single.html" at <partial "site_head" .>: error calling partial: "D:\HCP_cloud\My_sites\CV_site\themes\hugo-academic\layouts\partials\site_head.html:97:17": execute of template failed: template: partials/site_head.html:97:17: executing "partials/site_head.html" at <site>: can't evaluate field engine in type int64
'C:\Users\hcp47\AppData\Roaming\Hugo\hugo.exe" -d "public' is not recognized as an internal or external command,
operable program or batch file.
Error in shell(cmd, mustWork = TRUE, intern = intern) :
'"C:\Users\hcp47\AppData\Roaming\Hugo\hugo.exe" -d "public" --themesDir themes -t hugo-academic' execution failed with error code 1
or
> blogdown::serve_site()
Building sites 鈥?ERROR 2020/08/01 14:48:50 render of "page" failed: execute of template failed: template: project/single.html:5:3: executing "project/single.html" at <partial "site_head" .>: error calling partial: "D:\HCP_cloud\My_sites\CV_site\themes\hugo-academic\layouts\partials\site_head.html:97:17": execute of template failed: template: partials/site_head.html:97:17: executing "partials/site_head.html" at <site>: can't evaluate field engine in type int64
ERROR 2020/08/01 14:48:50 render of "page" failed: execute of template failed: template: publication/single.html:5:3: executing "publication/single.html" at <partial "site_head" .>: error calling partial: "D:\HCP_cloud\My_sites\CV_site\themes\hugo-academic\layouts\partials\site_head.html:97:17": execute of template failed: template: partials/site_head.html:97:17: executing "partials/site_head.html" at <site>: can't evaluate field engine in type int64
ERROR 2020/08/01 14:48:50 render of "page" failed: execute of template failed: template: _default/single.html:5:3: executing "_default/single.html" at <partial "site_head" .>: error calling partial: "D:\HCP_cloud\My_sites\CV_site\themes\hugo-academic\layouts\partials\site_head.html:97:17": execute of template failed: template: partials/site_head.html:97:17: executing "partials/site_head.html" at <site>: can't evaluate field engine in type int64
ERROR 2020/08/01 14:48:50 render of "page" failed: execute of template failed: template: publication/single.html:5:3: executing "publication/single.html" at <partial "site_head" .>: error calling partial: "D:\HCP_cloud\My_sites\CV_site\themes\hugo-academic\layouts\partials\site_head.html:97:17": execute of template failed: template: partials/site_head.html:97:17: executing "partials/site_head.html" at <site>: can't evaluate field engine in type int64
Total in 487 ms
Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: publication/single.html:5:3: executing "publication/single.html" at <partial "site_head" .>: error calling partial: "D:\HCP_cloud\My_sites\CV_site\themes\hugo-academic\layouts\partials\site_head.html:97:17": execute of template failed: template: partials/site_head.html:97:17: executing "partials/site_head.html" at <site>: can't evaluate field engine in type int64
Building sites 鈥?ERROR 2020/08/01 14:48:51 render of "page" failed: execute of template failed: template: publication/single.html:5:3: executing "publication/single.html" at <partial "site_head" .>: error calling partial: "D:\HCP_cloud\My_sites\CV_site\themes\hugo-academic\layouts\partials\site_head.html:97:17": execute of template failed: template: partials/site_head.html:97:17: executing "partials/site_head.html" at <site>: can't evaluate field engine in type int64
ERROR 2020/08/01 14:48:51 render of "page" failed: execute of template failed: template: project/single.html:5:3: executing "project/single.html" at <partial "site_head" .>: error calling partial: "D:\HCP_cloud\My_sites\CV_site\themes\hugo-academic\layouts\partials\site_head.html:97:17": execute of template failed: template: partials/site_head.html:97:17: executing "partials/site_head.html" at <site>: can't evaluate field engine in type int64
ERROR 2020/08/01 14:48:51 render of "page" failed: execute of template failed: template: publication/single.html:5:3: executing "publication/single.html" at <partial "site_head" .>: error calling partial: "D:\HCP_cloud\My_sites\CV_site\themes\hugo-academic\layouts\partials\site_head.html:97:17": execute of template failed: template: partials/site_head.html:97:17: executing "partials/site_head.html" at <site>: can't evaluate field engine in type int64
ERROR 2020/08/01 14:48:51 render of "page" failed: execute of template failed: template: _default/single.html:5:3: executing "_default/single.html" at <partial "site_head" .>: error calling partial: "D:\HCP_cloud\My_sites\CV_site\themes\hugo-academic\layouts\partials\site_head.html:97:17": execute of template failed: template: partials/site_head.html:97:17: executing "partials/site_head.html" at <site>: can't evaluate field engine in type int64
Total in 486 ms
Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: publication/single.html:5:3: executing "publication/single.html" at <partial "site_head" .>: error calling partial: "D:\HCP_cloud\My_sites\CV_site\themes\hugo-academic\layouts\partials\site_head.html:97:17": execute of template failed: template: partials/site_head.html:97:17: executing "partials/site_head.html" at <site>: can't evaluate field engine in type int64
The system cannot find the path specified.
Error in shell(cmd, mustWork = TRUE, intern = intern) :
'"C:\Users\hcp47\AppData\Roaming\Hugo\hugo.exe" -b / -D -F -d "public" --themesDir themes -t hugo-academic' execution failed with error code 1
Has anyone been able to solve the problem?
this is related to the scss to css build. I am working in solving it.
Dear, I am getting an error message when running blogdown:::serve_site(). I was able to create my website and deploy it. But, after I tried to create a new post, blogdown:::serve_site() produces an error message. Not knowing what is going on, I removed the new post I created, and the error persists. After reading this thread here https://github.com/gcushen/hugo-academic/issues/145, I tried to update the theme as suggested, and I get the message "Already up-to-date." below is the complete error message. Any help? Also, would it be a good solution to delete the web project locally, and start a new project? I am asking this question because I have already deployed the current project (deployed in Netlify) and I am not sure if deleting it locally would be a problem. I followed the "A Recommended workflow" from https://bookdown.org/yihui/blogdown/workflow.html to create and deploy my website. Thank you for your time.
blogdown:::serve_site() Started building sites ... ERROR 2017/10/30 21:59:58 Error while rendering "home": template: theme/index.html:13:9: executing "theme/index.html" at <partial $widget $par...>: error calling partial: template: theme/partials/widgets/projects.html:64:84: executing "theme/partials/widgets/projects.html" at <delimit .Params.tags...>: error calling delimit: can't iterate over Started building sites ... ERROR 2017/10/30 21:59:58 Error while rendering "home": template: theme/index.html:13:9: executing "theme/index.html" at <partial $widget $par...>: error calling partial: template: theme/partials/widgets/projects.html:64:84: executing "theme/partials/widgets/projects.html" at <delimit .Params.tags...>: error calling delimit: can't iterate over The system cannot find the path specified. Error in shell(cmd, mustWork = TRUE, intern = intern) : '"C:\Users\Salfo\AppData\Roaming\Hugo\hugo.exe" -b / -D -F -d "public" -t hugo-academic' execution failed with error code 1 In addition: Warning messages: 1: running command '"C:\Users\Salfo\AppData\Roaming\Hugo\hugo.exe" -b / -D -F -d "public" -t hugo-academic' had status 65535 2: running command '"C:\Users\Salfo\AppData\Roaming\Hugo\hugo.exe" -b / -D -F -d "public" -t hugo-academic' had status 65535 3: running command 'C:\WINDOWS\system32\cmd.exe /c "C:\Users\Salfo\AppData\Roaming\Hugo\hugo.exe" -b / -D -F -d "public" -t hugo-academic' had status 1