Qt platform plugin windows ошибка как исправить

I am getting the error «could not find or load the Qt platform plugin windows» while using matplotlib in PyCharm.

How can I solve this?

enter image description here

the Tin Man's user avatar

the Tin Man

158k42 gold badges214 silver badges303 bronze badges

asked Feb 2, 2017 at 4:59

Daivik Paul's user avatar

4

I had the same problem with Anaconda3 4.2.0 and 4.3.0.1 (64-bit). When I tried to run a simple program that uses matplotlib, I got this error message:

This application failed to start because it could not find or load the Qt platform plugin "windows"

Reinstalling the application may fix this problem.

Reinstalling didn’t fix it.

What helped was this (found here):
Look for the Anaconda directory and set the Libraryplugins subdir (here c:ProgramDataAnaconda3Libraryplugins) as environment variable QT_PLUGIN_PATH under Control Panel / System / Advanced System Settings / Environment Variables.

After setting the variable you might need to restart PyCharm, if the change does not have an immediate effect.


Even though after that the command line Python worked, TexWorks (which uses Qt as well) displayed an error message very much like it. Setting the QT_PLUGIN_PATH to the directory containing TexWorks’ Qt DLLs (here C:UserschrisAppDataLocalProgramsMiKTeX 2.9miktexbinx64) fixed the problem for both programs.

the Tin Man's user avatar

the Tin Man

158k42 gold badges214 silver badges303 bronze badges

answered Feb 14, 2017 at 16:40

cxxl's user avatar

cxxlcxxl

4,8193 gold badges31 silver badges52 bronze badges

3

If you want to visualize your matplotlibs in an alternative way, use a different backend that generates the graphs, charts etc.

import matplotlib
matplotlib.use('TKAgg')

This worked for me.

the Tin Man's user avatar

the Tin Man

158k42 gold badges214 silver badges303 bronze badges

answered Aug 17, 2018 at 11:27

rakidedigama's user avatar

2

If you are running PyQt5 and PySide2, this solved the problem for me:

Copy the following files:

Anaconda3Libsite-packagesPySide2pluginsplatformsqminimal.dll
Anaconda3Libsite-packagesPySide2pluginsplatformsqoffscreen.dll
Anaconda3Libsite-packagesPySide2pluginsplatformsqwindows.dll

to:

Anaconda3Librarypluginsplatforms

the Tin Man's user avatar

the Tin Man

158k42 gold badges214 silver badges303 bronze badges

answered Sep 11, 2018 at 18:16

Osama Adly's user avatar

Osama AdlyOsama Adly

5015 silver badges4 bronze badges

1

I tried the following at Anaconda’s prompt, and it solved this problem:

conda remove qt
conda remove pyqt 
conda install qt 
conda install pyqt

the Tin Man's user avatar

the Tin Man

158k42 gold badges214 silver badges303 bronze badges

answered Mar 4, 2018 at 5:25

silly's user avatar

sillysilly

8879 silver badges9 bronze badges

3

I found that this was being caused by having the MiKTeX binaries in my PATH variable; and the wrong Qt dll’s were being found. I just needed to re-arrange the PATH entries.

(Dependency Walker is such a useful tool.)

answered Apr 20, 2018 at 7:52

Richard Ayling's user avatar

I had a similar problem with PyCharm where things worked great in main run but not in debugger, getting the same error message. This happened for me because I had moved my Anaconda installation to a different directory. The debugger goes and checks a qt.conf file that is located at the same place as python. This location can be found by running import sys; print sys.executable. I found this solution through a pile of web searches and it was buried deep here. The qt.conf file needs to have correct paths for debugger to work.

My qt.conf files looks like this in notepad:

[Paths]
Prefix = E:/python/Anaconda3_py35/Library
Binaries = E:/python/Anaconda3_py35/Library/bin
Libraries = E:/python/Anaconda3_py35/Library/lib
Headers = E:/python/Anaconda3_py35/Library/include/qt

answered May 17, 2017 at 17:22

launchpadmcquack's user avatar

2

Just add a system variable:

QT_QPA_PLATFORM_PLUGIN_PATH

and set its value to

C:Python34Libsite-packagesPyQt4pluginsplatforms

Voilà. Done

the Tin Man's user avatar

the Tin Man

158k42 gold badges214 silver badges303 bronze badges

answered Aug 18, 2019 at 4:45

kunjung sherpa's user avatar

2

I have found a solution that worked for me. This solution includes a code snippet to add before you import any modules from Pyside2 or PyQt5 package. See «Qt platform plugin «windows» #2″ for more information.

This code snippet is from the link:

import os
import PySide2

dirname = os.path.dirname(PySide2.__file__)
plugin_path = os.path.join(dirname, 'plugins', 'platforms')
os.environ['QT_QPA_PLATFORM_PLUGIN_PATH'] = plugin_path

