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

CRITICAL: NameError: name 'instance' is not defined #17

Open
antgel opened this issue Nov 16, 2018 · 1 comment
Open

CRITICAL: NameError: name 'instance' is not defined #17

antgel opened this issue Nov 16, 2018 · 1 comment

Comments

@antgel
Copy link

antgel commented Nov 16, 2018

As per stack trace below.

Traceback (most recent call last):
  File "/home/antony/.virtualenvs/jewishfalmouth/bin/pelican", line 11, in <module>
    sys.exit(main())
  File "/home/antony/.virtualenvs/jewishfalmouth/lib/python3.6/site-packages/pelican/__init__.py", line 609, in main
    autoreload(watchers, args, old_static, reader_descs)
  File "/home/antony/.virtualenvs/jewishfalmouth/lib/python3.6/site-packages/pelican/__init__.py", line 513, in autoreload
    pelican.run()
  File "/home/antony/.virtualenvs/jewishfalmouth/lib/python3.6/site-packages/pelican/__init__.py", line 184, in run
    signals.all_generators_finalized.send(generators)
  File "/home/antony/.virtualenvs/jewishfalmouth/lib/python3.6/site-packages/blinker/base.py", line 267, in send
    for receiver in self.receivers_for(sender)]
  File "/home/antony/.virtualenvs/jewishfalmouth/lib/python3.6/site-packages/blinker/base.py", line 267, in <listcomp>
    for receiver in self.receivers_for(sender)]
  File "/home/antony/src/git/pelican-plugins/pelican-open_graph/open_graph.py", line 45, in open_graph_tag_articles
    open_graph_tag(page)
  File "/home/antony/src/git/pelican-plugins/pelican-open_graph/open_graph.py", line 59, in open_graph_tag
    soup = BeautifulSoup(instance._content, 'html.parser')
NameError: name 'instance' is not defined```
@askpatrickw
Copy link

The bug is that the pelican-plugins repro is linked to this repro at pelican-open_graph @ 83b5499 so the linked version does not work. The Master dos have the fix for this issue in the very next checkin.

I think the repo owners need to change the linked version.

If you need to work around see: 2892cbc#diff-ee3c3cb5c3014fa874d8f4d98615cf96

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

2 participants