PySide6 - Could not find the Qt platform plugin "windows" error - pyqt

After then I installed Pyside6(pip install pyside6), I couldn't use it cause of error message occur.
< Error Message >
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 tried changed path

I could solve it by add system path.
Path Name : QT_QPA_PLATFORM_PLUGIN_PATH
Path Value : address of the file name : 'qwindows.dll'

Related

Changing CAPACITOR_ANDROID_STUDIO_PATH in Arch Linux

I'm trying to set up my development environment for CapacitorJS on Arch Linux.
I followed the documentation and added
CAPACITOR_ANDROID_STUDIO_PATH=/usr/bin/android-studio
to my systems environment variables (not the project) but I'm still getting the same error
[error] Unable to launch Android Studio. Is it installed?
Attempted to open Android Studio at:
/usr/local/android-studio/bin/studio.sh
You can configure this with the CAPACITOR_ANDROID_STUDIO_PATH
environment variable.
Even though It's never pointed to /usr/local/android-studio/bin/studio.sh
I ran whereis android-studio and got android-studio: /usr/bin/android-studio, so I thought that would be the correct path, but every time I run npx cap open android it says it's trying it launch from the same path and never changes
It depends how you've installed it, for example Toolbox installs it inside the user's home directory.
nano ~/.bashrc
export CAPACITOR_ANDROID_STUDIO_PATH=~/.local/share/JetBrains/Toolbox/apps/AndroidStudio/ch-0/202.7486908/bin/studio.sh
locate studio.sh might be able to find it, too.

No devices found with name or id matching 'linux'

When I execute the command flutter run -d linux to run my flutter app on my Linux computer I get the following error
No devices found with name or id matching 'linux'
You probably forgot to add support for your platform as stated in Desktop support for Flutter.
In case you are getting one of the following errors here are the fixes.
For Linux:
Error
No devices found with name or id matching 'linux'
Fix
flutter config --enable-linux-desktop
For Windows:
Error
No devices found with name or id matching 'windows'
Fix
flutter config --enable-windows-desktop
For MacOS:
Error
No devices found with name or id matching 'macos'
Fix
flutter config --enable-macos-desktop

could not find or load the Qt platform plugin "windows" python34 PyQt4 pyinstaller

after use pyinstaller app didnt work and get this "" This application failed to start because it could not find or load the Qt platform plugin "windows".
Reinstalling the application may fix this problem. ""
finally Got it !!
after hours of searching i found solution round about " plugins platforms "
so i just take a copy from main pyqt4 file plugin platform and pasted in qt4_plugins where pyinstaller put my app
and my app work fine >> i hope that could help , thanks ---
note: my app built with python 3.4 - pyqt4 - qt

PySide2 application failed to start

I just tried to test the newly released version of PySide2 (5.11) on Windows 10, 64 bit version. But the "Hello World" example does not work. I am using Python 3.6 with PyCharm. The interpreter I use is from Anaconda. So I pip installed the PySide2 version and also tried to install via "conda install ..." the older version of PySide2. Both installations worked, but I get the same error message for both libraries.
The error message is popping up in a separate screen saying: "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."
So I definitely can see the plugin files in the correct folder. I tried reinstalling. Deleted everything and tried other IDEs. But nothing solved the problem.
Any help is appreciated.
Try This :
import sys,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
# code .......
# .......
If you run the app after having set QT_DEBUG_PLUGINS=1, you should get more info on what is the issue. In my case, I was getting:
QFactoryLoader::QFactoryLoader() checking directory path "C:/Users/xxxxx/AppData/Local/py3/platforms" ...
qt.qpa.plugin: Could not find the Qt platform plugin "windows" in ""
Such a folder does not exist on my machine.
There are a few tickets somehow related to a similar issue (not sure it is the same problem):
https://bugreports.qt.io/browse/PYSIDE-559
https://github.com/pyside/pyside2-setup/issues/57
https://github.com/conda-forge/matplotlib-feedstock/issues/2
https://github.com/conda-forge/qt-feedstock/issues/71
My current working solution is to remove PyQt, qt and sip anaconda packages, then to manually delete a relic qt.conf in the root folder of the environment. After that, the official PyPi PySide2 wheel works fine.
check whether you have this directory or not: C:\Users\your_user_name\anaconda3\envs\your_virtual_env_name\Library\plugins.
If you don't have it, copy the whole "plugin" folder from your PySide2 site-package.
Mine is in here: C:\Users\your_user_name\anaconda3\envs\your_virtual_env_name\Lib\site-packages\PySide2\plugins
and paste the whole folder to C:\Users\your_user_name\anaconda3\envs\your_virtual_env_name\Library

NDK Build not working

I'm building an android application that requires android ndk.
When i try to execute the command ndk-build.cmd, I get the following error:
"unable to find the specified path"
I've set the path variable to the path where ndk is located, but it still doesn't work...anyone knows how to solve this issue?
The binaries you need to add to the path are in the NDK itself. I think I had the same problem as you which I solved by adding {NDK install dir}/prebuilt/darwin-x86/bin to my path.
I've written a blog post about my experiences of installing ADT/NDK, this solution appears about half way through.
Try to use linux terminal or use cygwin
Or check out this link

Resources