Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Authentication Rejected: No auth protocols/host-based auth failed
Forum Updated to NodeBB v4.3 + New Features

Authentication Rejected: No auth protocols/host-based auth failed

Scheduled Pinned Locked Moved Unsolved Qt for Python
1 Posts 2 Posters 1.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    basic_beginner
    wrote on 16 Mar 2020, 16:40 last edited by
    #1

    I am new to PyQt and am trying to learn the basics for GUI building. I am following a tutorial to build a window and a button that displays text, but I keep encountering this error. I am running a Manjaro distro with latest kernel.
    qt5ct: using qt5ct plugin
    Qt: Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed

    #!/usr/bin/python3
    # -*- coding: utf:8 -*-
    
    import sys
    from PyQt5.QtWidgets import (QWidget, QToolTip, 
        QPushButton, QApplication)
    from PyQt5.QtGui import QFont    
    
    
    class Example(QWidget):
        
        def __init__(self):
            super().__init__()
            
            self.initUI()
            
            
        def initUI(self):
            
            QToolTip.setFont(QFont('SansSerif', 10))
            
            self.setToolTip('This is a <b>QWidget</b> widget')
            
            btn = QPushButton('Button', self)
            btn.setToolTip('This is a <b>QPushButton</b> widget')
            btn.resize(btn.sizeHint())
            btn.move(50, 50)       
            
            self.setGeometry(300, 300, 300, 200)
            self.setWindowTitle('Tooltips')    
            self.show()
            
    if __name__ == '__main__':
        
        app = QApplication(sys.argv)
        ex = Example()
        sys.exit(app.exec_())
    
    1 Reply Last reply
    0

    1/1

    16 Mar 2020, 16:40

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved