Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sphinx start new itom application during build #264

Open
photoniker opened this issue Jun 15, 2023 · 0 comments
Open

Sphinx start new itom application during build #264

photoniker opened this issue Jun 15, 2023 · 0 comments
Assignees

Comments

@photoniker
Copy link
Contributor

When Sphinx > 6 is used to build the itom website with a more modern theme (e.g.https://github.com/bashtage/sphinx-material) an additional itom applicaiton is started. The working itom application stays in a endless loop. Debugging shows that Sphinx internally starts a parallel application in the contextlib package.

However the MLD_theme of the itom website shall be changed because the theme is not more maintained as mentioned on the github site https://github.com/google/material-design-lite.

Comments (1)
M. Gronle
The problem is, that itom does not fully support the Python multiprocessing package.

To improve the multiprocessing support, it is necessary to tell multiprocessing about the path to the python.exe or pythonw.exe (no command line displayed):

import multiprocessing as mp

mp.set_executable(os.path.join(sys.exec_prefix, 'python.exe'))
However, this does not solve this issue. This issue occurs, if one wants to use the sphinx-immaterial theme. If this is part of the extension list of the conf.py, it is loaded and during the load, its submodule postprocess_html is loaded:

image

During this load, a multiprocessing.Manager is opened. Here an external Python server is opened, that tries to communicate with the main instance (here: itom) using a in/out pipe via a virtual file. This seems not to work within an embedded Python, how it is used in itom.

Pin to top Mark as spam Delete 2023-05-18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants