sopel-irc / sopel-github

GitHub plugin for Sopel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't load on new Sopel setup

GideonWolfe opened this issue · comments

Not sure if I'm doing something wrong, but I'm running sopel in docker. I added this package to the list to automatically download, which it does.

Then in a buffer with sopel I run .load github and I am presented with

SyntaxError: invalid syntax (file "/home/sopel/.local/bin/python3.6/site-packages/sopel_modules/github/webhook.py, line 167)

I'm not doing anything with webhooks, would just like to query the occasional repo...

commented

That doesn't make sense. Line 167 is bog-standard Python, syntactically equivalent to the line above it.

if 'scope' not in res:

@HumorBaby Any insights, given this is happening with Docker?

@GideonWolfe What version of the Sopel Docker image are you using, and what version of sopel-github is it loading?

commented

Ack, it was the line above that. Should be fixed by 23a3a28 / 0.2.6 (publishing momentarily). Git blame points to #51 as the spot where this syntax error slipped through code review.

commented

Verified that the latest release (0.2.6) loads without errors on the "official" Sopel instance in our freenode channel. If this issue is not actually resolved, feel free to reopen with further details!

Works great now, thanks for the quick fix!

commented

Thank you for letting me know there was a problem!