from PySide2.QtWidgets import *
'''
Your code goes here
'''

This solution works for PyQt5 and PySide2 modules.
I don’t know if it’s relevant but I added the QT_PLUGIN_PATH environment variable in the system before.

That solution enabled me to test PySide2 scripts in IDLE.

However, I faced the same error when I tried to run a bundled script (exe).

With some shallow debugging, it’s evident that plugin folder itself is missing. I fixed the problem by adding the plugin folder in the appropriate location:

C:Usersxxxx.spyder-py3My_QtProjectsProject 1distMyQt_1PySide2

the Tin Man's user avatar

the Tin Man

158k42 gold badges214 silver badges303 bronze badges

answered Aug 5, 2019 at 4:22

Sourabh Desai's user avatar

2

If the Pycharm console or debugger are showing «Could not find or load the Qt platform plugin windows», the Python EXE file may be located at a different location for the PyCharm interpreter. You might manually select it in File -> Settings -> Interpreter.

  1. Set the working directory: File -> Settings -> Build, Execution, Deployment -> Console -> Python Console -> Working directory. Set it to the parent directory where your all code exists.

  2. Open Control Panel -> System Settings -> Advanced System Settings -> Environment Variables -> New. Set the variable name QT_PLUGIN_PATH , Variable Directory: Users<Username>AppdataLocalContinuumAnaconda2Libraryplugins.

  3. Restart Pycharm.

the Tin Man's user avatar

the Tin Man

158k42 gold badges214 silver badges303 bronze badges

answered Mar 8, 2018 at 14:14

Pranzell's user avatar

PranzellPranzell

2,20416 silver badges21 bronze badges

1

I solved it by:

  • Adding a path:

    Anaconda3Libsite-packagesPyQt5Qtbin to PATH.
    
  • Setting an environment variable:

    QT_PLUGIN_PATH as Anaconda3Libsite-packagesPyQt5Qtplugins or Anaconda3Libraryplugins.

  • Also, you can try:

    pyqt = os.path.dirname(PyQt5.__file__)
    os.environ['QT_PLUGIN_PATH'] = os.path.join(pyqt, "Qt/plugins")
    

the Tin Man's user avatar

the Tin Man

158k42 gold badges214 silver badges303 bronze badges

answered May 9, 2020 at 2:37

Zhongbo Chen's user avatar

1

First, use the command:

conda remove pyqt qt qtpy

Then install using:

conda install pyqt qt qtpy

This worked for me.

jdaz's user avatar

jdaz

5,9142 gold badges22 silver badges33 bronze badges

answered Jul 15, 2020 at 4:21

美利坚节度使's user avatar

1

Copy the folder

Anaconda3Librarypluginsplatforms

to

$

where $ is your project interpreter folder. For example:

"projectanaconda_envScripts"

because PyCharm calls the python.exe in this folder, not the one in Anaconda3.

the Tin Man's user avatar

the Tin Man

158k42 gold badges214 silver badges303 bronze badges

answered Jan 15, 2019 at 16:13

sontran's user avatar

0

SOLUTION FOR WINDOWS USERS

Create new environment variable with:

name: QT_PLUGIN_PATH
path: C:yourpythonpathLibsite-packagesPyQt5Qtplugins

after that exe file will work

answered Apr 10, 2019 at 16:59

Pawel's user avatar

PawelPawel

271 bronze badge

1

On Windows:

  1. Copy the folder platforms:

    C:Users%USERNAME%AppDataRoamingpyinstallerbincache00_py35_64bitpyqt5qtpluginsplatforms 
    
  2. Paste the folder platform into the folder location of the file .exe:

    Example:

    c:MyFolderyourFile.exe
    c:MyFolderplatforms
    

the Tin Man's user avatar

the Tin Man

158k42 gold badges214 silver badges303 bronze badges

answered Aug 30, 2018 at 12:27

Daniel G's user avatar

0

You may need to copy the «plugins» file in Anaconda3Library. For example, on my computer it is

S:Anaconda3Libraryplugins

to the same path of your .exe file.

the Tin Man's user avatar

the Tin Man

158k42 gold badges214 silver badges303 bronze badges

answered Aug 16, 2017 at 15:31

C.Conley's user avatar

copy the plugins from PySide2 and paste and overwrite the existing plugins in Miniconda worked for me.

(base) C:ProgramDataMiniconda3Libsite-packagesPySide2pluginsplatforms>copy *.dll  C:ProgramDataMiniconda3Librarypluginsplatforms

answered Aug 17, 2020 at 4:33

yptheangel's user avatar

1

I had the same problem with Anaconda. For me, although not very elegant, the fastest solution was to unistall and reinstall Ananconda completely. After that, everything worked well again.

answered Jul 30, 2021 at 7:55

Nils's user avatar

