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

Make site be buildable with Python 3 #45

Closed
perlun opened this issue Jan 6, 2024 · 4 comments
Closed

Make site be buildable with Python 3 #45

perlun opened this issue Jan 6, 2024 · 4 comments

Comments

@perlun
Copy link
Owner

perlun commented Jan 6, 2024

Quoting #26 (comment), which in turn takes this from 81254d8:

There is an annoying problem here:

  • The site depends on pygments.rb
  • Pygments.rb in turn, communicates with a Python process using a pipe (reading and writing to stdin/stdout from Python running as a child process)
  • The version of Pygments.rb we use (?) do not work with Python 3. Only Python 2 works.

Ubuntu 22.04 uses Python 3 by default (and this is perhaps the case with Ubuntu 20.04 also), which causes errors like the one seen in https://github.com/perlun/perlun.eu.org/actions/runs/5913115348/job/16037183000. Copying it here into the git commit log, since Github Actions logs are unfortunately not retained forever.

bundle exec jekyll build
      Deprecation: The 'gems' configuration option has been renamed to 'plugins'. Please update your config file accordingly.
Configuration file: /home/runner/work/perlun.eu.org/perlun.eu.org/_config.yml
           Source: /home/runner/work/perlun.eu.org/perlun.eu.org
      Destination: /home/runner/work/perlun.eu.org/perlun.eu.org/_site
Incremental build: disabled. Enable with --incremental
     Generating...
Building site for default language: "xx" to: /home/runner/work/perlun.eu.org/perlun.eu.org/_site
Building site for language: "sv" to: /home/runner/work/perlun.eu.org/perlun.eu.org/_site/sv
Loading translation from file /home/runner/work/perlun.eu.org/perlun.eu.org/_i18n/sv.yml
Building site for language: "en" to: /home/runner/work/perlun.eu.org/perlun.eu.org/_site/en
  Conversion error: Jekyll::Converters::Markdown encountered an error while converting '_i18n/en/_posts/2017-03-17-new-features-in-c-sharp-6-0-and-7-0.md':
                    No header received back.
jekyll 3.9.2 | Error:  No header received back.

We need to make this work, by the next year at the very latest, since Ubuntu 20.04 is going EOL then. It's unclear if/when GitHub will drop support for it, but let's rest assured that it will happen sooner or later.

@perlun perlun changed the title Make site be compilable with Python 3 Make site be buildable with Python 3 Jan 6, 2024
perlun referenced this issue Jan 6, 2024
There is an annoying problem here:

- The site depends on `pygments.rb`
- Pygments.rb in turn, communicates with a Python process using a pipe
  (reading and writing to stdin/stdout from Python running as a child
  process)
- The version of Pygments.rb we use (?) do not work with Python 3. Only
  Python 2 works.

Ubuntu 22.04 uses Python 3 by default (and this is perhaps the case with
Ubuntu 20.04 also), which causes errors like the one seen in
https://github.com/perlun/perlun.eu.org/actions/runs/5913115348/job/16037183000.
Copying it here into the git commit log, since Github Actions logs are
unfortunately not retained forever.

bundle exec jekyll build
       Deprecation: The 'gems' configuration option has been renamed to 'plugins'. Please update your config file accordingly.
Configuration file: /home/runner/work/perlun.eu.org/perlun.eu.org/_config.yml
            Source: /home/runner/work/perlun.eu.org/perlun.eu.org
       Destination: /home/runner/work/perlun.eu.org/perlun.eu.org/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
Building site for default language: "xx" to: /home/runner/work/perlun.eu.org/perlun.eu.org/_site
Building site for language: "sv" to: /home/runner/work/perlun.eu.org/perlun.eu.org/_site/sv
Loading translation from file /home/runner/work/perlun.eu.org/perlun.eu.org/_i18n/sv.yml
Building site for language: "en" to: /home/runner/work/perlun.eu.org/perlun.eu.org/_site/en
  Conversion error: Jekyll::Converters::Markdown encountered an error while converting '_i18n/en/_posts/2017-03-17-new-features-in-c-sharp-6-0-and-7-0.md':
                    No header received back.
jekyll 3.9.2 | Error:  No header received back.
@perlun
Copy link
Owner Author

perlun commented Jan 6, 2024

@perlun
Copy link
Owner Author

perlun commented Jul 21, 2024

Should be fixed as of #54, I think. Let's try upgrading the CI to Ubuntu 22.04 now to see if it works. If we're really wild and crazy, we could even give 24.04 a shot (but I'm not sure GitHub supports it yet? Checked: public beta is available now: actions/runner-images#9691).

@perlun
Copy link
Owner Author

perlun commented Jul 21, 2024

Let's try upgrading the CI to Ubuntu 22.04 now to see if it works

#56

@perlun
Copy link
Owner Author

perlun commented Jul 21, 2024

Fixed in #56 indeed, and seems to works fine. 🎉 Closing away.

@perlun perlun closed this as completed Jul 21, 2024
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

1 participant