Issues installing Figures

Thank you so much for the help:

I tried installing “Figures

But im stuck in the last step:

As the edxapp user, run the following:

./manage.py lms migrate figures

Im getting a “No such file or directory” error…any ideas? I guess theres no manage.py file in the folder im trying to execute the command.

Captura de Pantalla 2020-06-25 a la(s) 12.05.26

When i execute the command inside edx-platform folder i get this error:

Traceback (most recent call last):
File “./manage.py”, line 20, in
from safe_lxml import defuse_xml_libs
ImportError: No module named safe_lxml

Captura de Pantalla 2020-06-25 a la(s) 12.06.47

To be able to execute the manage.py command i had to:

sudo su edxapp -s /bin/bash
cd /edx/app/edxapp
. edxapp_env
. venvs/edxapp/bin/activate
cd edx-platform/
./manage.py lms migrate figures

But now i get this error:

django.core.exceptions.ImproperlyConfigured: Application labels aren’t unique, duplicates: figures

Ok, the solution for the duplicate labels is to go to:

./edx-platform/common/djangoapps/third_party_auth/tests/test_settings.py

and add there and not in lms.env.json your INSTALLED_APP to the variable that already exists.

But now i have a big question…¿How can i access my new installed app?

@john can you help here?

1 Like

Im having problems to understand this step @jill:

At the bottom of the lms/envs/aws.py file, add the following:

if ‘figures’ in INSTALLED_APPS:
import figures
figures.update_settings(
WEBPACK_LOADER,
CELERYBEAT_SCHEDULE,
ENV_TOKENS.get(‘FIGURES’, {}))
IMPORTANT: Make sure that you do the above import AFTER WEBPACK_LOADER and CELERYBEAT_SCHEDULE have been declared in the LMS envs.

In which file and how should i declare WEBPACK_LOADER and CELERYBEAT_SCHEDULE variables? Which should be their value?

Thanks a lot.

Im getting an error TemplateDoesNotExist now, i can connect to figures, but it shows nothing, i think it has something to be with the static files etc…

I was able to install it following this guide but not the official documentation… :frowning:

Can you guide me @jill?

Sorry @Xperez , I haven’t installed figures myself, so am not sure whether it’s working with the latest Open edX.

Since your questions here have drifted far from your original question, could you start a new thread for how to install figures, and see if anyone from Appsembler can help there?

@jill @Xperez I’ve split out the part of the discussion about Figures to a separate thread.

1 Like

THIS is the way to go.

Thanks for splitting the new topic out @antoviaque!

And awesome, glad you found a solution @Xperez :smile:

1 Like