I have the same issue and fixed in this way
In Anaconda installation folder I went to : (change it to your installed path):
C:ProgramDataAnaconda3Libsite-packagesPySide2
Edit this file by adding the following code lines :

# below the line 23 type.__signature__
    pyside_package_dir =  os.path.abspath(os.path.dirname(__file__))
    dirname = os.path.dirname(__file__)
    plugin_path = os.path.join(dirname, 'plugins', 'platforms')
    os.environ['QT_QPA_PLATFORM_PLUGIN_PATH'] = plugin_path

save this file and try again and the issue should be gone :)

answered Jun 9, 2020 at 4:13

Abdelrahman Farag's user avatar

I had the same issue. Following «Activating an environment» in «Managing environments» solved the issue.

In the command line:

conda activate myenv

where myenv=base for my setup.

the Tin Man's user avatar

the Tin Man

158k42 gold badges214 silver badges303 bronze badges

answered Dec 11, 2019 at 16:17

Pier-Yves Lessard's user avatar

Please try this in the script

qt_path= os.path.dirname(PyQt5.__file__)
os.environ['QT_PLUGIN_PATH'] = os.path.join(qt_path, "Qt/plugins")

answered Dec 22, 2020 at 4:01

Ammar Nourallah's user avatar

I know everyone above had provided various ways to fix OP’s issue. I just want to add on some suggestions.

By adding the QT_PLUGIN_PATH = C:Users{YOUR_USERNAME}Anaconda3Libraryplugins as your local machine environment variable it helps to fix OP’s PyCharm issue above. However, this will break other systems in your machine like: Dropbox reports missing QT, AMD settings fails to launch(which happens on my side) etc.

Instead of adding QT_PLUGIN_PATH to your machine locally, one can add the environment variable in PyCharm’s python interpreter setting as shown below:
enter image description here

This method not only allow your PyCharm’s python.exe able to search those DLLs but also not breaking other systems’ QT lookup PATH.

Thanks

Dharman's user avatar

Dharman

30.4k22 gold badges84 silver badges132 bronze badges

answered Jan 2, 2021 at 8:51

IvanPy's user avatar

1

I installed a package that had a QT-gui that I didn’t need.

So I just removed all the Qt modules from my environment.

pip freeze | grep -i qt

PyQt5==5.15.4
PyQt5-Qt5==5.15.2
PyQt5-sip==12.9.0
QtPy==1.9.0

pip uninstall PyQt5
pip uninstall PyQt5-Qt5
pip uninstall PyQt5-sip
pip uninstall QtPy

Problem solved.

answered May 25, 2021 at 4:53

Duane's user avatar

DuaneDuane

4,4326 gold badges32 silver badges32 bronze badges

if you are using anaconda/miniconda with matplotlib installed.
you’ll have to install uninstall anaconda/miniconda and use miniconda without matplotlib, a fix is to use normal python not anaconda.

it has be a know issue here enter link description here

answered Mar 30, 2022 at 14:12

ironmann350's user avatar

ironmann350ironmann350

3712 silver badges4 bronze badges

Inspired by Osama Adly, I think this kind of problems are all caused by Anaconda configuration for Qt DLLs on Windows platform.
Just try to install PyQt/PySide in an empty environment besides Anaconda, for example a standalone Python program. You will find that the plugins about platforms are in the site-package directory itself.
For comparation:

site-packagesPyQt6Qt6pluginsplatforms
site-packagesPySide6pluginsplatforms

But it seems that Anaconda contains some software depending on PyQt5 or Qt. Anaconda moves the platforms directory from PyQt5 to another folder and this folder might be contained in the PATH variable when using Anaconda.

Anaconda3Librarypluginsplatforms

This could lead to unneccessary problems. These DLLs reserve the same name across different generation of Qt. For example, when I tried PySide6 in a virtual environment created with Anaconda, its call for DLLs will mistakenly use the Qt5 DLLS rather than the DLLs in its folder.

answered Mar 29, 2022 at 7:00

Xiangqian Zhao's user avatar

1

In my situation, I did everything listed above and on other forum post:

  1. Copying and pasting files
  2. Adding system variables
  3. Uninstalling, downloading, and reinstalling programs
  4. Restarting the computer
  5. Enabling debugging mode
  6. Running the source code instead of the compiled program
  7. Running sfc /scannow

All of this did not work.
In my case, the solution was to update Windows.
The computer was apparently running a very outdated version of Windows (10?)
After 2-3 hours of installing the update, problem solved.
Source/Inspiration: https://www.partitionwizard.com/clone-disk/no-qt-platform-plugin-could-be-initialized.html

answered Nov 17, 2022 at 23:20

Amit Shah's user avatar

I had the same issue with Qt 5.9 example btscanner.exe. What works in my case is:

  1. Create a folder where is btscanner.exe ( my is c:tempBlueTouth )
  2. Run from command prompt windeployqt.exe as follow:
    c:qtqt5.9.0msvc2015binwindeployqt c:tempBlueTouth
    /* windeplyqt is the standard Qt tool to packet your application with any needed
    libraries or extra files and ready to deploy on other machine */

  3. Result should be something like that:

