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

Command Line Issues #6

Open
aop4 opened this issue Jun 9, 2017 · 2 comments
Open

Command Line Issues #6

aop4 opened this issue Jun 9, 2017 · 2 comments

Comments

@aop4
Copy link

aop4 commented Jun 9, 2017

Hi Chris! I've been having an issue with your application. I registered my application with Coursera and am following your instructions to the tee. When the program prompts me for the client id and client secret, I enter those given by Coursera. Then it says Please enter the requested scopes of the app not including "view_profile", separated by whitespace. The only scope we're requesting from Coursera is view_profile, and we definitely don't want to use the only other scope available, which allows you to communicate with users through Coursera. So naturally we shouldn't type anything here, right? But I get an error message if I simply hit enter:

ERROR:root:Problem when running command. Sorry!
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/courseraoauth2client/main.py", line 64, in main
    return args.func(args)
  File "/usr/local/lib/python2.7/dist-packages/courseraoauth2client/commands/config.py", line 36, in authorize
    oauth2_instance = oauth2.build_oauth2(args.app, args)
  File "/usr/local/lib/python2.7/dist-packages/courseraoauth2client/oauth2.py", line 472, in build_oauth2
    configure_app(app, cfg)
  File "/usr/local/lib/python2.7/dist-packages/courseraoauth2client/oauth2.py", line 517, in configure_app
    with open(cfg_path, 'wb') as configfile:
IOError: [Errno 2] No such file or directory: '/home/andrew/.coursera/courseraoauth2client.cfg'
@ckozin
Copy link

ckozin commented Oct 4, 2018

I don't know if you have found your answer or not, but in case others have this issue, the solution that worked for me was to create the directory .coursera in the user's home directory.

@dhruvd25
Copy link

dhruvd25 commented Jul 10, 2019

Yes, I can confirm that the above comment is accurate. Used
mkdir home/username/.coursera in the folder and I was able to authenticate it.

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

3 participants