harvard-vpal / bridge-adaptivity Goto Github PK
View Code? Open in Web Editor NEWBridge for Adaptivity
License: BSD 3-Clause "New" or "Revised" License
Bridge for Adaptivity
License: BSD 3-Clause "New" or "Revised" License
When a learner submits a problem in the content source, the following error logs are produced:
File "/bridge_adaptivity/module/views.py", line 302, in callback_sequence_item_grade
update_lms_grades(request, sequence, user_id)
File "/bridge_adaptivity/bridge_lti/outcomes.py", line 26, in update_lms_grades
user_id, score, lms_response.code_major.text
AttributeError: 'NoneType' object has no attribute 'text'
This appears to happen right after successful saving of a module.models.Log instance in the bridge, and a successful sending and saving of a score record in the connected adaptive engine - looks like its during logging of the return response to the content source. So at least all the right data is being saved - and the learner is still able to progress through their problem sequence. But it makes it appear to the content source as if there was trouble saving the score on the bridge. Not sure if there are implications for that. Logs from the content source:
[service_variant=lms][edx.lti_provider][env:sandbox] ERROR [open-edx-vpal 16022] [outcomes.py:150] - Outcome Service: Failed to update score on LTI consumer. User: HdmqsdXitSRkXHrB9zbfD1UBNgZeYV, course: course-v1:MSFT+DAT222x+4T2017, usage: block-v1:MSFT+DAT222x+4T2017+type@problem+block@84ec7b7c3dae47299274a3a822319d7b, score: 0.0, status: <Response [500]>, body: Unknown
Engines may be able to use information such as which instance of the collection (assuming many possible module instances derived from the same collection) the student is currently in. API spec TBD
Probably need to call the function (missing parentheses) in order to check the lms response status:
https://github.com/harvard-vpal/bridge-adaptivity/blob/master/bridge_adaptivity/bridge_lti/outcomes.py#L24
https://github.com/harvard-vpal/bridge-adaptivity/blob/master/bridge_adaptivity/bridge_lti/outcomes.py#L28
Object reference:
https://github.com/pylti/lti/blob/master/src/lti/outcome_response.py#L72
When running with local settings, if there is no STATIC_ROOT setting in settings/secure.py,
throws an error before setting the default value for STATIC_ROOT defined in
We can get user_id from the sequence model instance argument
@wowkalucky @idegtiarov How should I run flake8 tests locally? Currently I just use flake8 .
It seems like there are errors that get caught during the Travis build (on github push) but not during my local run.
I got the Admin login panel UI successfully. but i want to know how to get the credential to login to the system. pls anyone help me...
sudo yum update -y
sudo yum install docker -y
sudo amazon-linux-extras install docker
sudo service docker start
sudo usermod -a -G docker ec2-user
sudo chkconfig docker on
sudo yum install -y git
sudo reboot
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/bin/docker-compose
sudo chmod +x /usr/bin/docker-compose
docker-compose version
git clone https://github.com/harvard-vpal/bridge-adaptivity.git
cd bridge-adaptivity/
cd bridge_adaptivity/config/settings/
vim secure_example.py
added the ["*"] instead of ["localhost"] in the host config
sudo make run-local
Docker exec -it BFA python manage.py createsuperuser
Username: admin
Email address: [email protected]
Password: **********
Password (again): *********
Superuser created successfully.
I have set adaptive engine project in my local machine successfully. i can able to access Web application from following URL http://localhost:8008. But i couldn't able to access Web API Project using http://localhost:8000 URL. the following error is displaying. please anyone fix this issue...
The submit_activity_answer()
method in VPAL engine driver tries to use learner
and activity
attributes of sequence_item instance directly, but learner
is not a model field of sequence_item, and activity
attribute is a model instance.
by "psycopg2==2.7.3" in requirements_base.txt, some error messages appeared and the installation could not be completed. change as "psycopg2==2.7.3.2" is ok.
P.S.
I had installed the bridge-adaptivity by the command "make run-local".
I tried by "localhost:8008" or "localhost:8008/admin" in browser.
But I can't find the help about the login username and password in wiki.
Can you give me some help? Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.