Hastexo Tutor - Open edX intergation | hastexo / edx-configuration

After Successfully integrating the hastexo xblock in tutor-openedx when i try to install the Guacamole web app and stack supervisor scripts by cloning the hastexo_xblock fork of edx/configuration and assigning that role to the machine using the following commands:

$ git clone -b hastexo/hawthorn/hastexo_xblock https://github.com/hastexo/edx-configuration.git
$ cd edx-configuration/playbooks
$ ansible-playbook -c local -i "localhost," run_role.yml -e role=hastexo_xblock

I get the following error:
TASK [supervisor : Install supervisor in its venv] *****************************
[DEPRECATION WARNING]: Invoking “pip” only once while using a loop via
squash_actions is deprecated. Instead of using a loop to supply multiple items
and specifying name: "{{ item }}", please use name: '{{ supervisor_pip_pkgs }}' and remove the loop. This feature will be removed from ansible-base in
version 2.11. Deprecation warnings can be disabled by setting
deprecation_warnings=False in ansible.cfg.
failed: [localhost] (item=[‘boto==“2.48.0”’, ‘python-simple-hipchat’]) => {“ansible_loop_var”: “item”, “changed”: false, “cmd”: ["/edx/app/supervisor/venvs/supervisor/bin/pip3", “install”, “-i”, “https://pypi.python.org/simple”, "boto==“2.48.0"”, “python-simple-hipchat”], “item”: ["boto==“2.48.0"”, “python-simple-hipchat”], “msg”: “stdout: Looking in indexes: https://pypi.python.org/simple\n\n:stderr: WARNING: The directory ‘/home/supervisor/.cache/pip’ or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.\nERROR: Could not find a version that satisfies the requirement boto==“2.48.0”\nERROR: No matching distribution found for boto==“2.48.0”\n”}

PLAY RECAP *********************************************************************
localhost : ok=28 changed=2 unreachable=0 failed=1 skipped=37 rescued=0 ignored=0

@Mahesh_banerjee, you should probably be using a Tutor plugin for this, instead of trying to run Ansible on a Tutor container - if that’s what you’re doing, that is.

Anyway, if you’re indeed trying this out on Tutor, you could try your hand with an experimental plugin I wrote a while back. I doubt it still works with the current versions of either Tutor or the hastexo XBlock itself, though. It will probably take a bit of hacking to update it.

1 Like

It is not working straight of the box while using pip install but i’ll fiddle with for a while to make it work.
After running the command:
pip install tutor-hastexo-xblock
I get this error:
ERROR: Could not find a version that satisfies the requirement tutor-hastexo-xblock (from versions: none)
ERROR: No matching distribution found for tutor-hastexo-xblock