Similar error comes up with latest version of Xblock-SDK. Hope this might
help, steps to install Xblock-SDK
-
- cd /edx/app/
- sudo mkdir xblock_development
- cd xblock_development/
- sudo virtualenv venv
- source venv/bin/activate
- sudo git clone https://github.com/edx/xblock-sdk.git
- cd xblock-sdk/
- sudo pip install -r requirements/base.txt
- cd ..
- sudo xblock-sdk/bin/workbench-make-xblock
- sudo pip install -e myxblock
- sudo mkdir /edx/app/xblock_development/var/
- sudo touch /edx/app/xblock_development/var/workbench.log
- sudo python xblock-sdk/manage.py migrate
- sudo mkdir xblock-sdk/workbench/migrations
- sudo vi xblock-sdk/workbench/migrations/initial.py (*Note*: content of
initial.py is attached)
- sudo python xblock-sdk/manage.py makemigrations workbench
- sudo python xblock-sdk/manage.py migrate
- sudo python xblock-sdk/manage.py runserver
Thanks
Prabhanshu
>
--
You received this message because you are subscribed to the Google Groups
"General Open edX discussion" group.
To view this discussion on the web visit
https://groups.google.com/d/msgid/edx-code/983b6db5-70ec-48e5-b9c1-2265b60daa91%40googlegroups.com.
from django.db import migrations, models
class Migration(migrations.Migration):
operations = [
migrations.CreateModel(
name = 'XBlockState',
fields = [
('id', models.AutoField(verbose_name = 'ID', serialize = False, auto_created = True, primary_key = True)),
('scope', models.CharField(max_length = 50, blank = True, db_index = True, null = True, choices = [(b' block', 'block'), (b' parent', 'parent'), (b' children', 'children')])),
('scope_id', models.CharField(max_length = 255, blank = True, db_index = True, null = True, verbose_name = 'Scope ID')),
('user_id', models.CharField(max_length = 255, blank = True, db_index = True, null = True, verbose_name = 'User ID')),
('scenario', models.CharField(max_length = 255, blank = True, db_index = True, null = True)),
('tag', models.CharField(max_length = 50, blank = True, db_index = True, null = True)),
('created', models.DateTimeField(db_index = True, auto_now_add = True)),
('state', models.TextField(
default = b'{}')),
],
),
]