Ninja IDE and PyQt >= 4.7 how to configure on windows - python

I tried to configure the PyQt >= 4.7 on windows . but i was unable to configure it with ninja IDE source code, when i trying to run the IDE it gives an error as below:
ImportError: No module named PyQt4.QtCore`
how to run the ninja IDE source and configure the PyQt on windows?

I've installed Ninja IDE on two Windows machines, a Windows 7 machine with only standard Python 3 installed where it gives me that error you mentioned.
And a Windows XP machine on which I had pythonxy which comes with PyQt in a convenient easy to use installer thus it worked without any further troubles.

I am having the same problem on Ubuntu: installing the PyQt packet from source solved it. I assume that Ninja-IDE needs these packets to be installed as a prerequisite.

Related

Unable to run PythonWin For Python 3.9 64bit

I was trying to create Python executables on Windows 10 Pro (latest) so was upgrading to the latest packages but it's changed.
I've just gotten rid of Python 3.6 and reinstalled Python 3.9. I then went and installed PythonWin for it using the following (there no longer seems to be what was a standard install package):
**pip install pywin32**
Python is on the start menu but, unlike earlier installs, the new way of installing PythonWin this doesn't seem to give me any kind of way to run the program. Surely it should create some kind of shortcut on the start menu?
Any advice on this would be most helpful.
James
SOLVED!
While I still have no idea why a Start Menu shortcut wasn't installed, I have found the executable that runs PythonWin.
It was located in the following folder:
"C:\Users<MyUserID>\AppData\Local\Programs\Python\Python39\Lib\site-packages\pythonwin"
Thanks :)

opencv for windows XP

I'm working with opencv in my last study's project. I have python 2.7 x86 and opencv 3.4 already installed.
I developed my python project in windows 8 64 bit and I converted my application from .py to .exe through Pyinstaller and it's working fine .
But when I move my application to the industrial machine which is windows xp pack 3 32bit and i try to import cv2 I get the following error :
ImportError: DLL load failed: The specified module could not be found.
Note that I have tried to install Microsoft visual c++ 2015 and didn't solve the problem and I try everything said about this problem on stackoverflow and didn't work with me .
Can anyone help me here ?
You should copy opencv.dll to directory contains .exe.
The latest supported version opencv for WindowsXP and with Python v3.4 support is '3.2.0.8'
You can still install it by following command:
pip install opencv-python==3.2.0.8

Pyside Installation "Failed to find the MSVC compiler version 10.0 on your system"

I'm currently in the process of developing a gui for my python script and want to do that by using PySide.
Right now I just can't get it up and running. PIP alwyas exits with this error:
nmake not found. Trying to initialize the MSVC env...
Searching MSVC compiler version 10.0 error: Failed to find the MSVC compiler version 10.0 on your system.
I have the following components installed:
Python 3.4.4 (64Bit)
QT 5.6 / 5.7
Pycharm Community Edition
Windows 7 64Bit
I can run PIP and Python from the terminal without having to cd into the python directory. So my PATH Variables are set correctly.
Does anybody have the same issues or maybe a solution?
Best
Jo
PySide requires Python 2.6 or later and Qt 4.6 or better.
Qt 5.x is currently not supported.
From: https://pypi.python.org/pypi/PySide/1.2.4#installing-pyside-on-a-windows-system
So maybe using qt4.x(>=4.6) instead of qt5.x can fix your problem.
I think the reason is that pip on your system install PySide from source package so you need a c/c++ complier.
Maybe you can install PySide binary version directly following this:
pip install PySide --only-binary :all:
If it doesn't work, please try to download ".exe" file, and run it instead of using pip.
".exe" from: https://download.qt.io/official_releases/pyside/

Python Windows 7 - Installation Fail 0x80240017

I tried installing Python 3.5.0 on my laptop, running Windows 7, and it would keep returning with a "Setup failed" with 0x80240017 - Unspecified Error.
I've tried running as admin and with the three different installers on the site.
Here is the log file: http://pastebin.com/9yuXv1qK
I have faced the same issue -unspecified error during installation
Package: python-3.6.0-amd64.exe
Platform: Windows Embedded standard, 64-bit.
Solution that worked for me:
Uninstall the corrupted Python installation.
Install KB2999226.
Install Python as Administrator.
It is throwing that error because it is trying to install that KB (2999.. something) and failing. If you try to install that KB yourself, it might fail too, as it has some minimum OS requirements. In my case, it was Service Pack 1 for Windows 7. After installing Service Pack 1 I was able to install Python 3.5.x fine.
I collected the required update packages to install python on win 8.1
This topc is related to the following one as well:
Python install failed windows 8.1- Error 0x80240017: Failed to execute MSU package
the packages (I did not check the subset of packages, but if you install the all, python can be installed. There are some packages that requires another one before install, the required one is listed here as well.
So if the install says "this upgrade is not suitable for this machine" just go on, install other packages, and when you finished, install the remaining packages that you were not able to install before.
clearcompressionflag.exe
Windows8.1-KB2887595-v2-x64.msu
Windows8.1-KB2898514-x64.msu
Windows8.1-KB2901101-x64.msu
Windows8.1-KB2906956-x64.msu
Windows8.1-KB2908174-x64.msu
Windows8.1-KB2919355-x64.msu
Windows8.1-KB2919442-x64.msu
Windows8.1-KB2932046-x64.msu
Windows8.1-KB2934018-x64.msu
Windows8.1-KB2937592-x64.msu
Windows8.1-KB2938439-x64.msu
Windows8.1-KB2959977-x64.msu
Windows8.1-KB2999226-x64.msu
As it can be seen I used win 8.1 x64. The total size of these packages is about 1 GB. These all are downloadable from microsoft update center.
BR,
George
I am also using win 7 home premium SP1 and encountered this problem, I solved it by:
Go the Windows Update in the Control Panel
Search for the installed update named KB2999226
Uninstall that update
And DONE!!!
Honestly, use this method at your own risk as I am just a newbie in programming and have no idea what that Windows Update was for. But I did it anyways.
I was trying to install Python 3.6.0 on Windows 7 64x laptop and kept getting stuck on installing KB2999226. So, I read what others did on this forum(Fabio Consultant). A previous post mentioned Visual Studio. So, I went to Programs and Features (where you Uninstall a Program), right clicked on the most recent install of Visual Studio, selected "Change" and did a "repair". Once that completed, I installed Python as an Administrator (right click on the .exe file and "run as Administrator") and Python installed without a problem. I didn't see that the install tried to install KB2999226.
Details on KB2999226 (https://support.microsoft.com/en-us/kb/2999226). It looks like repairing Visual Studio corrects issues with CRT. Someone correct me if Im wrong.
Hope this helps.
Just in case are facing it with Windows 7 for PCs:
Very simple, reinstall Windows Service Pack and repair the Visual C++ Redistributable and bingo, the error disappears.
In case of difficulties, uninstall all the software involved (Visual C++, etc.) and reinstall as the proper sequence.
In my case, I have an application installed in my computer which has python installation in it. I was not able to search it from normal PC search. Just try installing "everything" software if you have complex installation of software like me.
Once you get the path for python installation, add this path to environment (System's) variable and you are good to go.
Go to https://www.microsoft.com/en-us/download/details.aspx?id=5842
Click Download button and Scroll down to see all files
Select windows6.1-KB976932-X86.exe (32-bit) or windows6.1-KB976932-X64.exe (64-bit).
Click Next
Install this and then install Python
Happy Coding :)

Installing kivy on portable python

Im trying to install kivy in my portable python with this installer:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#kivy
(Its a pre-compiled version of kivy)
When executing the file, it says "Python 2.7 version required", but since the python version im using is portable, I guess this is normal.
So my question is, is there a workarround to install a precompiled package in portable python? By somehow registering the portable python installation?
More (maybe innecesary) information:
My guess would be registering portable python in the system (Windows 7
64), but I already tried by changing the "path" enviroiment variable to point all
the required python paths without success.
I cant use the kivy modules to install it by compiling it on my computer because its too hard for me,(cython wont work, or then another of the 7 different modules will give me problems, untill i destroy my python installation. I already destroyed my
previous python installation while doing so, and had to reinstall
windows to get python working again -_-
Thats why I want to migrate
into portable python, but if this is not possible I will just go back
to normal python and install kivy on it...
The Kivy package on windows includes a portable python installation with Kivy installed.
Double click on the kivy.bat.
You will have a console have easy_install and pip available. Compiler is set to Mingw, and cython is already installed. Everything will be installed in the portable installation, not your system installation.
Enjoy :)
Note: if you want to see how we do, just edit the kivy.bat.

Categories

Resources