# Openedx createuser failing

**URL:** <https://discuss.openedx.org/t/openedx-createuser-failing/13400>\
**Category:** Community\
**Created:** [July 13, 2024, 2:26pm UTC](https://discuss.openedx.org/t/openedx-createuser-failing/13400 "2024-07-13T14:26:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashima](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/ashima/32/7066_2.png) [@ashima](https://discuss.openedx.org/u/ashima)\
**Post date:** [July 13, 2024, 2:26pm UTC](https://discuss.openedx.org/t/openedx-createuser-failing/13400/1 "2024-07-13T14:26:13Z")

</div>

(.venv) ashima@Ashimas-MacBook-Pro kaidoko % tutor local do createuser --staff --superuser uaername [username@gmail.com](mailto:username@gmail.com)

I am on master branch of edx-platform

File “/openedx/edx-platform/xmodule/error\_block.py”, line 20, in   
from xmodule.x\_module import (  
File “/openedx/edx-platform/xmodule/x\_module.py”, line 40, in   
from openedx.core.djangolib.markup import HTML  
File “/openedx/edx-platform/openedx/core/djangolib/markup.py”, line 7, in   
import nh3  
ModuleNotFoundError: No module named ‘nh3’  
Error: Command failed with status 1: docker compose -f /Users/ashima/Library/Application Support/tutor/env/local/docker-compose.yml -f /Users/ashima/Library/Application Support/tutor/env/local/docker-compose.prod.yml --project-name tutor\_local -f /Users/ashima/Library/Application Support/tutor/env/local/docker-compose.jobs.yml run --rm lms-job sh -e -c ./manage.py lms manage\_user --superuser --staff tanvi [tanshii.237@gmail.com](mailto:tanshii.237@gmail.com)  
./manage.py lms shell -c "  
from django.contrib.auth import get\_user\_model  
u = get\_user\_model().objects.get(username=‘tanvi’)  
u.set\_password(‘tanshi’)

nh3 seems to installed  
(.venv) ashima@Ashimas-MacBook-Pro kaidoko % pip install nh3  
Requirement already satisfied: nh3 in /Users/ashima/.venv/lib/python3.12/site-packages (0.2.18)

How to resolve this error?

---

<div class="post-metadata">

**Author:** ![Andres.Aulasneo](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/andres.aulasneo/32/984_2.png) [@Andres.Aulasneo](https://discuss.openedx.org/u/Andres.Aulasneo)\
**Post date:** [July 15, 2024, 12:28pm UTC](https://discuss.openedx.org/t/openedx-createuser-failing/13400/2 "2024-07-15T12:28:06Z")

</div>

Hi @ashima, welcome to the forum!

Which version of Tutor are you running? Run `tutor --version` to tell.

It is not usually a good idea to work on the master branch of edx-platform, unless you are going to contribute with changes. To start, install the latest version of Tutor and try with it.