C:tempBlueTouthbtscanner.exe 32 bit, release executable
Adding Qt5Svg for qsvgicon.dll
Skipping plugin qtvirtualkeyboardplugin.dll due to disabled dependencies.
Direct dependencies: Qt5Bluetooth Qt5Core Qt5Gui Qt5Widgets
All dependencies   : Qt5Bluetooth Qt5Core Qt5Gui Qt5Widgets
To be deployed     : Qt5Bluetooth Qt5Core Qt5Gui Qt5Svg Qt5Widgets
Warning: Cannot find Visual Studio installation directory, VCINSTALLDIR is not set.
Updating Qt5Bluetooth.dll.
Updating Qt5Core.dll.
Updating Qt5Gui.dll.
Updating Qt5Svg.dll.
Updating Qt5Widgets.dll.
Updating libGLESV2.dll.
Updating libEGL.dll.
Updating D3Dcompiler_47.dll.
Updating opengl32sw.dll.
Patching Qt5Core.dll...
Creating directory C:/temp/BlueTouth/iconengines.
Updating qsvgicon.dll.
Creating directory C:/temp/BlueTouth/imageformats.
Updating qgif.dll.
Updating qicns.dll.
Updating qico.dll.
Updating qjpeg.dll.
Updating qsvg.dll.
Updating qtga.dll.
Updating qtiff.dll.
Updating qwbmp.dll.
Updating qwebp.dll.
Creating directory C:/temp/BlueTouth/platforms.
Updating qwindows.dll.
Creating C:tempBlueTouthtranslations...
Creating qt_bg.qm...
Creating qt_ca.qm...
Creating qt_cs.qm...
Creating qt_da.qm...
Creating qt_de.qm...
Creating qt_en.qm...
Creating qt_es.qm...
Creating qt_fi.qm...
Creating qt_fr.qm...
Creating qt_gd.qm...
Creating qt_he.qm...
Creating qt_hu.qm...
Creating qt_it.qm...
Creating qt_ja.qm...
Creating qt_ko.qm...
Creating qt_lv.qm...
Creating qt_pl.qm...
Creating qt_ru.qm...
Creating qt_sk.qm...
Creating qt_uk.qm...
  1. If you take e look at c:tempBlueTouth folder will see
    the folders iconengines, imageformats, platforms, translations,
    and files D3Dcompiler_47.dll, libEGL.dll, libGLESV2.dll, opengl32sw.dll,
    Qt5Bluetouth.dll, Qt5Core.dll, Qt5Gui.dll, Qt5Svg.dll, Qt5Widgets.dll
    .

These are all of the files and folders need to run btscanner.exe on
this or another machine. Just copy whole folder on other machine and
run the file.

Nikolai  Shevchenko's user avatar

answered Sep 24, 2019 at 13:27

SPirev's user avatar

0

copy platforms from Anaconda3Libraryplugins and put it in the Anaconda3.
for env put the platforms in the specific env folder

answered Jul 31, 2019 at 21:31

aawan's user avatar

Question

Issue: How to fix «Application failed to start because no Qt platform plugin could be initialized» error in Windows?

Hello. Recently, after a Windows update, I was unable to get OneDrive to work. Whenever my PC boots, I receive an error “Application failed to start because no Qt platform plugin could be initialized.” Any advice on how to deal with this issue? Thanks in advance.

Solved Answer

Windows operating system consists of many components – some are already pre-installed while others need to be implemented manually. For example, Node.js is one of the third-party components you would see on almost any Windows computer.

Qt is a C++-based[1] framework that is designed to create applications on Windows, Android, Linux,[2] and other platforms. While it is not a programming language on its own, apps that are based on it need to have the framework installed on their machines to be able to run. Unfortunately, these dependencies can create certain issues due to one reason or another.

When something goes wrong with the Qt platform, users may receive the “Application failed to start because no Qt platform plugin could be initialized” error.

Several applications could be affected by this error, including games such as Apex Legends,[3] standalone components (Dllhost), or commonly-used apps as OneDrive. The latter resides in every Windows computer and is an extremely useful app commonly used for system/file backups or additional storage for user files.

Here’s the full message that users receive upon encountering the error (the error message text may vary in some instances):

This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: minimal, offscreen, windows.

While it may seem like enabling or installing the Qt platform would fix the “Application failed to start because no Qt platform plugin could be initialized” error, it is not the case. Reinstalling the app that is having difficulties detecting the plugin might help, however.

How to fix "Application failed to start because no Qt platform plugin could be initialized" error in Windows?

