-
Notifications
You must be signed in to change notification settings - Fork 901
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
failed to resolve output format "print" from site config #805
Comments
@Edwardiv1 Have a look at #451 and see if that helps |
@Edwardiv1 did that solve your problem? |
I had the same problem on Windows. I followed #451 final solution but got |
I succeeded by manully uncommenting github_branch instead of using sed command. Hope that helps |
Related to google/docsy-example#166. I think there's something else going on here. I was able to get things working just fine with
I'm wondering if the config changes are just false positives for some deeper issue, maybe something related to the hugo module or versions? I'm also having this problem locally, but a GitPod instance is not. Here's the info: GitPod (no problems with
Local:
I also tried the challenging process of downgrading my local Hugo, but even with the versions identical that didn't resolve the issue on my local. Commenting out |
Did you run |
Tried, didn't help.
|
I'm having the same issue. The difference is that I'm not using docker, the error occurs in my computer with hugo v0.99.1. |
I'm having the same issue running Monterey 12.3 on an M1 mac, and it looks like @froboy is running an M1 too based on Colleagues not on M1 macs are not having this issue with the same repo.
I cloned an existing Docsy-based site that uses the submodule method as well as created a new site using the submodule method, and they both worked. Running |
OK, that's interesting. The only other Mac-specific issue we had before was about the number of open files: |
Ian M on the Write the Docs Slack was able to build my test repo on an M1 mac: https://github.com/317brian/docsy-hugo-module He's running Hugo 0.96.0 extended on Mac OS 12.4. I'm running Hugo 0.100.1 extended on Mac OS 12.3. I downgraded Hugo but still wasn't able to build. Will try upgrading my OS next (The Link to the convo: |
Upgrading to Mac OS 12.4 fixed it for me |
same, upgrade to Mac OS 12.4 fixed this problem. |
So I was actually about to comment @chrismetz09. The issue reoccurred for me with no changes to the repo or to the versions for anything (Hugo, Go, my OS, etc). But after I restarted my machine, it built again. What I noticed was that
These aren't there on subsequent successful builds |
Can confirm that this issue occurred for me when using a Mac (i7) with Monterey 12.3.1. After looking at the comments here, I upgraded my Mac OS to 12.4 and this issue was automatically resolved. Leaving this comment here for other Mac users who maybe facing this issue. |
Good to hear people are getting it working with upgrade. Should we add this as a known issue to our docs or is it something sufficiently short-lived with Mac versions that most people won't experience it? |
@317brian,
|
Yup, I've had the print error continue to show back up every few days. I'm not sure why a restart fixes it. A colleague has also encountered this issue, but she's not on an M1. Running Hugo/docsy in a docker container on her machine worked. |
For everyone's awareness, while I initially thought the fix for this seemingly random Mac issue is an OS upgrade, that is not the case. This error creeps up randomly after a few weeks on my machine and then a system restart fixes it. The reason it worked before was because I did a system restart as part of the OS upgrade process. Not familiar enough with Hugo to guess why this error creeps up now and then and why a restart fixes it. But this problem started with the "Docsy as a Hugo Module" move. Didn't have this issue when I was using Docsy as Git submodule. |
Did you find a solution for this? I'm using Windows and restart doesn't fix. Since the error appeared the first time, I'm unable to do anything. And running a new Hugo site that does not uses Docsy works. |
I've only been using docsy a few weeks, but encountered this same error. I found reference to "failed to resolve output format" elsewhere (external link), and I was able to fix with the following (Mac Mini, i7 MacOS 12.4, uptime 18+ days):
Given the above, there might be a correlation between people resolving this via a reboot, and the OS doing housecleaning of the TMP dir as part of a reboot. Hard to say. Given how I was able to fix it, suggests this issue may have something to do with hugo's handling of its mod cache, or Mac's handling of tmp dirs. |
Should we add this as a known issue in the docs, as it seems to crop up fairly frequently? |
I'm biased from having just run into this, but I'd say it's worthy of a mention somewhere in the docs. My bad for not reading the entire thread: I missed @ivan3bx's explanation in #805 (comment) This does indeed appear to be the precise issue. |
Similar to ivan3bx, I did the following to resolve this issue:
Then rerun the Hugo server command.
|
Deleting the cache as per rachfop worked for me, and I did not have to change the config or any of the other suggestions. Thanks Patrick! |
Updating submodules did not work for me...
```
❯ git submodule update --init --recursive
❯ hugo server
Error: from config: failed to resolve output format "print" from site config
```
But the cache clear as per #805 (comment) did work. Yay!
…On Mon, May 16, 2022 at 5:08 PM Andreas Deininger ***@***.***> wrote:
Did you run git submodule update --init --recursive? If not, please try
and see if this cures your problem.
—
Reply to this email directly, view it on GitHub
<#805 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB2E6KMPBSJPWM2UGGCCYDVKLBNDANCNFSM5KASIR6A>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I ran into the same issue today. This helped me to overcome the problem: In your
Remove the
The error should be gone, so you can continue with your installation. Once finished, you can add the For more background, please also have a look at the dicussion comment on issue 535 and on this discussion thread at hugo's discourse forum. |
I am running mac os 13.2.1 on M1 chip... but getting this error. |
It's been a minute, but I ran into this while setting up Heading self-links as per #1831.
And then the project failed to build, even when I removed the new |
Following the getting started instructions, I get the following error:
The text was updated successfully, but these errors were encountered: