Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Windows 10 UI does not render, executable is running though #769

Closed
MrBambix opened this issue Apr 23, 2020 · 17 comments
Closed

On Windows 10 UI does not render, executable is running though #769

MrBambix opened this issue Apr 23, 2020 · 17 comments

Comments

@MrBambix
Copy link

Expected Behavior

Upon on clicking the shortcut on the desktop the program should open its main window.

Actual Behavior

Actually the Main program window is not showing but proces explorer shows the .exe running

Steps To Reproduce
  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error
Screenshots
Platform Specifications

Windows 10

@jopohl
Copy link
Owner

jopohl commented Apr 23, 2020

  1. Delete the install folder and reinstall the application with the installer.
  2. If that not helps, go to the installation folder, open a terminal (cmd) and run urh_debug.exe and post the output.

@MrBambix
Copy link
Author

  1. Delete the install folder and reinstall the application with the installer.
  2. If that not helps, go to the installation folder, open a terminal (cmd) and run urh_debug.exe and post the output.

Hi 1 i Tried will no avail unfortunately.. building from source btw seems the same issue when building and running from cmd line without installing

  1. running urh_debug.exe from cmdline no output to be seen in de cmd window..

thanks for you help and suggestions really would like this working with my hackrf ;-)

Regards and Greetings,
Leo

@jopohl
Copy link
Owner

jopohl commented Apr 23, 2020

Just tested latest master in a Windows 10 VM and it works fine there. Maybe this is some

  • Run as administrator
  • disable Windows Defender
  • cleanup registry

voodoo?

@MrBambix
Copy link
Author

MrBambix commented Apr 23, 2020 via email

@jopohl
Copy link
Owner

jopohl commented Apr 23, 2020

Are you able to run a simple hello world PyQt5 script like the following?

# https://pythonprogramminglanguage.com/pyqt5-hello-world/
import sys
from PyQt5 import QtCore, QtWidgets
from PyQt5.QtWidgets import QMainWindow, QLabel, QGridLayout, QWidget
from PyQt5.QtCore import QSize    

class HelloWindow(QMainWindow):
    def __init__(self):
        QMainWindow.__init__(self)

        self.setMinimumSize(QSize(640, 480))    
        self.setWindowTitle("Hello world - pythonprogramminglanguage.com") 

        centralWidget = QWidget(self)          
        self.setCentralWidget(centralWidget)   

        gridLayout = QGridLayout(self)     
        centralWidget.setLayout(gridLayout)  

        title = QLabel("Hello World from PyQt", self) 
        title.setAlignment(QtCore.Qt.AlignCenter) 
        gridLayout.addWidget(title, 0, 0)

if __name__ == "__main__":
    app = QtWidgets.QApplication(sys.argv)
    mainWin = HelloWindow()
    mainWin.show()
    sys.exit( app.exec_() )

@MrBambix
Copy link
Author

MrBambix commented Apr 23, 2020 via email

@MrBambix
Copy link
Author

Are you able to run a simple hello world PyQt5 script like the following?

# https://pythonprogramminglanguage.com/pyqt5-hello-world/
import sys
from PyQt5 import QtCore, QtWidgets
from PyQt5.QtWidgets import QMainWindow, QLabel, QGridLayout, QWidget
from PyQt5.QtCore import QSize    

class HelloWindow(QMainWindow):
    def __init__(self):
        QMainWindow.__init__(self)

        self.setMinimumSize(QSize(640, 480))    
        self.setWindowTitle("Hello world - pythonprogramminglanguage.com") 

        centralWidget = QWidget(self)          
        self.setCentralWidget(centralWidget)   

        gridLayout = QGridLayout(self)     
        centralWidget.setLayout(gridLayout)  

        title = QLabel("Hello World from PyQt", self) 
        title.setAlignment(QtCore.Qt.AlignCenter) 
        gridLayout.addWidget(title, 0, 0)

if __name__ == "__main__":
    app = QtWidgets.QApplication(sys.argv)
    mainWin = HelloWindow()
    mainWin.show()
    sys.exit( app.exec_() )

Hi,

Nope same problem not showing the window, its getting weirder...

greetings,
Leo

@jopohl
Copy link
Owner

jopohl commented Apr 23, 2020

Ok, so there seems to be problem with your PyQt installation. Please run this:

python -m pip install --upgrade pip
python -m pip install --upgrade pyqt5

and see if it helps.

@MrBambix
Copy link
Author

Ok, so there seems to be problem with your PyQt installation. Please run this:

python -m pip install --upgrade pip
python -m pip install --upgrade pyqt5

and see if it helps.

Hi,

No still nothing, i did however still have a php2.7 installatation on my pc which i just removed. Also uninstalled and reinstalled pyqt5 but still nope.. damn. Maybe some stuff from 2.7 stayed behind somewhere?

greetings,
Leo

@jopohl
Copy link
Owner

jopohl commented Apr 23, 2020

That is probably unrelated, as a Python3 process will not use any libs from Python2 (except there is some weird naming convention on Windows).

Having said that, I am running out of ideas what could cause this behaviour. On Linux you could strace the application. I just saw there is also an strace for cygwin, so you could install cygwin and try.

Nevertheless, this appears to be a problem with PyQt5 itself as the hello world example is also not working. Therefore, you may be better off asking the PyQt5 developers for help.

@MrBambix
Copy link
Author

MrBambix commented Apr 24, 2020 via email

@MrBambix
Copy link
Author

MrBambix commented Apr 24, 2020 via email

@jopohl
Copy link
Owner

jopohl commented Apr 24, 2020

It appears so! Did you get some reply in the Qt forums?

@MrBambix
Copy link
Author

MrBambix commented Apr 25, 2020 via email

@jopohl
Copy link
Owner

jopohl commented Apr 25, 2020

Mhh so PyQt5 5.14.2 is completely bugged (i.e. not usable) on Windows 10? Is there an official bug report about it?

@MrBambix
Copy link
Author

MrBambix commented Apr 25, 2020 via email

@jopohl
Copy link
Owner

jopohl commented Apr 27, 2020

I was interested whether this is a general problem on Windows 10 or not. However, in my VM I cannot reproduce this behaviour so I will not exclude PyQt5.12 from URH dependencies in general. I will close here and I am glad your problem is solved!

@jopohl jopohl closed this as completed Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants