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

Invalid byte sequence error when building on Ubuntu 22.04 #257

Open
1 of 3 tasks
yardasol opened this issue Apr 29, 2022 · 5 comments
Open
1 of 3 tasks

Invalid byte sequence error when building on Ubuntu 22.04 #257

yardasol opened this issue Apr 29, 2022 · 5 comments

Comments

@yardasol
Copy link
Contributor

This repository's issues are reserved for feature requests, and bug reports, and questions.

I'm submitting a ...

  • bug report
  • feature request
  • question

Expected Behavior

The website builds without issue

Actual Behavior

$ jekyll serve --trace
Configuration file: /home/ooblack/projects/arfc.github.io/_config.yml
            Source: /home/ooblack/projects/arfc.github.io
       Destination: /home/ooblack/projects/arfc.github.io/_site
 Incremental build: disabled. Enable with --incremental
      Generating... 
    Jekyll-scholar: Option `use_raw_bibtex_entry` is no longer supported
  Liquid Exception: invalid byte sequence in US-ASCII in /home/ooblack/projects/arfc.github.io/_layouts/publications.html
/home/ooblack/gems/gems/bibtex-ruby-6.0.0/lib/bibtex/lexer.rb:220:in `scan_until': invalid byte sequence in US-ASCII (ArgumentError)
	from /home/ooblack/gems/gems/bibtex-ruby-6.0.0/lib/bibtex/lexer.rb:220:in `parse_meta'
	from /home/ooblack/gems/gems/bibtex-ruby-6.0.0/lib/bibtex/lexer.rb:180:in `analyse'
	from bibtex.y:110:in `parse'
	from /home/ooblack/gems/gems/bibtex-ruby-6.0.0/lib/bibtex/bibliography.rb:67:in `parse'
	from /home/ooblack/gems/gems/jekyll-scholar-7.0.0/lib/jekyll/scholar/utilities.rb:193:in `bibliography'
	from /home/ooblack/gems/gems/jekyll-scholar-7.0.0/lib/jekyll/scholar/utilities.rb:219:in `entries'
	from /home/ooblack/gems/gems/jekyll-scholar-7.0.0/lib/jekyll/scholar/utilities.rb:838:in `cited_entries'
	from /home/ooblack/gems/gems/jekyll-scholar-7.0.0/lib/jekyll/scholar/tags/bibliography.rb:20:in `render'
	from /home/ooblack/gems/gems/liquid-4.0.3/lib/liquid/block_body.rb:103:in `render_node_to_output'
	from /home/ooblack/gems/gems/liquid-4.0.3/lib/liquid/block_body.rb:91:in `render'
	from /home/ooblack/gems/gems/liquid-4.0.3/lib/liquid/template.rb:208:in `block in render'
	from /home/ooblack/gems/gems/liquid-4.0.3/lib/liquid/template.rb:242:in `with_profiling'
	from /home/ooblack/gems/gems/liquid-4.0.3/lib/liquid/template.rb:207:in `render'
	from /home/ooblack/gems/gems/liquid-4.0.3/lib/liquid/template.rb:220:in `render!'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/liquid_renderer/file.rb:39:in `block (3 levels) in render!'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/liquid_renderer/file.rb:59:in `measure_counts'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/liquid_renderer/file.rb:38:in `block (2 levels) in render!'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/liquid_renderer/file.rb:63:in `measure_bytes'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/liquid_renderer/file.rb:37:in `block in render!'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/liquid_renderer/file.rb:70:in `measure_time'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/liquid_renderer/file.rb:36:in `render!'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/renderer.rb:131:in `render_liquid'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/renderer.rb:194:in `render_layout'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/renderer.rb:163:in `place_in_layouts'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/renderer.rb:93:in `render_document'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/renderer.rb:63:in `run'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/site.rb:547:in `render_regenerated'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/site.rb:539:in `block in render_pages'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/site.rb:538:in `each'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/site.rb:538:in `render_pages'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/site.rb:211:in `render'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/site.rb:80:in `process'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/command.rb:28:in `process_site'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/commands/build.rb:65:in `build'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/commands/build.rb:36:in `process'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/command.rb:91:in `each'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/command.rb:91:in `process_with_graceful_fail'
	from /home/ooblack/gems/gems/jekyll-4.2.2/lib/jekyll/commands/serve.rb:86:in `block (2 levels) in init_with_program'
	from /home/ooblack/gems/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
	from /home/ooblack/gems/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
	from /home/ooblack/gems/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
	from /home/ooblack/gems/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
	from /home/ooblack/gems/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
	from /home/ooblack/gems/gems/jekyll-4.2.2/exe/jekyll:15:in `<top (required)>'
	from /home/ooblack/gems/bin/jekyll:25:in `load'
	from /home/ooblack/gems/bin/jekyll:25:in `<main>'

I initially thought that Jekyll was having trouble rendering the raw bibtex (use_raw_bibtex_entry is no longer supported), however after downgrading both jekyll and jekyll-scholar to versions that would support this option, I ran into the same issue.

Steps to Reproduce the Problem

  1. Checkout yardasol-patch-1
  2. Run jekyll serve

Specifications

  • Version:
    • jekyll 4.2.2
    • ruby 3.0.2p107
    • gem 3.3.5
    • GNU Make 4.3
    • gcc 11.2.0
  • Platform: Ubuntu 22.04

How can this issue be closed?

This issue can be closed when a PR exists that makes changes that allow the website to build.

@yardasol
Copy link
Contributor Author

@munkm can you try to reproduce? I wonder if it's an OS thing.

@munkm
Copy link
Member

munkm commented Apr 29, 2022

I'll try it when I get a chance!

@yardasol
Copy link
Contributor Author

@munkm bump

@yardasol
Copy link
Contributor Author

This is relevant to #247

@munkm
Copy link
Member

munkm commented Jul 19, 2022

On my machine I am able to build and preview the site. Here are the commands I used:

$rake generate

Configuration file: /Users/madicken/repos/arfc/arfc.github.io/_config.yml
    Jekyll-scholar: Option `use_raw_bibtex_entry` is no longer supported

$jekyll serve

Configuration file: /Users/madicken/repos/arfc/arfc.github.io/_config.yml
            Source: /Users/madicken/repos/arfc/arfc.github.io
       Destination: /Users/madicken/repos/arfc/arfc.github.io/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
    Jekyll-scholar: Option `use_raw_bibtex_entry` is no longer supported
                    done in 3.703 seconds.
 Auto-regeneration: enabled for '/Users/madicken/repos/arfc/arfc.github.io'
    Server address: http://127.0.0.1:4000/
  Server running... press ctrl-c to stop.

I am using rvm to manage ruby versions. I haven't updated ruby in a while, so I'm using ruby-2.7.2, rake version 13.0.1, and jekyll 4.2.0

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

No branches or pull requests

2 participants