Git Product home page Git Product logo

Comments (27)

u-fischer avatar u-fischer commented on September 25, 2024 57

Today there were a number of updates, and miktex-qt5 was marked as "removed". After I processed these updates the console was closed. Trying to open it again, gave again the error that qt-platform could not be found. I then called again on the command line miktex packages update. That reinstalled miktex-qt6-bin-x64 and now everything is fine. No miktex-qt5 anymore and qt6 works.

Note (from a comment below)

User with a multi-user miktex will perhaps need the --admin switch, so
miktex --admin packages update

from miktex.

u-fischer avatar u-fischer commented on September 25, 2024 13

I can confirm that there is a problem. After todays update I got a behaviour similar to #1437: there was an incomplete qt5-package and when checking for updates miktex claimed it must be repaired.

After I accepted the update, miktex console was closed and when trying to reopen it, it errored:

image

I could repair that by checking for updates on the command line:

C:\Users\Nililand2020\Documents\Tests>miktex packages check-update
miktex-qt6-bin-x64

C:\Users\Nililand2020\Documents\Tests>miktex packages update
Installing package miktex-qt6-bin-x64...

After that the console opens again, but agains claims that there is something to repair:

image

from miktex.

u-fischer avatar u-fischer commented on September 25, 2024 11

@alleluia20 try with
miktex --admin packages update

from miktex.

teeSngRovn avatar teeSngRovn commented on September 25, 2024 9

takrl shared his method to solve this problem, see https://tex.stackexchange.com/a/716743/293081 This works on W10 well. You don't need to reinstall all the files.

