Could not find or load qt platform plugin windows

@HZMD said in «could not find or load the Qt platform plugin «windows» in «»,:

Do all of them use Qt? — I’m not sure, and I’m not sure how to find out.

In general, you check for the presence of Qt DLLs (Qt5Core.dll, qwindows.dll) in the program’s folders.

How did I install Krita? — It would be non-helpful if I said «in the normal way» wouldn’t it? I’m definitely not a proper programmer, though I’m «programmer adjacent» in some aspects of my work, learning enough from programmers to describe it to non-programmers in pictures. Anyway, I downloaded an executable installer from Krita.org and let it do its thing. Is that the right information?

Yes, that’s the right information :) Other possible ways to install Krita include «compile it from source».

Anyway, since you used the «normal way», that rules out the possibility of the error being caused by incorrect installation/compilation/deployment

Does uninstalling and reinstalling help? — On the others I have encountered this problem with, it has. I haven’t done Krita yet, because I was hoping to find the original culprit, and thought there might be clues.

From the symptoms you’ve described and the ListDLLs output you posted, I can’t see an easy way to find the root culprit, unfortunately.

The easiest thing to do might be to reinstall the affected software and move on with your life.

One other thing you could try: If you create a new user account on your PC, does that account manage to run the affected programs normally? If it does, that means something has gone wrong in your current Windows account itself. (I can’t explain how though)

qwindows.dll is missing — Hey, I think Krita uses Qt! I found qwindows.dll in C:\Program Piles\Krita (x64)\bin\platforms

Using that newfound knowledge, I looked for it in…

…I’ll come back and edit this with any others it finds, or that it finds in Program Files (x86)

That’s OK, you don’t have to give us a comprehensive list.

I asked about other Qt-based software because sometimes, problems occur when a piece of Qt-based software adds itself to the system-wide PATH (or QT_PLUGIN_PATH). This can cause other Qt-based software to load the wrong version of Qt DLLs.

However, given that you can repair individual programs by re-installing them, that probably means your problem is caused by something else.

I did not find qwindows in the folder of the pen display driver / control software I suspected of having monkeyed things up. Am I right in thinking that means that driver / control software is innocent? With no more evidence than I had before, I now suspect Logitech. I’m sure this is how witch trials get started. ;)

It is difficult to prove that someone/thing didn’t do it.

Hello, I’ve been using Anaconda on Windows 10 for the past few months. However, today I tried launching the program and got the following error:

«This application failed to start because it could not find or load the Qt
platform plugin «windows in «».

Reinstalling the application may fix this problem.»

I read around about doing ‘conda update -all’ in cmd, however it didn’t
work for me, neither reinstalling Anaconda.

This seems to be a common problem, however I can’t seem to find a
straightforward solution online, what can I do? and please bear in mind that
I’m a newbie in Python.

Thanks in advance!

PD: After reading other topics in this forums, I think this information could be useful:

`C:\Users\JoséIgnacio>conda info
Current conda install:

           platform : win-64
      conda version : 4.2.13
   conda is private : False
  conda-env version : 4.2.13
conda-build version : 2.0.11
     python version : 3.5.2.final.0
   requests version : 2.12.1
   root environment : C:\Users\JoséIgnacio\Anaconda3  (writable)
default environment : C:\Users\JoséIgnacio\Anaconda3
   envs directories : C:\Users\JoséIgnacio\Anaconda3\envs
      package cache : C:\Users\JoséIgnacio\Anaconda3\pkgs
       channel URLs : https://repo.continuum.io/pkgs/free/win-64
                      https://repo.continuum.io/pkgs/free/noarch
                      https://repo.continuum.io/pkgs/pro/win-64
                      https://repo.continuum.io/pkgs/pro/noarch
                      https://repo.continuum.io/pkgs/msys2/win-64
                      https://repo.continuum.io/pkgs/msys2/noarch
        config file : None
       offline mode : False`

C:\Users\JoséIgnacio>qmake --version QMake version 3.0 Using Qt version 5.6.0 in C:/Users/JoséIgnacio/Anaconda3/Library/lib