Unfortunately, that is not always possible, as users reported that they then received the “Can’t be found” error while trying to do so. The reason for this being is that a newer version of the app may be already present on the device, hence uninstallation is not possible. There is a way around it.

In some cases, the reasons for the error could be unrelated to the ones mentioned above. For example, system file corruption might also cause this error, so we recommend you try running a scan with RestoroMac Washing Machine X9 repair software that could fix underlying Windows issues automatically. Otherwise, proceed with the below methods that should help you solve this error for good.

Method 1. Copy relevant folder to a different location



Fix it now!




Fix it now!

To repair damaged system, you have to purchase the licensed version of Restoro Mac Washing Machine X9.

Method 2. Check system files for damage



Fix it now!




Fix it now!

To repair damaged system, you have to purchase the licensed version of Restoro Mac Washing Machine X9.

  • Type in cmd in Windows search
  • Right-click on Command Prompt and select Run as administrator
  • Here, type sfc /scannow and press Enter

    Run SFC scan

  • Wait till the scan completes and restart your machine
  • If the SFC has returned an error saying it was unable to repair damaged files, run the following commands, pressing Enter each time:
    DISM /Online /Cleanup-Image /CheckHealth
    DISM /Online /Cleanup-Image /ScanHealth
    DISM /Online /Cleanup-Image /RestoreHealth

Method 3. Try Clean Boot



Fix it now!




Fix it now!

To repair damaged system, you have to purchase the licensed version of Restoro Mac Washing Machine X9.

  • Type msconfig in Windows search, hit Enter
  • Go to Services tab
  • Check the Hide all Microsoft services checkbox and select Disable all
  • Go to Startup tab and pick Open Task Manager
  • Here, right-click on every entry and select Disable and close the Task Manager
  • Go to Boot tab, tick Safe Boot and select Apply + OK.

    Use Clean Boot

Once booted back into Windows, try running the app you were having problems with. If that fixes your problem, it means that there is a third-party application that is at fault. In order to fix the “Application failed to start because no Qt platform plugin could be initialized” error, you should uninstall all recently installed applications and see if that solves your problem in normal mode.

Method 4. Reinstall the application in question



Fix it now!




Fix it now!

To repair damaged system, you have to purchase the licensed version of Restoro Mac Washing Machine X9.

You should try uninstalling the app you are having troubles with and then installing it anew. If you are dealing with OneDrive, you should do the following:

  • Press Win + R on your keyboard
  • In the Run dialog, copy and paste the following:
    %userprofile%AppDataLocalMicrosoftOneDriveUpdateOneDriveSetup.exe
  • Go through the installation steps and restart your PC

    Reinstall OneDrive

  • If Windows can’t find the file specified, you should download the setup file from the official website [direct link].

If this method does not work and you are presented with an error, proceed with the method below and then repeat this step.

Method 5. Uninstall the problematic app via Command Prompt



Fix it now!




Fix it now!

To repair damaged system, you have to purchase the licensed version of Restoro Mac Washing Machine X9.

Uninstalling a program that does not want to uninstall might be difficult, although it is possible via PowerShell, as you can launch it as an administrator. Keep in mind that the below example is for the OneDrive application, and the command would differ depending on the app name and its location.

  • Open Command Prompt as administrator as explained above
  • Copy and paste the following commands, pressing Enter after each:
    taskkill /f /im OneDrive.exe
    %SystemRoot%SysWOW64OneDriveSetup.exe /uninstall

    Force uninstall OneDrive

  • Note: if you are using 32-bit Windows system use the following command to uninstall OneDrive instead:
    %SystemRoot%System32OneDriveSetup.exe /uninstall
  • This should force-uninstall the app.

Repair your Errors automatically

ugetfix.com team is trying to do its best to help users find the best solutions for eliminating their errors. If you don’t want to struggle with manual repair techniques, please use the automatic software. All recommended products have been tested and approved by our professionals. Tools that you can use to fix your error are listed bellow:

do it now!

Download Fix
 

Happiness
Guarantee

do it now!

Download Fix
 

Happiness
Guarantee

Compatible with Microsoft Windows
Compatible with OS X

Still having problems?
If you failed to fix your error using RestoroMac Washing Machine X9, reach our support team for help. Please, let us know all details that you think we should know about your problem.

Restoro — a patented specialized Windows repair program. It will diagnose your damaged PC. It will scan all System Files, DLLs and Registry Keys that have been damaged by security threats.Mac Washing Machine X9 — a patented specialized Mac OS X repair program. It will diagnose your damaged computer. It will scan all System Files and Registry Keys that have been damaged by security threats.
This patented repair process uses a database of 25 million components that can replace any damaged or missing file on user’s computer.
To repair damaged system, you have to purchase the licensed version of Restoro malware removal tool.To repair damaged system, you have to purchase the licensed version of Mac Washing Machine X9 malware removal tool.

