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

error msg to import HTTPBasicAuth #92

Closed
SolomonYang opened this issue Nov 4, 2018 · 3 comments · Fixed by #93
Closed

error msg to import HTTPBasicAuth #92

SolomonYang opened this issue Nov 4, 2018 · 3 comments · Fixed by #93
Assignees

Comments

@SolomonYang
Copy link

(yabgp-virl)~/yabgp/bin @host> python yabgpd -h
Traceback (most recent call last):
File "yabgpd", line 38, in
from yabgp.agent.cmd import main
File "/home/solomonyang/yabgp/yabgp/agent/init.py", line 30, in
from yabgp.api.app import app
File "/home/solomonyang/yabgp/yabgp/api/app.py", line 21, in
from yabgp.api import v1
File "/home/solomonyang/yabgp/yabgp/api/v1.py", line 21, in
from flask.ext.httpauth import HTTPBasicAuth
ImportError: No module named ext.httpauth

according to https://flask-httpauth.readthedocs.io/en/latest/, changed the following line in yabgp/api/v1.py

from flask.ext.httpauth import HTTPBasicAuth

to
from flask_httpauth import HTTPBasicAuth

then it works well.

@xiaopeng163
Copy link
Member

thanks a lot, and welcome to submit a pull request. that will be very helpful if you like.

@SolomonYang
Copy link
Author

Sorry I am not that familiar with Github pull request. I created a branch called httpAuthImportFix and committed the fix. But failed when doing git push. Not sure if I missed anything here.

~/yabgp/yabgp/api @host> git branch

  • httpAuthImportFix
    master

~/yabgp/yabgp/api @host> git status
On branch httpAuthImportFix
nothing to commit, working tree clean

~/yabgp/yabgp/api @host> git push
fatal: The current branch httpAuthImportFix has no upstream branch.
To push the current branch and set the remote as upstream, use

git push --set-upstream origin httpAuthImportFix

~/yabgp/yabgp/api @host> git push --set-upstream origin httpAuthImportFix
Username for 'https://github.com': solomon.yang@gmail.com
Password for 'https://solomon.yang@gmail.com@github.com':
remote: Permission to smartbgp/yabgp.git denied to SolomonYang.
fatal: unable to access 'https://github.com/smartbgp/yabgp/': The requested URL returned error: 403

@xiaopeng163
Copy link
Member

thanks any way, then I will fixe that, thank you

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