No Sinastry, Nor Composite Nor combinate

Asked by Rob on 2009-05-28

Hi
Thank you for this project and congratulation for this beautifull program
I ve a problem with sinastry, combinate or composite themes
I click on it and nothing happens
I dont know if it is my problem (I dont know how to use it)
Or if it is a bug
I have ubu 9.04

Bye
Rob

Question information

Language:
English Edit question
Status:
Solved
For:
OpenAstro.org Edit question
Assignee:
No assignee Edit question
Solved by:
Rob
Solved:
2009-05-29
Last query:
2009-05-29
Last reply:
2009-05-29

Hi could you try running the program from a terminal by using;

openastro.py

and trying the functions that don't work, and pasting the output here?

Thank you

Rob (rosso1976) said : #2

Traceback (most recent call last):
  File "/usr/bin/openastro.py", line 2651, in <lambda>
    ('Synastry', None, _('Synastry Chart'), None, 'Synastry Chart...', lambda w: self.openDatabaseSelect(_("Select for Synastry"),"Synastry") ),
  File "/usr/bin/openastro.py", line 3722, in openDatabaseSelect
    h,m,s = openAstro.decHour(float(self.DB[i][5]))
KeyError: 5

thank you too

Rob (rosso1976) said : #3

Traceback (most recent call last):
  File "/usr/bin/openastro.py", line 2652, in <lambda>
    ('Composite', None, _('Composite Chart'), None, 'Composite Chart...', lambda w: self.openDatabaseSelect(_("Select for Composite"),"Composite") ),
  File "/usr/bin/openastro.py", line 3722, in openDatabaseSelect
    h,m,s = openAstro.decHour(float(self.DB[i][5]))
KeyError: 5

Rob (rosso1976) said : #4

Traceback (most recent call last):
  File "/usr/bin/openastro.py", line 2653, in <lambda>
    ('Combine', None, _('Combine Chart'), None, 'Combine Chart...', lambda w: self.openDatabaseSelect(_("Select for Combine"),"Combine") ),
  File "/usr/bin/openastro.py", line 3722, in openDatabaseSelect
    h,m,s = openAstro.decHour(float(self.DB[i][5]))
KeyError: 5

Thank you,

I will fix it in the next release, meantime if you want to fiddle around,

sudo gedit /usr/bin/openastro.py

line 3722 needs to be:
h,m,s = openAstro.decHour(float(self.DB[i]["hour"]))

line 3777 needs to be:
if self.DB[i]["id"] == model.get_value(iter,3):

Rob (rosso1976) said : #6

It seems correct
Thank you for your kindliness
bye
Rob

david (g-david-y) said : #7

Hi
I´ll try to use this great project, and found similar bug when try Sinastry. Then edit de openastro.py , in version 1.1.48, and the before bug is OK and correct.
Running in terminal give:
sun 13.6235149132 black moon 245.398254721 sun-bm -231.774739808=128.225260192
sbm>120
sun 108.150224139 black moon 306.556496103 sun-bm -198.406271964=161.593728036
sbm>120
Traceback (most recent call last):
  File "/usr/bin/openastro", line 3931, in <lambda>
    button.connect("clicked", lambda w: self.openDatabaseSelectReturn(type))
  File "/usr/bin/openastro", line 3954, in openDatabaseSelectReturn
    openAstro.t_name=str(list["name"])
UnboundLocalError: local variable 'list' referenced before assignment
Traceback (most recent call last):
  File "/usr/bin/openastro", line 3931, in <lambda>
    button.connect("clicked", lambda w: self.openDatabaseSelectReturn(type))
  File "/usr/bin/openastro", line 3954, in openDatabaseSelectReturn
    openAstro.t_name=str(list["name"])
UnboundLocalError: local variable 'list' referenced before assignment
Traceback (most recent call last):
  File "/usr/bin/openastro", line 3931, in <lambda>
    button.connect("clicked", lambda w: self.openDatabaseSelectReturn(type))
  File "/usr/bin/openastro", line 3954, in openDatabaseSelectReturn
    openAstro.t_name=str(list["name"])
