# Repost of Custom xblock won’t install in Tutor dev

**URL:** <https://discuss.openedx.org/t/repost-of-custom-xblock-won-t-install-in-tutor-dev/8010>\
**Category:** Tutor Help\
**Tags:** tutor\
**Created:** [August 5, 2022, 4:54am UTC](https://discuss.openedx.org/t/repost-of-custom-xblock-won-t-install-in-tutor-dev/8010 "2022-08-05T04:54:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TonyH](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/tonyh/32/4079_2.png) [@TonyH](https://discuss.openedx.org/u/TonyH)\
**Post date:** [August 5, 2022, 4:54am UTC](https://discuss.openedx.org/t/repost-of-custom-xblock-won-t-install-in-tutor-dev/8010/1 "2022-08-05T04:54:23Z")

</div>

Hello everyone!

This message is a repost from the Tutor Discuss site ([Custom xblock won't install in dev - Tutor - Overhang.IO](https://discuss.overhang.io/t/custom-xblock-wont-install-in-dev/1046)). I thought it was worth posting here to help developers facing the same problem because the other site is deprecated.

At the time of this post, there is no known documentation (or easy-to-find documentation) on how Open edX discovers XBlocks in Tutor dev mode.

**Problem** : The problem is that XBlocks installed from the `requirements.txt` file are accessible in Open edX production mode but might not be accessible in development mode

**Cause** : The problem documented on [discuss.overhang.io](http://discuss.overhang.io) by [michael](https://discuss.overhang.io/u/michael) and [ToddLichty](https://discuss.overhang.io/u/toddlichty) is that XBlocks running _in Tutor dev_ require a `.egg-info` folder so that they are discoverable. Otherwise, Open edX will not show the XBlocks in the Advanced component.

**Solution** : The solution is to generate the missing `.egg-info` folder for the XBlock before starting Tutor in dev mode.

```auto
# install and create the virtual environment
sudo apt install python3-venv
python3.8 -m venv ~/venv3.8

# enter the virual env
source ~/venv3.8/bin/activate

# cd to xblock dev directory
# cd $(tutor config printroot)/env/build/openedx/requirements/xblock_dev

# Generate the .egg-info folder
# https://stackoverflow.com/questions/12901776/python-setup-py-develop-is-it-possible-to-create-egg-info-folder-not-in-so
sudo python3 setup.py develop

# leave the virtual env
deactivate

```

**Replication** : You can replicate the problem of missing XBlocks in In Tutor version 14.0.4 dev mode by cloning the `edx_sga` XBlock from [GitHub - mitodl/edx-sga: Staff Graded Assignment XBlock for the edX platform](https://github.com/mitodl/edx-sga) and installing it from the `requirements.txt` file. The project is missing the `.egg-info` folder.

The XBlock will show in the Advanced component box in production but not in dev. It will only display once you generate the `.egg-info` folder and then relaunch the development platform.

I hope that this will help others facing the same problem!  
-Tony

---

<div class="post-metadata">

**Author:** ![Evgen\_Dyudyunov](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/evgen_dyudyunov/32/3702_2.png) [@Evgen\_Dyudyunov](https://discuss.openedx.org/u/Evgen_Dyudyunov)\
**Post date:** [May 22, 2023, 7:13am UTC](https://discuss.openedx.org/t/repost-of-custom-xblock-won-t-install-in-tutor-dev/8010/2 "2023-05-22T07:13:46Z")

</div>

@TonyH thank you for sharing this! It saved my day!

@regis could you tell if the issue is somewhere in the Tutor roadmap? Maybe the tutor documentation needs some notes to mention the issue with the dev containers.

---

<div class="post-metadata">

**Author:** ![vhm](https://avatars.discourse-cdn.com/v4/letter/v/fbc32d/32.png) [@vhm](https://discuss.openedx.org/u/vhm)\
**Post date:** [January 4, 2024, 12:16am UTC](https://discuss.openedx.org/t/repost-of-custom-xblock-won-t-install-in-tutor-dev/8010/3 "2024-01-04T00:16:59Z")

</div>

Thank you @TonyH

I can confirm that this is still an issue. I’ve just installed two Xblocks ([https://github.com/eduNEXT/flow-control-xblock](https://github.com/eduNEXT/flow-control-xblock) and [https://github.com/open-craft/xblock-poll](https://github.com/open-craft/xblock-poll)) on a development instance of Quince.1 and after following your instructions, I was able to make them work.