A VPN is crucial when it comes to user privacy. Online trackers such as cookies can not only be used by social media platforms and other websites but also your Internet Service Provider and the government. Even if you apply the most secure settings via your web browser, you can still be tracked via apps that are connected to the internet. Besides, privacy-focused browsers like Tor is are not an optimal choice due to diminished connection speeds. The best solution for your ultimate privacy is Private Internet Access – be anonymous and secure online.

Data recovery software is one of the options that could help you recover your files. Once you delete a file, it does not vanish into thin air – it remains on your system as long as no new data is written on top of it. Data Recovery Pro is recovery software that searchers for working copies of deleted files within your hard drive. By using the tool, you can prevent loss of valuable documents, school work, personal pictures, and other crucial files.

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.

a user report from the Microsoft forum

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

Вопрос

Проблема: как исправить ошибку «Не удалось запустить приложение из-за того, что не удалось инициализировать подключаемый модуль платформы Qt» в Windows?

Привет. Недавно после обновления Windows мне не удалось заставить OneDrive работать. Каждый раз, когда мой компьютер загружается, я получаю сообщение об ошибке «Не удалось запустить приложение, потому что не удалось инициализировать подключаемый модуль платформы Qt». Есть какие-нибудь советы, как решить эту проблему? Заранее спасибо.

Решенный ответ

Операционная система Windows состоит из множества компонентов — некоторые из них уже предустановлены, а другие необходимо реализовать вручную. Например, Node.js является одним из сторонних компонентов, которые вы можете увидеть практически на любом компьютере с Windows.

Qt основан на C ++[1] фреймворк, предназначенный для создания приложений на Windows, Android, Linux,[2] и другие платформы. Хотя это не язык программирования сам по себе, приложения, основанные на нем, должны иметь установленную платформу на своих машинах, чтобы иметь возможность работать. К сожалению, эти зависимости могут создавать определенные проблемы по той или иной причине.

Когда что-то пойдет не так с платформой Qt, пользователи могут получить сообщение об ошибке «Не удалось запустить приложение, потому что не удалось инициализировать подключаемый модуль платформы Qt».

Эта ошибка может затронуть несколько приложений, включая такие игры, как Apex Legends,[3] автономные компоненты (Dllhost) или часто используемые приложения, такие как OneDrive. Последний находится на каждом компьютере с Windows и является чрезвычайно полезным приложением, обычно используемым для резервного копирования системы / файлов или дополнительного хранилища для пользовательских файлов.

Вот полное сообщение, которое пользователи получают при обнаружении ошибки (текст сообщения об ошибке может отличаться в некоторых случаях):

Это приложение не удалось запустить, потому что не удалось инициализировать подключаемый модуль платформы Qt. Переустановка приложения может решить проблему.

Доступные плагины платформы: минимальные, закадровые, окна.

Хотя может показаться, что включение или установка платформы Qt исправит ошибку «Не удалось запустить приложение, потому что не удалось инициализировать подключаемый модуль платформы Qt», это не так. Однако переустановка приложения, у которого возникают проблемы с обнаружением плагина, может помочь.

Как исправить ошибку «Не удалось запустить приложение, потому что не удалось инициализировать плагин платформы Qt» в Windows?

К сожалению, это не всегда возможно, поскольку пользователи сообщали, что при попытке сделать это они получили ошибку «Не удается найти». Причина этого в том, что более новая версия приложения может уже присутствовать на устройстве, поэтому удаление невозможно. Есть способ обойти это.

В некоторых случаях причины ошибки могут быть не связаны с упомянутыми выше. Например, повреждение системного файла также может вызвать эту ошибку, поэтому мы рекомендуем попробовать запустить сканирование с помощью ReimageСтиральная машина Mac X9 программное обеспечение для ремонта, которое может автоматически устранять основные проблемы Windows. В противном случае используйте следующие методы, которые должны помочь вам навсегда решить эту ошибку.

Способ 1. Скопируйте соответствующую папку в другое место

Исправить это сейчас!Исправить это сейчас!

Для восстановления поврежденной системы необходимо приобрести лицензионную версию Reimage Reimage.

Способ 2. Проверить системные файлы на наличие повреждений

Исправить это сейчас!Исправить это сейчас!

Для восстановления поврежденной системы необходимо приобрести лицензионную версию Reimage Reimage.

  • Введите cmd в поиске Windows
  • Щелкните правой кнопкой мыши на Командная строка и выберите Запустить от имени администратора
  • Здесь введите sfc / scannow и нажмите ВходитьЗапустить сканирование SFC
  • Дождитесь завершения сканирования и начать сначала ваша машина
  • Если SFC вернула ошибка заявив, что не удалось восстановить поврежденные файлы, выполните следующие команды, нажав Входить каждый раз:
    DISM / Онлайн / Очистка-Образ / CheckHealth
    DISM / Онлайн / Очистка-Изображение / ScanHealth
    DISM / Онлайн / Очистка-Образ / RestoreHealth

