ejeschke / ginga

The Ginga astronomical FITS file viewer
BSD 3-Clause "New" or "Revised" License
121 stars 77 forks source link

fail to load FITS image #1

Closed matwey closed 12 years ago

matwey commented 12 years ago

When I try to load fits image there is following message and nothing happens. What kind of additional information may I provide to fix that?

python-scipy-0.10.1-11.2.i586 python-numpy-1.6.1-3.1.2.i586 python-pyfits-3.0.6-1.2.i586

Traceback (most recent call last):
  File "/home/matwey/src/ginga/gtkw/FileSelection.py", line 18, in file_ok_sel
    self.callfn(filepath)
  File "/home/matwey/src/ginga/Control.py", line 322, in load_file
    raise FitsViewError(errmsg)
Control.FitsViewError: Failed to load file '/home/matwey/temp/flat.480.exp500.r2.s200.fits': 'NoneType' object has no attribute 'shape'
ejeschke commented 12 years ago

Hi Matwey,

Do you mind sending me the FITS file you are trying to load? I want to see if there is a problem loading the file on my end. Also, could you please run the program with the command

$ ginga.py --loglevel=10 --log=ginga.log

Then email me or attach here the file ginga.log after you have tried to load the file.

Thanks, ~Eric

On Sun, Jul 1, 2012 at 9:19 AM, Matwey V. Kornilov < reply@reply.github.com

wrote:

When I try to load fits image there is following message and nothing happens. What kind of additional information may I provide to fix that?

python-scipy-0.10.1-11.2.i586 python-numpy-1.6.1-3.1.2.i586 python-pyfits-3.0.6-1.2.i586

Traceback (most recent call last):
  File "/home/matwey/src/ginga/gtkw/FileSelection.py", line 18, in
file_ok_sel
    self.callfn(filepath)
  File "/home/matwey/src/ginga/Control.py", line 322, in load_file
    raise FitsViewError(errmsg)
Control.FitsViewError: Failed to load file
'/home/matwey/temp/flat.480.exp500.r2.s200.fits': 'NoneType' object has no
attribute 'shape'

Reply to this email directly or view it on GitHub: https://github.com/ejeschke/ginga/issues/1

Eric Jeschke http://redskiesatnight.com/

matwey commented 12 years ago

Hi,

Attached is ginga.log

the fits file you can download from

http://binary.sai.msu.ru/ccd3/2kx2k/flat.480.exp500.r2.s200.fits

please, have your copy, because it is not persistent storage

2012/7/2 ejeschke reply@reply.github.com:

Hi Matwey,

Do you mind sending me the FITS file you are trying to load? I want to see if there is a problem loading the file on my end. Also, could you please run the program with the command

$ ginga.py --loglevel=10 --log=ginga.log

Then email me or attach here the file ginga.log after you have tried to load the file.

Thanks, ~Eric

On Sun, Jul 1, 2012 at 9:19 AM, Matwey V. Kornilov < reply@reply.github.com

wrote:

When I try to load fits image there is following message and nothing happens. What kind of additional information may I provide to fix that?

python-scipy-0.10.1-11.2.i586 python-numpy-1.6.1-3.1.2.i586 python-pyfits-3.0.6-1.2.i586

Traceback (most recent call last):
  File "/home/matwey/src/ginga/gtkw/FileSelection.py", line 18, in
file_ok_sel
    self.callfn(filepath)
  File "/home/matwey/src/ginga/Control.py", line 322, in load_file
    raise FitsViewError(errmsg)
Control.FitsViewError: Failed to load file
'/home/matwey/temp/flat.480.exp500.r2.s200.fits': 'NoneType' object has no
attribute 'shape'

Reply to this email directly or view it on GitHub: https://github.com/ejeschke/ginga/issues/1

Eric Jeschke http://redskiesatnight.com/


Reply to this email directly or view it on GitHub: https://github.com/ejeschke/ginga/issues/1#issuecomment-6701842

With best regards, Matwey V. Kornilov http://0x2207.blogspot.com xmpp:0x2207@jabber.ru

ejeschke commented 12 years ago

Hi Matwey, If you downloaded via git, could you do a

$ git pull --rebase

If you downloaded via tarball, please pull it down again. I think I have fixed that issue.

matwey commented 12 years ago

Thank you, Now it works.

2012/7/3 ejeschke reply@reply.github.com:

Hi Matwey, If you downloaded via git, could you do a

$ git pull --rebase

If you downloaded via tarball, please pull it down again. I think I have fixed that issue.


Reply to this email directly or view it on GitHub: https://github.com/ejeschke/ginga/issues/1#issuecomment-6728418

With best regards, Matwey V. Kornilov http://0x2207.blogspot.com xmpp:0x2207@jabber.ru

ejeschke commented 12 years ago

Got feedback from Matwey that it fixed this issue.