OpenAstro won't start up

Bug #1945823 reported by Michael Brown
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenAstro.org
New
Undecided
Unassigned

Bug Description

Starting 1.1.57 on command line, I get quite a few deprecation warnings and then an error:

 File "/usr/lib/python3.9/site-packages/openastromod/swiss.py", line 89, in __init__
    if ret_flag[0] >= deg_low:
TypeError: '>=' not supported between instances of 'tuple' and 'float'

Was working OK, but that was a number of installation updates ago.

Revision history for this message
Amin (meelko) wrote :
Download full text (5.1 KiB)

I'm pasting whole console output from failed start (same problem as above). I'm using Artix runit, but it also affects Parabola OS and Arch. Openastro installed from AUR. Console output:

/usr/bin/openastro:1892: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if i is 0 or i is 9 or i is 6 or i is 3:
/usr/bin/openastro:1892: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if i is 0 or i is 9 or i is 6 or i is 3:
/usr/bin/openastro:1892: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if i is 0 or i is 9 or i is 6 or i is 3:
/usr/bin/openastro:1892: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if i is 0 or i is 9 or i is 6 or i is 3:
/usr/bin/openastro:4813: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if openAstro.aspects[i]['visible'] is 1:
/usr/bin/openastro:4817: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if openAstro.aspects[i]['visible_grid'] is 1:
/usr/bin/openastro:4922: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if i is 11 or i is 13 or i is 14 or i is 21 or i is 22:
/usr/bin/openastro:4922: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if i is 11 or i is 13 or i is 14 or i is 21 or i is 22:
/usr/bin/openastro:4922: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if i is 11 or i is 13 or i is 14 or i is 21 or i is 22:
/usr/bin/openastro:4922: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if i is 11 or i is 13 or i is 14 or i is 21 or i is 22:
/usr/bin/openastro:4922: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if i is 11 or i is 13 or i is 14 or i is 21 or i is 22:
/usr/bin/openastro:4925: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if i is 23 or i is 27:
/usr/bin/openastro:4925: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if i is 23 or i is 27:
/usr/bin/openastro:4928: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if i is 27:
/usr/bin/openastro:4949: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if openAstro.planets[i]['visible'] is 1:
/usr/bin/openastro:4954: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if openAstro.planets[i]['visible_aspect_line'] is 1:
/usr/bin/openastro:4959: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if openAstro.planets[i]['visible_aspect_grid'] is 1:
/usr/bin/openastro:1150: DeprecationWarning: Gdk.Screen.get_width is deprecated
  self.screen_width = screen.get_width()
/usr/bin/openastro:1151: DeprecationWarning: Gdk.Screen.get_height is deprecated
  self.screen_height = screen.get_height()
/usr/bin/openastro:1207: DeprecationWarning: Rsvg.set_default_dpi is deprecated
  Rsvg.set_default_dpi(400)
/usr/bin/openastro:2837: DeprecationWarning: Gtk.UIManager.add_ui_from_file is deprecated
  self.ui_mid = self.uimanager.add_ui_from_file(cfg.xml_ui)
/usr/bin/openastro:2838: DeprecationWarning: Gtk.UIManager.get_accel_group is deprecated
  accelgroup = self.uimanager.get_accel_group()
/usr/bin/openastro:5566: PyGTKDeprecationWarning: Using positional arguments with the GObject constructor has been deprecated. Please specify keyword(s) for "name" or use a class specific constructor. See: https://wiki.gnome.org/PyGObject/Ini...

Read more...

Revision history for this message
asafg (asaf-greenberg) wrote :

confirmed; manjaro;

Revision history for this message
chagalj (chagalj) wrote :

Hi..... Same problem here . Manjaro.

Revision history for this message
Michael Brown (mikegb92121) wrote :

Disclaimer: I am a far cry from a Python programmer or knowledgable about OpenAstro software.

I was able to at least open the application by adding the var xx to line 85 in swiss.py

ret_flag, xx = swe.calc_ut(self.jul_day_UT,i,iflag)

Perhaps one of these has changed? The signature of calc_ut return from swisseph or the behavior of >= when given a tuple and float.

Not sure if that is in any way the correct fix, see disclaimer above.

P.S. I am also on Manjaro, since I didn't put in original bug report.

Revision history for this message
chagalj (chagalj) wrote :

Hi again ... after the latest update all works fine again !

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers