Coder Social home page Coder Social logo

Comments (8)

jbau avatar jbau commented on June 28, 2024

I think your edx-platform wasn't late enough. That error is fixed by this commit:
edx/edx-platform@2f23083

On Sep 15, 2013, at 9:50 AM, plejik [email protected] wrote:

I download latest version of edx code and install on clean install Ubuntu 12.04
failed: [localhost] => {"changed": true, "cmd": " SERVICE_VARIANT=lms rake lms:gather_assets:aws ", "delta": "0:00:06.656451", "end": "2013-09-15 16:42:19.488543", "item": "", "rc": 1, "start": "2013-09-15 16:42:12.832092"}
stderr: mkdir -p /opt/wwc/edx-platform/.ws_migrations_complete
./manage.py lms --settings aws preprocess_assets --traceback
xmodule_assets common/static/xmodule
Traceback (most recent call last):
File "./manage.py", line 95, in
execute_from_command_line([sys.argv[0]] + django_args)
File "/opt/edx/local/lib/python2.7/site-packages/django/core/management/init.py", line 443, in execute_from_command_line
utility.execute()
File "/opt/edx/local/lib/python2.7/site-packages/django/core/management/init.py", line 382, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/edx/local/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
self.execute(_args, *_options.dict)
File "/opt/edx/local/lib/python2.7/site-packages/django/core/management/base.py", line 231, in execute
self.validate()
File "/opt/edx/local/lib/python2.7/site-packages/django/core/management/base.py", line 266, in validate
num_errors = get_validation_errors(s, app)
File "/opt/edx/local/lib/python2.7/site-packages/django/core/management/validation.py", line 30, in get_validation_errors
for (app_name, error) in get_app_errors().items():
File "/opt/edx/local/lib/python2.7/site-packages/django/db/models/loading.py", line 158, in get_app_errors
self._populate()
File "/opt/edx/local/lib/python2.7/site-packages/django/db/models/loading.py", line 64, in populate
self.load_app(app_name, True)
File "/opt/edx/local/lib/python2.7/site-packages/django/db/models/loading.py", line 88, in load_app
models = import_module('.models', app_name)
File "/opt/edx/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
_import(name)
File "/opt/wwc/edx-platform/lms/djangoapps/shoppingcart/models.py", line 22, in
from verify_student.models import SoftwareSecurePhotoVerification
File "/opt/wwc/edx-platform/lms/djangoapps/verify_student/models.py", line 75, in
class PhotoVerification(StatusModel):
File "/opt/wwc/edx-platform/lms/djangoapps/verify_student/models.py", line 116, in PhotoVerification
DAYS_GOOD_FOR = settings.VERIFY_STUDENT["DAYS_GOOD_FOR"]
TypeError: string indices must be integers, not str
asset preprocessing failed!

node_modules/.bin/coffee --compile find . -name *.coffee

FATAL: all hosts have already failed -- aborting
Can someone help with that problem.
I can only found that its, maybe, droped on rake lms.envs.aws config loading.
Thanks


Reply to this email directly or view it on GitHub.

from configuration.

plejik-zz avatar plejik-zz commented on June 28, 2024

Strange i do it one day ago and yeap, i look at lms/envs/aws.py and there was old code, now i delete all witch connected to edx and try again. Write when try it again

from configuration.

plejik-zz avatar plejik-zz commented on June 28, 2024

I have some problem
First delete all in /var/tmp/configuration /opt/wwc/edx-platform /opt/edx
then do like here: https://github.com/edx/configuration/wiki#installing-edx-on-a-single-ubuntu-1204-precise-server
BUT i have this error and still old code in less /opt/wwc/edx-platform/lms/envs/aws.py(i delete it before)
VERIFY_STUDENT = AUTH_TOKENS.get("VERIFY_STUDENT", "")
Maybe can someone help with update through asimble

from configuration.

plejik-zz avatar plejik-zz commented on June 28, 2024

I have one more epic episode
Can me someone explain
first
rm -rf /opt/wwc/edx-platform/
then
git clone https://github.com/edx/edx-platform /opt/wwc/edx-platform
give right for www-data (like it be before )
than
less /opt/wwc/edx-platform/lms/envs/aws.py
....
VERIFY_STUDENT = AUTH_TOKENS.get("VERIFY_STUDENT", VERIFY_STUDENT)
Ok then
ansible-playbook -c local --limit "localhost:127.0.0.1" ./edx_sandbox.yml -i "localhost,"
I give me my error which i have (look post early) and
less /opt/wwc/edx-platform/lms/envs/aws.py
VERIFY_STUDENT = AUTH_TOKENS.get("VERIFY_STUDENT", "")

What the hell is going on?

from configuration.

yrchen avatar yrchen commented on June 28, 2024

Using master branch of your edx-platform repo will fix this problem. #250

from configuration.

plejik-zz avatar plejik-zz commented on June 28, 2024

Okay, will now try it

from configuration.

plejik-zz avatar plejik-zz commented on June 28, 2024

So i try
ansible all -c local -i "localhost," --limit "localhost:127.0.0.1" -m git -a "repo=https://github.com/edx/edx-platform dest=/opt/wwc/edx-platform"
I run in edx-platform
rake lms:envs:aws
Yes its change aws.py and run, but why i cant start it from master/configure(if i understand right - release) and start it like in manual and use it for create some courses for real task, not only for playing with it?
And, if you do not mind, where i can see some info about release or something like that because i see comment like
and build from master instead of release(which is currently the default).
or the way to use master.
Than i can use it and during the using in real project i ll trying find bugs and error if its necessary

from configuration.

jarv avatar jarv commented on June 28, 2024

I believe these issues should be resolved in the latest release, please retry and let us know if you have any problems. Docs for installing the new devstack here - https://github.com/edx/configuration/wiki/edX-Developer-Stack

from configuration.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.