This doesn't sound right.
How and where have you installed the Myst parser?
Do you use virtual environments for easier debugging?
I would guess myst-parser is not installed where you think it is and 
therefore sphinx cannot find it.
As always on the internet, it's easier to get help if you provide the steps 
and output you were getting.
This works flawlessly for me every time:

-----------------------------------------------------------------------------------------------------------------------------------------------------

* $ mkdir mystparser*

* $ cd mystparser/*

* $ pipenv install sphinx myst-parser*

* $ pipenv shell*

*$ vim conf.py*

*(mystparser)$ cat conf.py*
  
# Configuration file for the Sphinx documentation builder.
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Project information 
-----------------------------------------------------
# 
https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information

project = 'test'
copyright = '2023, test'
author = 'test'

# -- General configuration 
---------------------------------------------------
# 
https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration

extensions = ['myst_parser']

templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']



# -- Options for HTML output 
-------------------------------------------------
# 
https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

html_theme = 'alabaster'
html_static_path = ['_static']


*$ sphinx-build . _build*

Running Sphinx v7.0.1
loading pickled environment... done
myst v2.0.0: MdParserConfig(commonmark_only=False, gfm_only=False, 
enable_extensions=set(), disable_syntax=[], all_links_external=False, 
url_schemes=('http', 'https', 'mailto', 'ftp'), ref_domains=None, 
fence_as_directive=set(), number_code_blocks=[], title_to_header=False, 
heading_anchors=0, heading_slug_func=None, html_meta={}, 
footnote_transition=True, words_per_minute=200, substitutions={}, 
linkify_fuzzy_links=True, dmath_allow_labels=True, dmath_allow_space=True, 
dmath_allow_digits=True, dmath_double_inline=False, update_mathjax=True, 
mathjax_classes='tex2jax_process|mathjax_process|math|output_area', 
enable_checkboxes=False, suppress_warnings=[], highlight_code_blocks=True)
building [mo]: targets for 0 po files that are out of date
writing output... 
building [html]: targets for 0 source files that are out of date
updating environment: 0 added, 0 changed, 0 removed
reading sources... 
looking for now-outdated files... none found
no targets are out of date.
build succeeded.

The HTML pages are in _build.

-----------------------------------------------------------------------------------------------------------------------------------------------------



Bob DuCharme schrieb am Freitag, 30. Juni 2023 um 16:29:08 UTC+2:

> I have installed sphinx and can run sphinx-build fine, and I have 
> installed MyST and can run myst-docutils-demo fine. When I add 
> 'myst_parser' to the Sphinx conf.py extensions list, though, sphinx-build 
> gives me "Could not import extension myst_parser (exception: No module 
> named 'myst_parser')." What am I missing?
>
> Thanks,
>
> Bob
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/eaf6ea0a-efd3-43a0-a1ec-6eeaa5eb8b5en%40googlegroups.com.

Reply via email to