C:\Users\JoséIgnacio>qmake -query QT_SYSROOT: QT_INSTALL_PREFIX:C:/Users/JoséIgnacio/Anaconda3/Library QT_INSTALL_ARCHDATA:C:/Users/JoséIgnacio/Anaconda3/Library QT_INSTALL_DATA:C:/Users/JoséIgnacio/Anaconda3/Library QT_INSTALL_DOCS:C:/Users/JoséIgnacio/Anaconda3/Library/doc QT_INSTALL_HEADERS:C:/Users/JoséIgnacio/Anaconda3/Library/include/qt QT_INSTALL_LIBS:C:/Users/JoséIgnacio/Anaconda3/Library/lib QT_INSTALL_LIBEXECS:C:/Users/JoséIgnacio/Anaconda3/Library/bin QT_INSTALL_BINS:C:/Users/JoséIgnacio/Anaconda3/Library/bin QT_INSTALL_TESTS:C:/Users/JoséIgnacio/Anaconda3/Library/tests QT_INSTALL_PLUGINS:C:/Users/JoséIgnacio/Anaconda3/Library/plugins QT_INSTALL_IMPORTS:C:/Users/JoséIgnacio/Anaconda3/Library/imports QT_INSTALL_QML:C:/Users/JoséIgnacio/Anaconda3/Library/qml QT_INSTALL_TRANSLATIONS:C:/Users/JoséIgnacio/Anaconda3/Library/translations QT_INSTALL_CONFIGURATION: QT_INSTALL_EXAMPLES:C:/Users/JoséIgnacio/Anaconda3/Library/examples QT_INSTALL_DEMOS:C:/Users/JoséIgnacio/Anaconda3/Library/examples QT_HOST_PREFIX:C:/Users/JoséIgnacio/Anaconda3/Library QT_HOST_DATA:C:/Users/JoséIgnacio/Anaconda3/Library QT_HOST_BINS:C:/Users/JoséIgnacio/Anaconda3/Library/bin QT_HOST_LIBS:C:/Users/JoséIgnacio/Anaconda3/Library/lib QMAKE_SPEC:win32-msvc2015 QMAKE_XSPEC:win32-msvc2015 QMAKE_VERSION:3.0 QT_VERSION:5.6.0

Андрей Андреев

@Scripteer

Веб дизайнер, интересуюсь python, знаю html,css +-

У меня появилась ошибка когда запускаю python файл, пж помогите не нужно кидать ссылку на форум просто скажите что сделать?

ОШИБКА

C:\Users\Андрей>»C:\Users\Андрей\Desktop\Currency Convertor\ui.py»
qt.qpa.plugin: Could not find the Qt platform plugin «windows» in «»
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.


  • Вопрос задан

  • 20199 просмотров

РЕШЕНИЕ: Найти папку где установлен python, перейти по пути C:\Users\Андрей\AppData\Local\Programs\Python\Python38\Lib\site-packages\PyQt5\Qt\plugins найти тут папку platforms и перенести в папку где находится python

Пригласить эксперта


  • Показать ещё
    Загружается…

Минуточку внимания

When launching certain apps on Windows, many users receive the “This application failed to start because no Qt platform plugin could be initialized” error. Don’t worry. This post of MiniTool explores several effective troubleshooting methods.

This Application Failed To Start Because No Qt Platform Plugin Could Be Initialized

According to user reports, the “this application failed to start because no Qt platform plugin could be initialized” error can occur with many apps such as OneDrive, Designer, Python, etc. This error often appears after installing a series of Windows updates. Here’s a true example from the answersmicrosoft.com forum:

After a series of recent Windows updates my Surface displays the following error when we log in OneDrive – This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. I have searched the community and followed the responses given to others suffering the same fate but so far this has not resolved the issue. Looking to know what I should attempt next?https://answers.microsoft.com/en-us/windows/forum/all/application-failed-to-start-because-no-qt-platform/205e4259-dcbc-4d72-addb-8e7edb9663e9

no Qt platform plugin could be initialized

Qt is a cross-platform software that was designed to create graphical user interfaces and cross-platform applications on Windows, Linux, macOS, and Android. However, when something went wrong with the Qt platform, you may receive the “This application failed to start because it could not find or load the Qt platform plugin Windows” error.

It seems like reinstalling the application may fix the error. However, some users encounter new errors when reinstalling the app. Don’t worry. Here we explore several effective troubleshooting methods. Let’s try.

How to Fix the “No Qt Platform Plugin Could Be Initialized” Error

After analyzing extensive user reports, we summarize the 6 applicable ways to fix the Qt platform plugin Windows error. You can try them in order until the error gets solved or choose the ones that work best for you.

Fix 1. Replace the Qt Files in the Destination