UnboundLocalError: local variable 'list' referenced before assignment
sun 240.061260095 black moon 240.439433232 sun-bm -0.378173137371=179.621826863
sbm>120
Traceback (most recent call last):
  File "/usr/bin/openastro", line 3068, in doImport
    self.updateChart()
  File "/usr/bin/openastro", line 5423, in updateChart
    openAstro.makeSVG()
  File "/usr/bin/openastro", line 1314, in makeSVG
    t_module_data = ephemeris.ephData(self.t_year,self.t_month,self.t_day,self.t_hour,self.t_geolon,self.t_geolat,self.t_altitude,self.planets,self.zodiac,db.astrocfg)
AttributeError: openAstroInstance instance has no attribute 't_year'
Traceback (most recent call last):
  File "/usr/bin/openastro", line 3931, in <lambda>
    button.connect("clicked", lambda w: self.openDatabaseSelectReturn(type))
  File "/usr/bin/openastro", line 3954, in openDatabaseSelectReturn
    openAstro.t_name=str(list["name"])
UnboundLocalError: local variable 'list' referenced before assignment
Traceback (most recent call last):
  File "/usr/bin/openastro", line 3931, in <lambda>
    button.connect("clicked", lambda w: self.openDatabaseSelectReturn(type))
  File "/usr/bin/openastro", line 3954, in openDatabaseSelectReturn
    openAstro.t_name=str(list["name"])
UnboundLocalError: local variable 'list' referenced before assignment
Traceback (most recent call last):
  File "/usr/bin/openastro", line 3931, in <lambda>
    button.connect("clicked", lambda w: self.openDatabaseSelectReturn(type))
  File "/usr/bin/openastro", line 3954, in openDatabaseSelectReturn
    openAstro.t_name=str(list["name"])
UnboundLocalError: local variable 'list' referenced before assignment
Traceback (most recent call last):
  File "/usr/bin/openastro", line 3931, in <lambda>
    button.connect("clicked", lambda w: self.openDatabaseSelectReturn(type))
  File "/usr/bin/openastro", line 3954, in openDatabaseSelectReturn
    openAstro.t_name=str(list["name"])
UnboundLocalError: local variable 'list' referenced before assignment
Traceback (most recent call last):
  File "/usr/bin/openastro", line 3931, in <lambda>
    button.connect("clicked", lambda w: self.openDatabaseSelectReturn(type))
  File "/usr/bin/openastro", line 3954, in openDatabaseSelectReturn
    openAstro.t_name=str(list["name"])
UnboundLocalError: local variable 'list' referenced before assignment
Traceback (most recent call last):
  File "/usr/bin/openastro", line 3931, in <lambda>
    button.connect("clicked", lambda w: self.openDatabaseSelectReturn(type))
  File "/usr/bin/openastro", line 3954, in openDatabaseSelectReturn
    openAstro.t_name=str(list["name"])
UnboundLocalError: local variable 'list' referenced before assignment
Traceback (most recent call last):
  File "/usr/bin/openastro", line 3931, in <lambda>
    button.connect("clicked", lambda w: self.openDatabaseSelectReturn(type))
  File "/usr/bin/openastro", line 3954, in openDatabaseSelectReturn
    openAstro.t_name=str(list["name"])
UnboundLocalError: local variable 'list' referenced before assignment
Traceback (most recent call last):
  File "/usr/bin/openastro", line 3931, in <lambda>
    button.connect("clicked", lambda w: self.openDatabaseSelectReturn(type))
  File "/usr/bin/openastro", line 3954, in openDatabaseSelectReturn
    openAstro.t_name=str(list["name"])
UnboundLocalError: local variable 'list' referenced before assignment
sun 173.84368645 black moon 145.314020274 sun-bm 28.5296661763=28.5296661763
sbm<60
sun 108.150224139 black moon 306.556496103 sun-bm -198.406271964=161.593728036
sbm>120
Can you help me, please?
THXs