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
Github connector: No module named 'jwt' #1949
Comments
Hello @fraimondo thank you for raising this issue. Just to be sure, do you get the same error if you install everything |
Yes, even with opsdroid[all]. I temporarily solved it locally by installing PyJWT and then removing the opsdroid/opsdroid/connector/github/__init__.py Lines 62 to 64 in ddd8a8e
But is this the proper way? |
Hello @fraimondo apologies for the delay in getting back to you. Does it mean we don't need to decode the token anymore? If you have bandwidth it would be good to add github to the list of connectors and PyJWT to the dependencies, similar to what we do for other connectors here Line 84 in ddd8a8e
|
Indeed this is the solution. I am a bit overwhelmed right now, but I can give it a try at a PR as soon as I find a few minutes free. It should not be a big issue to do it. |
Hello @fraimondo, this issue does not come up when installing with |
It might be the case that PyJWT gets installed as a dependency of a dependency. In my case, it was not installed even with Regarding the decode, I guess #1954 fixes that issue. |
@fraimondo Are you using the latest main or the latest version available in Pypi? If I'm not mistaken we haven't released the fix in #1954 🤔 |
I'm not using it. It's just that I saw the diff in #1954 and it's exactly what I did to fix the issue. |
Description
Please include a summary of the issue.
Just starting with opsdroid to create a github/matrix skill (linking github and matrix), having some functionality like what the github bot did to slack.
Problem is I get an error with the JWT module when starting opsdroid, namely a missing dependency not installed in the virtual environment.
Steps to Reproduce
Please also include relevant information and steps to reproduce the bug/issue.
Then create a
configuration.yaml
file like this:opsdroid start
will result in this:Expected Functionality
Explain what should happen.
Opsdroid should start
Experienced Functionality
Explain what happened instead(Please include the debug log).
Versions
Configuration File
Please include your version of the configuration file below.
Additional Details
Any other details you wish to include such as screenshots, console messages, etc.
I tried solving the issue by installing
jwt
orPyJWT
(and providing the right github settings), but:Installing
jwt
with pip gives en error:Installing PyJWT gives another error:
The text was updated successfully, but these errors were encountered: