Code Monkey home page Code Monkey logo

Comments (4)

mitya57 avatar mitya57 commented on August 16, 2024

Note that WebKit and WebEngine are two different renderers. ReText 7.x prefers WebKit. And if you have WebKit installed from your distro and PyQt is from PyPI, they may be incompatible.

I can suggest these options:

  • Remove everything from ~/.local/lib/python3.10/dist-packages and rely on packages provided by distro.

  • Or: use a virtualenv (e.g. using virtualenvwrapper Debian package) and install ReText in that environment. This way it should interfere less with distro packages. Also, that will pick ReText 8.x which uses PyQt6 (which will bring newer Chromium code base and thus maybe better Unicode support).

  • Or: keep your configuration but try removing distro python3-pyqt5.qtwebkit package. This is the less preferred option, because other packages may still cause conflict.

from retext.

mderouss avatar mderouss commented on August 16, 2024

Thanks for the quick response ! I already tried removing everything and installing ReText 8 via pip3 as per the instructions in README ( not using a virtualenv ). This was even worse - when I do this, I don't get an exception, just a cryptic message that says something like -

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

To be honest, chasing down and fixing dependency hell problems with Qt and Python is not what I need to be doing right now, I need to be editing Markdown, so I may come back to this and try some of your suggestions at some less critical time. 7 looked promising until I broke it, but right now I'll revert to ghostwriter which kind-of works even though they broke some important things long ago in 2.0 ( the main reason I started looking for alternatives ).

Thanks,
Mark

from retext.

mderouss avatar mderouss commented on August 16, 2024

No action required.

from retext.

mitya57 avatar mitya57 commented on August 16, 2024

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.

Qt 6's xcb plugin has some new library dependencies compared to Qt 5. In particular, it needs libxcb-shape0 and libxcb-cursor0. Pip cannot install library packages for you. You can do that yourself using the following commands:

sudo apt install libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-shape0 libxcb-cursor0 libxcb-xinerama0
sudo apt install libegl1-mesa libxkbcommon-x11-0

This is why my first suggestion was relying on packages provided by the distro — there would be no such problems there.

from retext.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.