Where are the documents stored?
Can I ask you to Sync up with Steve Sanchez on the ORA team who is working on something related?
Yes - the "Advanced" section you are looking for will not be under "problem", it will be its own green button:
<Screen Shot 2014-06-23 at 8.46.36 AM.png>
See the "Advanced" green button there? That's what you'll want to click.
On Mon, Jun 23, 2014 at 4:19 AM, Trinh Nguyen <dangt...@gmail.com> wrote:
Hi Peter,
I'm trying to use the edx-sga but have no luck. What I have done so far are:
+ Installed edx-sga (install from source) and added it to the /edx/app/edxapp/edx-platform/cms/envs/common.py+ Added edx_sga to advanced_modules in Settings
But I could not find the Staff Grade Assignment:
<edx_sga.png>
Yeah, I think we had to install it with the -e flag to get around that (I added an issue to the repo to fix setup.py so that won’t be needed in the future). So the command is
pip install -e git+https://github.com/mitodl/edx-sga#egg=edx-sga
I also added it to PyPi, but again until the setup.py file is fixed up, that won’t work right as you pointed out.
Ah, this error is related to the opaque-keys change and we haven’t caught up yet. You will need to use release tag release-2014-05-20 or earlier for this xblock to work until we can get it updated. The command for installing on an ansible built system is
sudo -u edxapp /edx/bin/pip.edxapp install -e git+[https://github.com/mitodl/edx-sga#egg=edx-sga](https://github.com/mitodl/edx-sga#egg=edx-sga)
However I would recommend making a change in the edx-platform repo adding -e git+[https://github.com/mitodl/edx-sga#egg=edx-sga
](https://github.com/mitodl/edx-sga#egg=edx-sga) to requirements/edx/github.txt so that it gets picked up by the configuration and paver commands.
Students will not be able to access this component. Re-edit your component to fix the error.
Error: staff_graded_assignment/show.html
pdp...@mit.edu | T 617-253-6256 | C 617-652-0183--
Regards,
Prathibha
C-DAC,
Chennai
sudo -H -u edxapp bash
source /edx/app/edxapp/edxapp_env
cd /edx/app/edxapp/edx-platform
git clone https://github.com/mitodl/edx-sga
cd edx-sga
Hi Prathibha, to install it I suggest you to do this :
First uninstall edx-sga.
Then (if you're not on vagrant, if you are I think the two first commands are useless) do this :
sudo -H -u edxapp bash
source /edx/app/edxapp/edxapp_env
cd /edx/app/edxapp/edx-platform
git clone https://github.com/mitodl/edx-sga
cd edx-sga
- python setup.py install
- cp -R templates/ /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/edx_sga-0.2.0-py2.7.egg/
This should work. I did the same thing and restarted the cms/lms just to be sure, but I do not know Python and it is probably overkill.
Jul 8 19:16:34 ip-172-31-19-193 [service_variant=lms][courseware.module_render][env:sandbox] ERROR [ip-172-31-19-193 27515] [module_render.py:634] - error executing xblock handler
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/lms/djangoapps/courseware/module_render.py", line 615, in _invoke_xblock_handler
resp = instance.handle(handler, req, suffix)
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/core.py", line 284, in handle
return self.runtime.handle(self, handler_name, request, suffix)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 960, in handle
return super(MetricsMixin, self).handle(block, handler_name, request, suffix=suffix)
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/runtime.py", line 643, in handle
results = handler(request, suffix)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/edx_sga-0.2.0-py2.7.egg/edx_sga/sga.py", line 252, in upload_assignment
self.location.to_deprecated_string(), self.uploaded_sha1, self.uploaded_filename)
AttributeError: 'Location' object has no attribute 'to_deprecated_string'
Jul 8 19:16:34 ip-172-31-19-193 [service_variant=lms][root][env:sandbox] ERROR [ip-172-31-19-193 27515] [exceptions.py:9] - Uncaught exception from <class 'django.core.handlers.wsgi.WSGIHandler'>
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/edx/app/edxapp/edx-platform/lms/djangoapps/courseware/module_render.py", line 545, in handle_xblock_callback
return _invoke_xblock_handler(request, course_id, usage_id, handler, suffix, request.user)
File "/edx/app/edxapp/edx-platform/lms/djangoapps/courseware/module_render.py", line 615, in _invoke_xblock_handler
resp = instance.handle(handler, req, suffix)
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/core.py", line 284, in handle
return self.runtime.handle(self, handler_name, request, suffix)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 960, in handle
return super(MetricsMixin, self).handle(block, handler_name, request, suffix=suffix)
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/runtime.py", line 643, in handle
results = handler(request, suffix)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/edx_sga-0.2.0-py2.7.egg/edx_sga/sga.py", line 252, in upload_assignment
self.location.to_deprecated_string(), self.uploaded_sha1, self.uploaded_filename)
AttributeError: 'Location' object has no attribute 'to_deprecated_string'
Jul 8 19:16:34 ip-172-31-19-193 [service_variant=lms][django.request][env:sandbox] ERROR [ip-172-31-19-193 27515] [base.py:215] - Internal Server Error: /courses/SGUx/OHOM1/2014/xblock/i4x:;_;_SGUx;_OHOM1;_edx_sga;_5475971dcec34ec29321963239a9901d/handler/upload_assignment
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/edx/app/edxapp/edx-platform/lms/djangoapps/courseware/module_render.py", line 545, in handle_xblock_callback
return _invoke_xblock_handler(request, course_id, usage_id, handler, suffix, request.user)
File "/edx/app/edxapp/edx-platform/lms/djangoapps/courseware/module_render.py", line 615, in _invoke_xblock_handler
resp = instance.handle(handler, req, suffix)
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/core.py", line 284, in handle
return self.runtime.handle(self, handler_name, request, suffix)
File "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/x_module.py", line 960, in handle
return super(MetricsMixin, self).handle(block, handler_name, request, suffix=suffix)
File "/edx/app/edxapp/venvs/edxapp/src/xblock/xblock/runtime.py", line 643, in handle
results = handler(request, suffix)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/edx_sga-0.2.0-py2.7.egg/edx_sga/sga.py", line 252, in upload_assignment
self.location.to_deprecated_string(), self.uploaded_sha1, self.uploaded_filename)
AttributeError: 'Location' object has no attribute 'to_deprecated_string'
Jul 8 19:16:34 ip-172-31-19-193 [service_variant=lms][gunicorn.error][env:sandbox] ERROR [ip-172-31-19-193 27515] [glogging.py:219] - Error handling request
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 126, in handle_request
respiter = self.wsgi(environ, resp.start_response)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 241, in __call__
response = self.get_response(request)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 179, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 228, in handle_uncaught_exception
return callback(request, **param_dict)
File "/edx/app/edxapp/edx-platform/lms/djangoapps/static_template_view/views.py", line 69, in render_500
return HttpResponseServerError(render_to_string('static_templates/server-error.html', {}))
File "/edx/app/edxapp/edx-platform/common/djangoapps/edxmako/shortcuts.py", line 104, in render_to_string
return template.render_unicode(**context_dictionary)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/mako/template.py", line 452, in render_unicode
as_unicode=True)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/mako/runtime.py", line 807, in _render
**_kwargs_for_callable(callable_, data))
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/mako/runtime.py", line 839, in _render_context
_exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/mako/runtime.py", line 865, in _exec_template
callable_(context, *args, **kwargs)
File "/tmp/tmpZMOPZomako/main.html.py", line 253, in render_body
__M_writer(filters.decode.utf8(self.body()))
File "/tmp/tmpZMOPZomako/static_templates/server-error.html.py", line 40, in render_body
platform_name=u"<em>{}</em>".format(platform_name=settings.PLATFORM_NAME)
IndexError: tuple index out of range
Also, the question is not visible correctly in LMS, as shown below
<Selection_005.png>
On Thu, Jul 10, 2014 at 4:19 PM, Utkarsh J <jadhav....@gmail.com> wrote:
And changed it accordingly.I am trying to install SGA on edx Feb code. The Feb version XBlock has not all fields required for the sga to work ( DateTime field) . So I made changes inGuys,
/edx/app/edxapp/venvs/edxapp/lib/python2.7/site-packages/xblock/fields.py
Now, I the Staff Grading Assignment is available.<Selection_002.png>
However, there are problems with its overall appearance and functioning. as shown below
<Selection_003.png><Selection_004.png>
Thanks in advance!
--Regards,
Utkarsh J.
/edx/var/edxapp/uploads/edX/Open_DemoX/edx_sga/
Nate
"There was an error with file upload."
"event: " Object { type: "fileuploadfail", timeStamp: 1405946026981, jQuery172024313686240373766: true, target: <input.fileupload>, isTrigger: true, exclusive: undefined, namespace: "", namespace_re: null, result: undefined }
"data: " Object { disabled: false, create: null, dropZone: Object, pasteZone: Object, replaceFileInput: true, singleFileUploads: true, sequentialUploads: false, forceIframeTransport: false, multipart: true, recalculateProgress: true, errorThrown: "INTERNAL SERVER ERROR", 41 more… }
Guys,
I still have the same problem as before. And I don't know how to fix it. Can anyone help me?Log file in /edx/var/log/lms/edx.log: https://gist.github.com/d0cc72bf7af51393fdd6
When I try to upload some data (I tried all sizes), I get error "There was an error uploading your file" and in the console I can see object "data" - json file with 42+ variables inside. Some of them are:
uploadedBytes:"Uploaded bytes exceed file size"
errorThrown:"INTERNAL SERVER ERROR"
I think it's a problem with adding 'edx-sga' to INSTALLED_APPS.
Where did you add it? In which file?
On Friday, June 20, 2014 5:17:39 PM UTC+3, Peter Pinch wrote:MIT's Office of Digital learning has released an XBlock for a Staff Graded Assignment (SGA). When placed in a course, this XBlock allows students to upload documents which can be viewed and graded by course staff. While this approach does not scale well for MOOC-sized courses, we have found it useful for small courses where there time to review and grade every student submission.
Installation instructions and (minimal) course author instructions are available in the readme.
We are planning some enhancements to SGA this summer:- refactoring to use the new submissions app- roles support and workflow, so instructors can approve staff grades
Special thanks to Jazkarta and Chris Rossi who did the coding for MIT.
If you have any questions or suggestions, please let us know on this list.
- Peter Pinch
Peter Pinch | Production Manager, Office of Digital LearningMassachusetts Institute of Technology11 Cambridge Center | Cambridge MA 02142E pdp...@mit.edu | T 617-253-6256 | C 617-652-0183
<div class="inner-wrapper" style="color: black;height: 350px;overflow: auto">
Hi,I have installed the Staff Graded Assignment (SGA) XBlock on my Devstack and seen it work nicely. I have also installed it on my production stack. However when I try uploading a file on the Production stack I see Uploading... 100% and after looking at the output for sudo tail -f /edx/var/log/{lms,cms,nginx}/*log I see that there is a 500 error. I am using the release branch. I read in these posts about changing the storage to local storage. How do you change production stack to use local storage, if this is the solution to the problem. Thanks.
Hi Cristian,At first my installation had invisibilities as well. What I did was uninstall edx-sga and reinstall edx sga. You can uninstall by:sudo -H -u edxapp bashsource /edx/app/edxapp/edxapp_envcd /edx/app/edxapp/venvs/edxapp/srcpip uninstall edx-sgaNext I reinstalled using the release branch pip install -e git+https://github.com/mitodl/edx-sga@release#egg=edx-sgaI did database migrations again and Restarted ServicesLMS/CMS - sudo /edx/bin/supervisorctl -c /edx/etc/supervisord.conf restart edxapp:Workers - sudo /edx/bin/supervisorctl -c /edx/etc/supervisord.conf restart edxapp_worker:(I am using production stack for the above.) For developer stack you can do the same. You would uninstall edx-sga, reinstall edx-sga, do database migrations, and then:sudo su edxapppaver devstack studio
On Monday, September 8, 2014 6:11:21 PM UTC-5, Cristian Salamea wrote:I have an issue, there is not button in editor. I attach an img.On Mon, Sep 8, 2014 at 5:13 PM, Edwardo Hanna <hanna....@gmail.com> wrote:Hi,I have installed the Staff Graded Assignment (SGA) XBlock on my Devstack and seen it work nicely. I have also installed it on my production stack. However when I try uploading a file on the Production stack I see Uploading... 100% and after looking at the output for sudo tail -f /edx/var/log/{lms,cms,nginx}/*log I see that there is a 500 error. I am using the release branch. I read in these posts about changing the storage to local storage. How do you change production stack to use local storage, if this is the solution to the problem. Thanks.--