I solve this issue accord to takrl's method, you don't have to reinstall the miktex. Here is my way:

  1. By the link provided by takrl, you can download the package named `miktex-qt6-bin-x64.tar.lzma'.
  2. Unzipped the package until you find it's a folder, than go into this folder until you reach the files in \texmf\miktex\bin\x64
  3. Find your MikTeX installing folder like D:\YourFolder\MikTex, go into D:\YourFolder\MikTex\miktex\bin\x64 .
  4. Now copy all the files in the step2's x64 folder into the step3's x64 folder(Choosing substitute all).
  5. For me, after all this steps, the MikTeX works again.

NOTE: One thing have to add is, after these steps, you might find (as I find) MiKTeX ask you to update again to delete qt5 package. And after you update the package, MiKTeX will collapse again. So now what you need to do is also not reinstalling MiKTeX but walk through the step mentioned above again. After this time, the MiKTeX will no longer have updates and behave normally.

from miktex.

marcoxa avatar marcoxa commented on September 25, 2024 4

Hi

I confirm that for a "all users" installation of Windows 11, the

miktex --admin packages update

worked for me (in a cmd with administrator privileges).

Turns out there were a few packages to update, some that looked pretty basic.

from miktex.

assjock avatar assjock commented on September 25, 2024 2

takrl shared his method to solve this problem, see https://tex.stackexchange.com/a/716743/293081
This works on W10 well. You don't need to reinstall all the files.

from miktex.

192933488S avatar 192933488S commented on September 25, 2024 2

Enormous simplicity by @u-fischer ! It works in my case, i.e., MiKTeX GUI is launching again. The --admin was removed, as it was not needed.

miktex --admin packages update

from miktex.

PhotoVisionProject avatar PhotoVisionProject commented on September 25, 2024 2

Problem Solved! Here’s what worked for me:

Run the command miktex packages verify.

It should return miktex-qt6-bin-x64, indicating that this package needs to be reinstalled.

Without using admin rights (since I have a local, non-shared version of MiKTeX on my PC), execute:

miktex packages update

This command will reinstall the miktex-qt6-bin-x64 package.

These steps were successful for me when performed in a command prompt with administrator privileges.

from miktex.

pddzaic avatar pddzaic commented on September 25, 2024 1

I can confirm, that the workaround provided by u-fischer worked for me. The code

miktex packages verify

gives you the packages which needs to be reinstalled.

from miktex.

SicaoCent avatar SicaoCent commented on September 25, 2024 1

Thanks @u-fischer and @pddzaic. I tried the explained method and now MiKTeX works fine with all the new insatlled packages: qt5 was removed and qt6 was updated.

from miktex.

alleluia20 avatar alleluia20 commented on September 25, 2024 1

Hello,

I would beg @edocevoli or @SicaoCent to reopen the bug. As you can see, it is affecting many people and, in my case, the workaround posted by @u-fischer is not working, nor can I reinstall the package miktex-qt6-bin-x64. I am now sharing all the details:

  1. I have Miktex installed in Windows 11 for all users, "as an administrator" (I know this is not recommended, but I did so because I am the only user of the computer).
  2. If I try to open the Miktex console, either as a user or as an admin, I get the famous window "[...] no Qt platform plugin could be initialized".
  3. I open a Windows PowerShell as an admin, and I try the following commands:
  • miktex packages verify returns miktex-qt6-bin-x64: this package needs to be reinstalled.
  • miktex packages check-update returns There are currently no updates available.
  • miktex packages info miktex-qt6-bin-x64 returns version: 6.7.0 and isInstalled: true.
  • miktex packages info miktex-qt5-bin-x64 returns isInstalled: false.
  • miktex packages update returns There are currently no updates available and it does nothing, it does not reinstall anything.
  • miktex packages install miktex-qt6-bin-x64 returns Sorry, but: miktex-qt6-bin-x64: package is already installed.
  • miktex packages remove miktex-qt6-bin-x64 returns Sorry, but: MiKTeX encountered an internal error. So I am unable to remove or reinstall the package.

Is there anything else I can try? I am exasperating! Or, do you maybe need to give an update of miktex-qt6-bin-x64 that fixes the bug?

Thank you in advance.

from miktex.

SicaoCent avatar SicaoCent commented on September 25, 2024 1

For @alleluia20 : I am not a Computer Science specialist, but now my MiKTeX instalation works perfectly, and I write below what I made (maybe you could reproduce it, if you want).

  1. First, I uninstall the old MiKTeX using the instructions from https://miktex.org/faq and running as administrator from the Command line the uninstall code of this link;
  2. I installed the Basis MiKTeX to the recommended option (not as administartor). It installed a functional (basical) MiKTeX that I could use well till yesterday: I say that it doesn't installed the two packages we discussed about and where something was unappropriate;
  3. Yesterday, after the last update appeared I added all the packages (the -qt5 doesn't appears in this list), I updated the package database, I checked for updates, etc. and now I have a complete MiKTeX installation fully functional as before.

Thanks to @u-fischer and @pddzaic for your help.

from miktex.

venkatachalapathy avatar venkatachalapathy commented on September 25, 2024 1

C: ...\AppData\Local\Programs\MiKTeX2\miktex\bin\x64\platforms>ls
qwindows.dll

So it looks like the correct file is already present. I have not tried the this trick yet---I will now.

Qt, in this case, is the Qt library used by MikTeX (https://www.qt.io/). I can't reproduce your Windows 7 error, however, I know how to fix the Windows 8 one.

You can fix this error by copying the file qwindows.dll from /miktex/bin/platforms/ to /AppData/Roaming/MikTex//miktex/bin/platforms/.

You might have to create the platforms folder.

from miktex.

edocevoli avatar edocevoli commented on September 25, 2024

I was not able to reproduce this issue. What I did:

  • install MiKTeX
  • update MiKTeX

No issues with package miktex-qt5-bin-x64. If it still doesn't work for you, then I would recommend that you attach log files.

from miktex.

edocevoli avatar edocevoli commented on September 25, 2024

Also, you are installing from an outdated package repository. Please sync the local package repository before installing MiKTeX.

from miktex.

SicaoCent avatar SicaoCent commented on September 25, 2024

Thanks, the next days I will follow your instructions: I will download again MiKTeX, I will install it from the new package repository, and if the same will happen I will send the log files.

But the MiKTeX Iocal package repository I downloaded today using the NetInstaller, then I installed it as administrator. The before last update I used till today was those of April 20 (approx.) and it worked flawlessly.

Anyway, I will send my new feedback after that.

from miktex.

SicaoCent avatar SicaoCent commented on September 25, 2024

The same bad issue happened after: I downloaded the Net Installer from "https://miktex.org/download", I installed MiKTeX and then I made the update (repair was asked) for "miktex-qt5-bin-x64". I attached the log files and the screenshot in the archive.

Fortunately, the Basic Installer (it seems is a new one comparing with the Net Installer) works fine. Maybe thre is an issue to the Net Installer - you are the expert :-) . Thanks, Ted.
Logs and Screenshot.zip

from miktex.

SicaoCent avatar SicaoCent commented on September 25, 2024

MiKTeX basic installer worked well for me after the installation. But after I added all the packages, MiKTeX console asked me to update these two files. After that the console crashed as it happened before. Therefore, I am using only the basics installation without adding any additional packages: in this case all works fine, and compilations and console run well.

from miktex.

SicaoCent avatar SicaoCent commented on September 25, 2024

Thanks @assjock and @teeSngRovn for the suggestions. Now I am using the basic installed MiKTeX that works well (maybe it doesn't contains this package), and I will wait for a while till @edocevoli will find a global solution (maybe a new update). If not, then I will try these two combined methods to fix the inconvenience.

from miktex.

alleluia20 avatar alleluia20 commented on September 25, 2024

@alleluia20 try with miktex --admin packages update

Thank you very much, @u-fischer! This worked!

So the --admin flag must be appended when Miktex is managed by the admin. I did not know that.

from miktex.

cdriveraus avatar cdriveraus commented on September 25, 2024

This issue just occurred for me, seems clear that there is still an issue. fixed using the console update approach.

from miktex.

mkkinyon avatar mkkinyon commented on September 25, 2024

(Win11) I can run MiKTeX Console just fine but am getting the same "application failed to start..." error when attempting to (La)TeX any document. I have reinstalled MiKTeX twice this morning, but nothing. All the qt6 dll's are up to date. Attempting to update from a command line per what @u-fischer suggested does nothing. I get all the same responses as @alleluia20 in their command line attempts above. My installation is not multi-user so the --admin flag is not available. I am completely at a loss.

from miktex.

alleluia20 avatar alleluia20 commented on September 25, 2024

from miktex.

msk-nightly avatar msk-nightly commented on September 25, 2024

I faced a very similar issue today on MikTeX console 4.12 (OS: Win 10 x64). The qt5 plugin was removed upon updating and that resulted in an unusable MikTeX console. I'll share the solution I discovered just as an addition. Perhaps it might provide some insight or help someone in some way.

Upon facing this alarming issue, I turned to a search engine online. In the top 5 results, I found this page where an answer instructs one to copy the qwindows.dll file from one directory to another. I could not find that file but I found a qwindows.dll.old file in C:\Users\<USERNAME>\AppData\Local\Programs\MiKTeX\miktex\bin\x64\platforms\ which I renamed to qwindows.dll and Voilà! MikTeX console was up and running again.

I then checked for updates again and it showed a pending repair for qt6. Upon applying that update and reopening the console, things returned to normal. Now, I've found this thread and am posting my story.

I hope that the process is streamlined somehow. Thank you.

from miktex.

venkatachalapathy avatar venkatachalapathy commented on September 25, 2024

Like others in this thread, I've had issues with MikTex after an update 2 weeks ago. I have a 64bit Windows 10 installation.

  1. I am unable to uninstall old install. So I've been working with a new renamed installation of MikTeX
  2. I've been unable to resolve plugin error, even after following the qt6 update.

pandoc test.md -o test.pdf 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.

I've tried all versions of tips provided

from miktex.

msk-nightly avatar msk-nightly commented on September 25, 2024

@venkatachalapathy Have you tried this one?

I faced a very similar issue today on MikTeX console 4.12 (OS: Win 10 x64). The qt5 plugin was removed upon updating and that resulted in an unusable MikTeX console. I'll share the solution I discovered just as an addition. Perhaps it might provide some insight or help someone in some way.

Upon facing this alarming issue, I turned to a search engine online. In the top 5 results, I found this page where an answer instructs one to copy the qwindows.dll file from one directory to another. I could not find that file but I found a qwindows.dll.old file in C:\Users\<USERNAME>\AppData\Local\Programs\MiKTeX\miktex\bin\x64\platforms\ which I renamed to qwindows.dll and Voilà! MikTeX console was up and running again.

I then checked for updates again and it showed a pending repair for qt6. Upon applying that update and reopening the console, things returned to normal. Now, I've found this thread and am posting my story.

I hope that the process is streamlined somehow. Thank you.

from miktex.

venkatachalapathy avatar venkatachalapathy commented on September 25, 2024

C:\...\AppData\Local\Programs\MiKTeX2\miktex\bin\x64\platforms>copy qwindows.dll C:\Users\Rajesh\AppData\Roaming\MiKTeX\2.9\miktex\bin\platforms 1 file(s) copied.

C:\...\Documents\folder_for_github\socialOS>pandoc test.md -o test.pdf 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.

It did not work.

from miktex.

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.