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

Users.app in 0.7.0 no longer works after upgrades #405

Open
grahamperrin opened this issue Sep 24, 2022 · 5 comments
Open

Users.app in 0.7.0 no longer works after upgrades #405

grahamperrin opened this issue Sep 24, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@grahamperrin
Copy link
Contributor

grahamperrin commented Sep 24, 2022

After upgrades (for security etc.), the Users application is no longer usable.

mowa219-gjp4-hello-070% /Applications/Preferences/Users.app/Users 
The Python module 'translate' is not available. The application will run untranslated.
Could not find suitable .ts files in /Applications/i18n
Traceback (most recent call last):
  File "/Applications/Preferences/Users.app/Resources/adduser.py", line 191, in <module>
    widget = Users()
  File "/Applications/Preferences/Users.app/Resources/adduser.py", line 41, in __init__
    self.load_ui()
  File "/Applications/Preferences/Users.app/Resources/adduser.py", line 52, in load_ui
    for e in self.findChildren(QObject, None, Qt.FindChildrenRecursively):
NameError: name 'QObject' is not defined

To Reproduce

  1. install from hello-0.7.0_0G160-FreeBSD-13.0-amd64.iso
  2. upgrade from end-of-life FreeBSD 13.0-RELEASE, to 13.1-RELEASE-p2
  3. pkg delete localize to avoid https://github.com/helloSystem/ISO/issues/404
  4. unlock all packages except hello
  5. upgrade packages
  6. Preferences
  7. Users

Expected

  1. the application.

Screenshots

image

Version (please complete the following information):

Additional context

Switching from quarterly to latest is not a workaround.

@grahamperrin grahamperrin added the bug Something isn't working label Sep 24, 2022
@grahamperrin
Copy link
Contributor Author

NameError: name 'QObject' is not defined

Maybe try something like https://gis.stackexchange.com/a/296346

@grahamperrin
Copy link
Contributor Author

Partial workaround

adduser(8) remains usable. Integral to FreeBSD.

@probonopd
Copy link
Member

Does adding from PyQt5.QtCore import QObject fix this @grahamperrin?

We are using QObject in many Python files:
https://github.com/search?l=Python&q=org%3AhelloSystem+QObject&type=Code

@grahamperrin
Copy link
Contributor Author

adding from PyQt5.QtCore import QObject

How is that done?

@probonopd
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants