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
unable to fetch assignments #776
Comments
Hmm, this should have been fixed by #593 , and I can't reproduce it on a clean install of nbgrader. It is possible, perhaps, that you are using an old version of the extension. Can you try running the following command:
And then restarting the Jupyter server? Does the problem still persist? |
Thank you for your prompt reply, much appreciated. i am not sure what #593 tells me to do |
#593 does not tell you to do anything---what you're reporting is a legitimate bug, but it was fixed by #593 so that leads me to believe your extension code is out-of-date (i.e., the bugfix is not in the version of the extension you're using). So hopefully updating the version of the extension (by running the command I sent) will fix the problem. |
I have a test server here, which is a clone of the live server, just before the time the prof created and released assignments. But other than that, the two servers are the same. On the clone server i do the traceback looks like anaconda is looking at any help would be much appreciated, sorry for all this |
It looks like you have two different versions of python on your test server that are conflicting with each other, as evidenced by the path from the traceback ( Can you try the following:
|
thank you SO much however i start jupyter as a service rc.local as follows |
Ok, does it work to do:
Additionally, you should make sure the path you use to start your jupyterhub service has the anaconda directory at the beginning of the path, and to launch jupyterhub from your anaconda distribution, i.e.
Also, would you mind pasting your commands/output using markdown backticks, |
thank you and my apologies for the markdown
i am not sure how to continue though |
Does fetching now work, or do you still get the same error? |
(Note: make sure you have restarted jupyterhub) |
thank you |
You can test on your test server using the assignments created by
Then test fetching ps1 from testcourse using the assignment list extension. |
thank you |
You can do it with your regular user. The exchange directory (by default
And if they are not correct run:
|
after rebooting the test server, oddly enough, i see the assignments from a year ago, but when i try to fetch them i get the same error, namely Error fetching assignment. I do not see the ps1 though. |
ok now i need more help, i am on the actual server. i do
what am i missing here |
Let's try to get this working on your test server before the live server just so we don't mess anything up there. Also, that error is the same one you got before, which suggests you have multiple versions of nbgrader installed. On your test server, try upgrading nbgrader and the extension that's installed in your python3.4 installation too.
Then test whether fetch works. |
i appreciate your patience with me.
|
Are there errors in the javascript console or in the output of jupyterhub? |
on the test server as user kiriaki from the command line i do |
the java console says
|
When you released the assignment with nbgrader quickstart, you might have released it to the default exchange directory ( |
i edited the exchange directory to be /share/class_2016/outbound
but through the jupyter hub i still get the same error on the javascript console namely |
What is the output of:
and
? |
|
|
Umm... hmm. Ok. It seems like you have some very severe issues going on with your two installations of python conflicting. It is generally a good idea to only use one way of installing python otherwise you can end up in situations like this 😞 I think you need to make a decision about whether you want to use anaconda or not, and then stick with that for everything. For example, if you decide you want to use anaconda, then uninstall nbgrader, jupyterhub, and jupyter from your system python, and then reinstall them with anaconda python:
Then, make sure the Alternately, if you want to use your system python, then uninstall nbgrader, jupyter, and jupyterhub from your anaconda installation and reinstall them with system python:
Then, make sure anaconda isn't anywhere on your |
Did you follow my suggestion in the previous comment, about choosing one or the other of anaconda or the local installation? Which did you choose? Are there any error messages in the JupyterHub output? |
Thank you very much. /usr/local/anaconda3/bin/jupyter nbextension install --system --overwrite --py nbgrader
/usr/local/anaconda3/bin/jupyter nbxtension enable --system --py nbgrader
/usr/local/anaconda3/bin/jupyter serverextension enable --system --py nbgrader i then logged in as kiriaki and sure enough i can see the ps1 assignment on the ASSIGNMENTs tab |
Great, I'm glad it seems to be working now! I'd recommend taking the same steps on the live server (though I would probably back up your assignments and your students' files, just in case). Make sure you're only using one installation of python, with all of nbgrader, jupyter, and jupyterhub pointing to that installation. Make sure nbgrader is up-to-date, and then reinstall the nbextensions. |
on the test server what do i need to do so that another user can see the Assignment ps1, 1)in the nbgrader_config.py i added student4 in the NbGrader.db_students
|
Is this is the same 403 forbidden error from before? If so, please let me know if there are any errors from the output of JupyterHub as I requested earlier. If not, please check both the javascript console and the JupyterHub output and report if there are any errors. In general it would be helpful if when things aren't working, you always checked these two things and reported any errors. I usually can't debug something just by knowing it isn't working; I need to know some more context about what the errors are and where they are coming from. Thanks! |
on the test server student4 now works. the problem is that student4 looks at the /usr/local/bin/
|
Sorry for the silence, i just got access to yet another clone of the server and even though i fixed the nbextension, other things broke. I will see what i can do, but i wanted to say thank you. |
Glad to hear you got the nbextension working, though sorry to hear other things broke! I am going to close this issue since this specifically seems to be resolved, but feel free to open another if you encounter further problems. |
Thank you very much. The moral of the story is to stick with either pip or anaconda if possible |
Good morning
i would really appreciate help as i have a summer class and the students can not fetch assingments
1)nbgrader --version
nbgrader version 0.4.0
on the command line
nbgrader fetch aewk1 !this one works
2)jupyter notebook
in the assignment Tab, i see the assignment, but when i click Fetch i get
NotebookApp] 403 POST /assignments/fetch (::1): '_xsrf' argument missing from POST
3)on the jupyter hub it also fails
many thanks and kind regards
kiriaki
The text was updated successfully, but these errors were encountered: