Install ChatGPTXBlock and settings

Hi,
I have two questions about installing ChatGPTXBlock to Tutor OpenEdX on my local machine.

I install ChatGPTXBlock from https://github.com/abconlinecourses/chatgpt-xblock.git for 2 times.

Try1: the ChatGPT Assistant is not in the list of Advanced button when I add a new component. Here are my steps:

  1. I install the plugin by using command from tutor doc.
    tutor config save --append OPENEDX_EXTRA_PIP_REQUIREMENTS=git+https://github.com/abconlinecourses/chatgpt-xblock.git.
  2. Build image and start server or tutor local launch)
  3. Open Studio, at the selected course >Advanced module list > add “chatgptxblock” and save.
  4. Create a Unit > Click on the “Advanced” button in the “Add New Component” area. There is no “ChatGPT Assistant” in the list.

TRY1 Question: Is there anything I did incorrectly?

TRY2: I don’t know where to set INSTALLED_APPS. Here are my steps:
0) remove the previous installation from TRY1

  1. Install ‘chatgptxblock’ by using the following command.
c:\ pip install "git+https://github.com/abconlinecourses/chatgpt-xblock.git"
  1. Next, the instruction told me to add ‘chatgptxblock’ to the INSTALLED_APPS list in my Open edX environment settings.

TRY2 Question:
I try to search for “INSTALLED_APPS” key but it is not found.
Where can I set INSTALLED_APPS key? In my computer, I install Tutor using source code. I launch tutor by “tutor local launch”. I do not mount any OpenEdX project on my local drive.

Please help. Thank you very much.

Hi @N_V ,

Your installation steps are correct, but occasionally, the libraries used in an XBlock may be incompatible with the version of Open edX you have installed. When this happens, the XBlock may fail to load.

Could you please confirm which versions of Open edX and Tutor you are using?

After restarting all services, you can check the error logs using the following command:

tutor local logs --follow cms --tail=100 -f

Hi Mahendra,

Thanks for your advice.
My tutor version is 18.1.3 (redwood)
I do not know how to check OpenEdX. All I know that it is redwood. Do I need to install INSTALLED_APPS? Where should I set?

Thank you

No, it’s not required to set INSTALLED_APPS.

Did you get anything in the cms logs?

I am not sure if I found error. I attach the log.
cms log.txt (58.7 KB)
Thanks a lot.

I tried installing AI Coach XBlock from https://github.com/edly-io/ai-coach-xblock but the same result happens. It seems that there is an error as attached file.
cms log - 15 Oct 24.txt (36.6 KB)

I am not sure what is wrong. Please help.

Thank you very much.