The first and proven method is to replace the Qt files in the destination folder. Here we take Python for example. To do so, follow the steps below:

Step 1. Press the Win + E keys to open the File Explorer, select This PC, type pyqt5_tools in the search box, and hit Enter.

Step 2. Right-click the pyqt5_tools folder once the search is complete and select Open folder location.

Step 3. Then go to the folder path “PyQt5 > Qt > plugins”, and then open the Plugin folder, right-click the platforms folder, and select Copy.

Step 4. Go to the site-packages folder that you initially opened and go to pyqt5_tools > Qt > bin.

Step 5. Right-click any empty space inside the bin directory and select paste. Then confirm it when you see the “Replace the files in the destination” message.

open Qt5 tools folder

Now, you can relaunch the app and see if the “this application failed to start Qt platform Windows” message persists.

Fix 2. Perform a Clean Boot

One of the possible reasons for the “this application failed to start Qt platform Windows” error is third-party software conflicts. If you are not sure which app is causing the conflict, you can perform a clean boot (click on the Hyperlink to know the detailed steps). Once you find out the conflicting software, uninstall it and check if the error is fixed.

Fix 3. Check System File Corruption

Sometimes corrupted system files can trigger various errors and issues when running your apps such as the “no Qt platform plugin could be initialized” error. So, we recommend you run an SFC scan or DISM to check system files.

Step 1. Type cmd in the search box, and then right-click Command Prompt and select Run as administrator option.

Step 2. Type the sfc /scannow command in the elevated command prompt and hit Enter. After that, the SFC tool will scan and try to repair the corrupted system files automatically.

run an SFC scan

Step 3. If the SFC command was unable to repair corrupt system files, you can try running the following DISM commands:

  • DISM /Online /Cleanup-Image /CheckHealth
  • DISM /Online /Cleanup-Image /ScanHealth
  • DISM /Online /Cleanup-Image /RestoreHealth

Fix 4. Reinstall the App

As the error message hints, reinstalling the application may help fix the problem. However, many users cannot uninstall the app smoothly. Don’t worry. We summarize the following 3 applicable ways to reinstall the app. (Here we take reinstalling OneDrive for example)

Uninstall OneDrive via the Run box:

Step 1, Press Win + R keys to open the Run dialog box, and then type the following command in it and hit Enter. Here make sure you replace the OneDriveSetup.exe path with the actual location.

%userprofile%\AppData\Local\Microsoft\OneDrive\Update\OneDriveSetup.exe

reinstall OneDrive with the Run dialog box

Step 2. Once uninstalled, go through the installation steps and restart your computer and check if the error gets fixed. If it fails to uninstall the application, you can try the following 2 methods.

Uninstall OneDrive via CMD:

Step 1. Type cmd in the Run dialog box and press Ctrl + Shift + Enter keys to open the elevated Command Prompt window.

Step 2. Type the following command and hit Enter to uninstall the app. If you are running on a 32-bit system, replace SysWOW64 with System32. This will force uninstalling the app.

  • taskkill /f /im OneDrive.exe 
  • %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall

Uninstall OneDrive from Settings:

Step 1. Right-click the Start menu at the bottom left and select Apps and Features.

Step 2. Inside the Applications window, search for OneDrive by name and click the Uninstall button.

uinstall OneDrive

Step 3. Then follow the on-screen prompts to complete the uninstallation. After that, you can reinstall the app and check if the error disappears.

Fix 5. Download the Update.xml File of the App

Some users reported that the error can be fixed by downloading the update.xml file of the app. If you can’t reinstall OneDrive via the above method, try this solution. Click here to download the OneDriveSetup.exe file, and run it to install the latest version of OneDrive.

Fix 6. Undo the Recent Changes

Many people reported that “This application failed to start because it could not find or load the Qt platform plugin Windows” error mainly occurs after installing a series of Windows updates. If this scenario applies to you, you can try performing a system restore or uninstalling these updates manually.

Step 1. Press the Win + I keys to open the Settings app, and then select Update & Security > View update history.

click View update history

Step 2. Click on Uninstall updates, and then right-click the most recent update and select Uninstall. Then follow the on-screen prompts to complete the uninstallation. Then repeat the same procedure to uninstall other Windows updates.

uninstall Windows updates

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Не могу распечатать документ на принтере windows 10
  • Windows какие порты закрыть
  • Windows xp sp3 эмулятор
  • Как отключить залипание клавиш на windows 10 про
  • Пинбол для windows правила