Skip to content

expected newline, found an identifier #3

@ghost

Description

  • I have read the Filing Issues and subsequent “How to Get Help” sections of the documentation.
  • I have searched the issues (including closed ones) and believe that this is not a duplicate.

  • OS version and name: FreeBSD 13.0-RELEASE-p4
  • Python version:3.8.12
  • Pelican version: 4.7.1
  • Version of this plugin: 1.0.0

Steps up to this point:

  • I installed Stork as needed for this plugin via Rustup. stork --version reports 1.3.0.
  • I set up a venv with Pelican and generated some posts using the default theme. It all generated okay.
  • I installed pelican-search via pip in the venv
  • I set edited the theme to add the CDN code and add the search box.
  • I added SEARCH_MODE = "output" and SEARCH_HTML_SELECTOR = "main" to the pelicanconf.py file.
  • I called pelican to regenerate the site.

After that I got this error.

CRITICAL Exception: Search plugin         __init__.py:550
                    reported Error: expected                        
                    newline, found an identifier at                 
                    line 438 column 11   

Help! I do not understand Python at all, so I don't have any insight into the issue beyond what I have here. :( I am happy to provide additional information if requested (and given a little instruction on how).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions