citynetwork / markdown-xblock

An XBlock enabling Open edX course authors to maintain content in Markdown.
GNU Affero General Public License v3.0
3 stars 3 forks source link

markdown not available in Advanced #39

Open redteamronin opened 8 months ago

redteamronin commented 8 months ago

New build of open edx with tutor on Ubuntu 22.04.

Followed the following process:

tutor config save --append OPENEDX_EXTRA_PIP_REQUIREMENTS=git+https://github.com/citynetwork/markdown-xblock.git@v1.4.0
tutor config save
tutor images build openedx

Then added "markdown" in the Course - Settings - Advanced Settings - Advanced Module List.

This was based on the guidance found markdown-xblock-broken-in-quince

Version: tutor, version 17.0.2

I followed the same process as outlined installing-extra-xblocks-and-requirements for the xblocks-poll - this was successful as the options Poll and Survey are now displayed in Add New Component - Advanced.

During my troubleshooting I also restarted all: tutor local restart all as another discussion post from years ago mentioned doing so.

mrtmm commented 8 months ago

Hi @redteamronin, I followed the steps you mentioned in a tutor local (17.0.2) environment that previously didn't have this XBlock installed and I wasn't able to replicate the issue, the XBlock was available in Studio after the image rebuild and starting up the environment. Do you see any errors in the logs that could give us more clues what the issue might be?

redteamronin commented 8 months ago

The only error I've been able to find regarding the xblock is this:

WARNING 1 [py.warnings] [user None] [ip None] warnings.py:109 - /openedx/venv/lib/python3.8/site-packages/markdown_xblock/html.py:14: DeprecatedPackageWarning: Please use import xblock.utils.settings instead of xblockutils.settings because the 'xblock-utils' package has been deprecated and migrated to within 'xblock' package.
  from xblockutils.settings import XBlockWithSettingsMixin

Listing XBlocks - here: Running the following I see markdown in the list but it is still not showing in the Studio UI:

import pkg_resources
for ep in pkg_resources.iter_entry_points(group='xblock.v1'):
    print(ep.name)

I've tried this in 2 separate installations, both created using tutor local launch.