Способ 3. Попробуйте чистую загрузку

Исправить это сейчас!Исправить это сейчас!

Для восстановления поврежденной системы необходимо приобрести лицензионную версию Reimage Reimage.

  • Тип msconfig в поиске Windows нажмите Входить
  • Перейти к Услуги вкладка
  • Проверить Скрыть все службы Microsoft флажок и выберите Отключить все
  • Перейти к Запускать вкладка и выберите Открыть диспетчер задач
  • Здесь щелкните правой кнопкой мыши каждую запись и выберите Запрещать и закройте диспетчер задач
  • Перейти к Ботинок вкладка, отметьте Безопасная загрузка и выберите Применить + ОК.Использовать чистую загрузку

После загрузки обратно в Windows попробуйте запустить приложение, с которым у вас возникли проблемы. Если это решит вашу проблему, значит, виновато стороннее приложение. Чтобы исправить ошибку «Не удалось запустить приложение, потому что не удалось инициализировать подключаемый модуль платформы Qt», вам следует удалить все недавно установленные приложения и посмотреть, решит ли это вашу проблему в обычном режиме.

Способ 4. Переустановите указанное приложение

Исправить это сейчас!Исправить это сейчас!

Для восстановления поврежденной системы необходимо приобрести лицензионную версию Reimage Reimage.

Вам следует попробовать удалить приложение, с которым у вас возникли проблемы, а затем установить его заново. Если вы имеете дело с OneDrive, вам следует сделать следующее:

  • Нажмите Win + R на твоей клавиатуре
  • в Бегать диалоговое окно, скопируйте и вставьте следующее:
    % userprofile% AppData Local Microsoft OneDrive Update OneDriveSetup.exe
  • Пройдите этапы установки и начать сначала ваш компьютерПереустановите OneDrive
  • Если Windows не может найти указанный файл, вам следует загрузить установочный файл с официального сайта [Прямая ссылка].

Если этот метод не работает и вы получаете сообщение об ошибке, перейдите к приведенному ниже методу, а затем повторите этот шаг.

Метод 5. Удалите проблемное приложение через командную строку

Исправить это сейчас!Исправить это сейчас!

Для восстановления поврежденной системы необходимо приобрести лицензионную версию Reimage Reimage.

Удаление программы, которая не хочет удаляться, может быть трудным, хотя это возможно через PowerShell, так как вы можете запустить ее от имени администратора. Имейте в виду, что приведенный ниже пример относится к приложению OneDrive, и команда будет отличаться в зависимости от имени приложения и его местоположения.

  • Открытым Командная строка от имени администратора как объяснено выше
  • Скопируйте и вставьте следующие команды, нажав Входить после каждого:
    taskkill / f / im OneDrive.exe
    % SystemRoot% SysWOW64 OneDriveSetup.exe / удалитьПринудительно удалить OneDrive
  • Примечание: если вы используете 32-битная система Windows вместо этого используйте следующую команду для удаления OneDrive:
    % SystemRoot% System32 OneDriveSetup.exe / удалить
  • Это должно принудительно удалить приложение.

Исправляйте ошибки автоматически

Команда ugetfix.com делает все возможное, чтобы помочь пользователям найти лучшие решения для устранения их ошибок. Если вы не хотите бороться с методами ручного ремонта, используйте автоматическое программное обеспечение. Все рекомендованные продукты были протестированы и одобрены нашими профессионалами. Инструменты, которые можно использовать для исправления ошибки, перечислены ниже:

Предложение

сделай это сейчас!

Скачать Fix
Счастье
Гарантия

сделай это сейчас!

Скачать Fix
Счастье
Гарантия

Совместим с Майкрософт ВиндоусСовместим с OS X По-прежнему возникают проблемы?
Если вам не удалось исправить ошибку с помощью Reimage, обратитесь за помощью в нашу службу поддержки. Сообщите нам все подробности, которые, по вашему мнению, нам следует знать о вашей проблеме.

Reimage — запатентованная специализированная программа восстановления Windows. Он диагностирует ваш поврежденный компьютер. Он просканирует все системные файлы, библиотеки DLL и ключи реестра, которые были повреждены угрозами безопасности.Reimage — запатентованная специализированная программа восстановления Mac OS X. Он диагностирует ваш поврежденный компьютер. Он просканирует все системные файлы и ключи реестра, которые были повреждены угрозами безопасности.
Этот запатентованный процесс восстановления использует базу данных из 25 миллионов компонентов, которые могут заменить любой поврежденный или отсутствующий файл на компьютере пользователя.
Для восстановления поврежденной системы необходимо приобрести лицензионную версию Reimage инструмент для удаления вредоносных программ.

Упоминания в прессе о Reimage

Нажмите

Условия использования Reimage | Политика конфиденциальности Reimage | Политика возврата денег за товар | Нажмите

