starcheat
starcheat copied to clipboard
Error/Crash on Windows using MSYS2
When building starcheat I get the following
$ python3 ./build.py
'A:/msys64/mingw64/lib/python3.4/site-packages/PyQt5/pyuic5.bat' is not recognized as an internal or external command,
operable program or batch file.
'A:/msys64/mingw64/lib/python3.4/site-packages/PyQt5/pyuic5.bat' is not recognized as an internal or external command,
operable program or batch file.
'A:/msys64/mingw64/lib/python3.4/site-packages/PyQt5/pyuic5.bat' is not recognized as an internal or external command,
operable program or batch file.
'A:/msys64/mingw64/lib/python3.4/site-packages/PyQt5/pyuic5.bat' is not recognized as an internal or external command,
operable program or batch file.
'A:/msys64/mingw64/lib/python3.4/site-packages/PyQt5/pyuic5.bat' is not recognized as an internal or external command,
operable program or batch file.
'A:/msys64/mingw64/lib/python3.4/site-packages/PyQt5/pyuic5.bat' is not recognized as an internal or external command,
operable program or batch file.
'A:/msys64/mingw64/lib/python3.4/site-packages/PyQt5/pyuic5.bat' is not recognized as an internal or external command,
operable program or batch file.
'A:/msys64/mingw64/lib/python3.4/site-packages/PyQt5/pyuic5.bat' is not recognized as an internal or external command,
operable program or batch file.
'A:/msys64/mingw64/lib/python3.4/site-packages/PyQt5/pyuic5.bat' is not recognized as an internal or external command,
operable program or batch file.
'A:/msys64/mingw64/lib/python3.4/site-packages/PyQt5/pyuic5.bat' is not recognized as an internal or external command,
operable program or batch file.
'A:/msys64/mingw64/lib/python3.4/site-packages/PyQt5/pyuic5.bat' is not recognized as an internal or external command,
operable program or batch file.
'A:/msys64/mingw64/lib/python3.4/site-packages/PyQt5/pyuic5.bat' is not recognized as an internal or external command,
operable program or batch file.
'A:/msys64/mingw64/lib/python3.4/site-packages/PyQt5/pyuic5.bat' is not recognized as an internal or external command,
operable program or batch file.
'A:/msys64/mingw64/lib/python3.4/site-packages/PyQt5/pyuic5.bat' is not recognized as an internal or external command,
operable program or batch file.
'A:/msys64/mingw64/lib/python3.4/site-packages/PyQt5/pyrcc5.exe' is not recognized as an internal or external command,
operable program or batch file.
Attempting to run the built starcheat results in the following
Traceback (most recent call last):
File "starcheat.py", line 74, in <module>
main()
File "starcheat.py", line 71, in main
gui.mainwindow.MainWindow()
File "A:\msys64\home\retep998\starcheat\build\gui\mainwindow.py", line 55, in __init__
self.ui = qt_mainwindow.Ui_MainWindow()
AttributeError: 'module' object has no attribute 'Ui_MainWindow'
I installed the latest PyQt5, Python3, and Pillow using MSYS2, everything for x64.
Using a separately installed Python and stuff and doing things from cmd without MSYS2 works perfectly fine. This might just be MSYS2's fault.
hi. i think msys2 is to blame here and might not be able to do much but may as well look into it a little anyway. can you let me know about the following:
- is the A: drive a real drive on your machine or a virtual drive msys2 uses during runtime?
- was pyqt installed with the regular installer or through msys2 as well?
- when you install pyqt does it prompt you to use the msys2 python folder or a completely different one?
- where has pyqt actually installed itself?
thanks!
Looks like msys2 is failing to compile the pyqt gui, because of a broken / missing? pyuic5.bat
file.
What is the content of A:/msys64/mingw64/lib/python3.4/site-packages/PyQt5/
?
-
A:
is a real partition that I do all my code related stuff on. - PyQt5 was installed with MSYS2's pacman
$ mingw-w64-x86_64-python3-pyqt5
.
As for the contents of that directory
A:\msys64\mingw64\lib\python3.4\site-packages\PyQt5>dir
Volume in drive A is Storage
Volume Serial Number is E451-F74D
Directory of A:\msys64\mingw64\lib\python3.4\site-packages\PyQt5
12/28/2014 04:44 AM <DIR> .
12/28/2014 04:44 AM <DIR> ..
09/13/2014 01:51 PM 89,600 Enginio.pyd
09/13/2014 01:51 PM 322,560 QAxContainer.pyd
09/13/2014 01:51 PM 16,896 Qt.pyd
09/13/2014 01:51 PM 224,256 QtBluetooth.pyd
09/13/2014 01:51 PM 2,549,760 QtCore.pyd
09/13/2014 01:51 PM 214,528 QtDBus.pyd
09/13/2014 01:51 PM 373,248 QtDesigner.pyd
09/13/2014 01:51 PM 2,599,936 QtGui.pyd
09/13/2014 01:51 PM 142,336 QtHelp.pyd
09/13/2014 01:51 PM 607,744 QtMultimedia.pyd
09/13/2014 01:51 PM 137,216 QtMultimediaWidgets.pyd
09/13/2014 01:51 PM 713,216 QtNetwork.pyd
09/13/2014 01:51 PM 138,752 QtOpenGL.pyd
09/13/2014 01:51 PM 186,880 QtPositioning.pyd
09/13/2014 01:51 PM 300,544 QtPrintSupport.pyd
09/13/2014 01:51 PM 544,768 QtQml.pyd
09/13/2014 01:51 PM 691,200 QtQuick.pyd
09/13/2014 01:51 PM 64,512 QtQuickWidgets.pyd
09/13/2014 01:51 PM 280,576 QtSensors.pyd
09/13/2014 01:51 PM 81,408 QtSerialPort.pyd
09/13/2014 01:51 PM 351,744 QtSql.pyd
09/13/2014 01:51 PM 123,904 QtSvg.pyd
09/13/2014 01:51 PM 100,864 QtTest.pyd
09/13/2014 01:51 PM 167,936 QtWebKit.pyd
09/13/2014 01:51 PM 300,544 QtWebKitWidgets.pyd
09/13/2014 01:51 PM 83,456 QtWebSockets.pyd
09/13/2014 01:51 PM 6,166,528 QtWidgets.pyd
09/13/2014 01:51 PM 128,000 QtWinExtras.pyd
09/13/2014 01:51 PM 160,256 QtXmlPatterns.pyd
09/13/2014 01:50 PM <DIR> uic
09/13/2014 01:51 PM 241,664 _QOpenGLFunctions_2_0.pyd
09/13/2014 01:50 PM 826 __init__.py
12/28/2014 04:44 AM <DIR> __pycache__
31 File(s) 18,105,658 bytes
4 Dir(s) 181,849,387,008 bytes free
The pyuic5.bat
and pyrcc5.exe
are missing. You most likely have to install a second package to get the development tools for pyqt5 too.
Actually pyuic5.bat
and pyrcc5.exe
exist in A:\msys64\mingw64\bin
.
Can i assume that this is on your PATH then? And we need to find libEGL.dll
as well, if we want to support creating an exe with cx_freeze with msys2 too.
Please try out the new msys2 branch, which should add support for msys2 if you build it without generating the executable. To fix the executable generation as well I need the location of libEGL.dll
and cx_freeze
(default would be A:\msys64\mingw64\lib\python3.4\Scripts\cxfreeze
$ python3 build.py
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.