Jump to content
View in the app

A better way to browse. Learn more.

Tinkerunity

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Geschrieben

Hallo zusammen,

ich erzeuge mir einen brickv immer aus dem Source Package für SuSE Linux über build_src.py, hat bisher auch immer funktioniert.

Mit der letzten Version bekomme ich aber einen Fehler beim Start danach:

Traceback (most recent call last):
  File "main.py", line 454, in <module>
    main(not getattr(sys, 'frozen', False))
  File "main.py", line 384, in main
    if not args.no_dev_mode and dev_mode and not sys.flags.dev_mode:
AttributeError: 'sys.flags' object has no attribute 'dev_mode'

Aktuell ist ein Python 3.6.15 installiert.

Geschrieben

Sorry, da haben wir nicht aufgepasst. Wir geben aktuell Python 3.5 als Mindestversion an, Dev Mode ist aber in Python 3.7 neu. Der Code versucht zu erkennen ob er paketiert oder aus Source läuft und schaltet Dev Mode nur bei Source ein. Du startest brickv vermutlich über main.py und dann wird Dev Mode aktiviert, den Python 3.6 nicht hat.

Das kannst du jetzt erstmal auf verschiedene Arten umgehen. Zum Beispiel, leg dir neben die main.py eine Datei namens package_type mit dem Inhalt none.

Wir werden das für die nächste Version besser lösen.

  • photron changed the title to brickv 2.4.23 läuft aus Source nicht mit Python < 3.7
Geschrieben
  • Autor

hmm, also mit einem

echo none > package_type

klappt das nicht, da kommen der Fehler immer noch.

Ich bleibe erstmal bei der alten Version. Dennoch danke für die Klärung.

  • 3 weeks later...
  • 2 months later...
Geschrieben
  • Autor

Hallo zusammen,

ich habe jetzt brickv-2.4.25

- runtergeladen
- entpackt
- in brickv-2.4.25/src das ./build_src.py aufgerufen
- danach im brickv Verzeichnis "phython3 main.py", das liefert:

Traceback (most recent call last):
  File "main.py", line 438, in main
    main_window = MainWindow(brickv_version, args.host, args.port, args.secret, args.remember_secret)
  File "/home/holger/Downloads/brickv-2.4.25/src/brickv/mainwindow.py", line 92, in __init__
    if sys.flags.dev_mode:
AttributeError: 'sys.flags' object has no attribute 'dev_mode'
QThread: Destroyed while thread is still running

Konkret habe ich Python 3.6.15

Sollte das damit gehen ?

Kommetiere ich Zeile 92 und 93 in mainwindow.py aus, dann startet es fehlerfrei.

bearbeitet von remotecontrol

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Gast
Reply to this topic...

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.