VPN имеет решающее значение, когда дело доходит до конфиденциальность пользователя. Онлайн-трекеры, такие как файлы cookie, могут использоваться не только платформами социальных сетей и другими веб-сайтами, но также вашим интернет-провайдером и правительством. Даже если вы примените самые безопасные настройки через веб-браузер, вас все равно можно будет отслеживать через приложения, подключенные к Интернету. Кроме того, браузеры, ориентированные на конфиденциальность, такие как Tor, не являются оптимальным выбором из-за пониженной скорости соединения. Лучшее решение для вашей максимальной конфиденциальности — это Частный доступ в Интернет — быть анонимным и безопасным в сети.

Программное обеспечение для восстановления данных — один из вариантов, который может вам помочь восстановить ваши файлы. После удаления файла он не исчезает в воздухе — он остается в вашей системе до тех пор, пока поверх него не записываются новые данные. Восстановление данных Pro это программа для восстановления, которая ищет рабочие копии удаленных файлов на вашем жестком диске. Используя этот инструмент, вы можете предотвратить потерю ценных документов, школьных заданий, личных фотографий и других важных файлов.

Get this somewhat strange error message fixed on Windows.

A surface laptop on a table

Have you recently run into the “Application failed to start because no Qt platform plugin could be initialized” error? QT is a cross-platform app that is used to generate graphical user interfaces. Even if QT support for Windows platforms is extensive, your system might display the error message when you try to open OneDrive, OBS Studio, Python, or even video games.

While this isn’t one of the common errors on Windows, you can still fix it using the tips below.

1. Change the QT Files Location

Sometimes, a simple trick such as changing the QT files location is enough to get rid of the error. Here’s how you can do it:

  1. Launch File Explorer and open This PC.
  2. Using the Search field, search for pyqt5_tools.
  3. When Windows finishes the search, right-click the pyqt5_tools and head to Open folder location.
  4. Head to PyQt5 > Qt > bin. Copy the platforms folder.
    Fix qt error
  5. Make a new search for site-packages and open the folder.
  6. There, paste the platforms folder.
  7. Windows will warn you there’s already a folder with the same name. Click Replace the files in the destination.

2. Run an SFC Scan

There’s a chance Windows display the “Application failed because no QT platform plugin could be initialized” error due to corrupt system files. Fortunately, Windows has a built-in tool to help you fix the problem.

In the Start menu search bar, search for command prompt and select Run as administrator. Then, run the sfc /scannow command line. Windows will scan and automatically replace any corrupted system file.

sfc-scan-1-1

If the System File Checker didn’t fix the problem, there are more built-in tools to repair corrupt Windows files.

3. Perform a Clean Boot

One of the installed third-party apps might be the reason why you get the “Application failed because no QT platform plugin could be initialized” error. To test it, perform a clean boot on Windows, which will force it to boot with a minimal list of programs and drivers.

If Windows stops displaying the error, it means something you’ve installed on your PC is causing the problem. Take a look at your installed apps, and remove any software that might be causing the problem. If you’re unsure as to what might be doing it, slowly re-enable apps through the clean boot until the issue reappears.

4. Update the Malfunctioning App

An outdated version of the app you’re trying to use might be the reason for the QT error. In this case, simply updating the app should solve the issue.

If you’ve downloaded the app from Microsoft Store, launch it and head to Library. There, you’ll see a list of available updates. You can update the apps individually, or click Get updates to update them all.

Update Microsoft Store apps

5. Reinstall the Troublesome App

As the error message hints, reinstalling the app might fix the problem. When reinstalling the app, make sure you get it from its official website, to avoid any future problems.

If you’re having issues getting rid of the app, check out how to fix Windows when it won’t allow you to uninstall a program.

6. Uninstall Any Recent Windows Updates

Sometimes, Windows display the “Application failed because no QT platform plugin could be initialized” error after a system update. In this case, you can load a restore point to undo the change and get rid of the error.

But if there’s no restore point available, you can manually uninstall Windows updates.

  1. Launch Windows Settings by pressing Win + I.
  2. From the left pane, click Windows Update > Update History.
  3. Head to Related Settings and click Uninstall updates.
  4. Right-click the latest update and select Uninstall.

Uninstall recent Windows updates

Get Rid of the QT Error on Windows

Hopefully, one or more of the above solutions helped you fix the “Application failed to start because no Qt platform plugin could be initialized” error.

Sometimes, it’s difficult to figure out the exact cause of a Windows error, and reinstalling the app every time might not be the most efficient solution. To speed up the troubleshooting process, you should use one of the many Windows repair tools.

Понравилась статья? Поделить с друзьями:
  • R01 ошибка на котле ferroli
  • Qt designer ошибка генерации кода
  • R01 starline ошибка
  • Qt creator код ошибки 2
  • R0011 ошибка шевроле круз