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

WebEngine (Chromium) renderer delivering blank page with no error on terminal when installing via pip in virtual environment #587

Open
callegar opened this issue Jun 27, 2022 · 2 comments

Comments

@callegar
Copy link

callegar commented Jun 27, 2022

Hi,

trying ReText 7.2.3 (using PyMarkups 3.1.3) installed on Linux in a virtual environment created by virtualenv.
ReText itself is installed in the virtual environment via pip.

In the installation of ReText the PyQt5 dependencies were brought in automatically, apart from PyQtWebEngine that I had to install manually. Without it the option for the WebEngine (Chromium) renderer is grayed out and not available.

When trying to enable preview (either live or not) using the WebEngine (Chromium) renderer, the preview remains blank.

No error on the terminal.

At the same time, if I use the retext provided by the distribution (Manjanaro) that is exactly at the same version everything works fine. The only difference seems to be that in this case the dependencies are system packages rather than items installed by pip in a virtual environment.

What can I do to help identify what breaks the ability to use retext with the WebEngine rendering from a virtual environment?

@callegar callegar changed the title WebEngine (Chromium) renderer delivering nothing with no error on terminal WebEngine (Chromium) renderer delivering blank page with no error on terminal when installing via pip Jun 27, 2022
@callegar callegar changed the title WebEngine (Chromium) renderer delivering blank page with no error on terminal when installing via pip WebEngine (Chromium) renderer delivering blank page with no error on terminal when installing via pip in virtual environment Jun 27, 2022
@mitya57
Copy link
Member

mitya57 commented Jun 28, 2022

I cannot reproduce this, unfortunately. So I have to ask a few questions in case they help shed some light on this.

  • Is the preview blank with every file (both Markdown and reStructuredText), or just some specific ones?
  • Can you create a Markdown file, add this line and see if you get any popup dialog?
    <script>alert('Test')</script>
  • What do you get when clicking right mouse button on the preview panel? Does it have Back / Forward / Reload actions?
  • Does it work when you disable Qt WebEngine renderer and use the default renderer?

@mitya57
Copy link
Member

mitya57 commented Jun 28, 2022

Also, can you try creating a fresh virtualenv and installing ReText from master?

pip install git+https://github.com/retext-project/retext.git
pip install PyQt6-WebEngine

There are many changes like moving from PyQt5 to PyQt6, so maybe there will be some difference.

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