gabraganca / S4

A Stellar Spectral Synthesis Suite (S4, for short)
Other
5 stars 1 forks source link

Missing files in first run #9

Closed juliotux closed 11 years ago

juliotux commented 11 years ago

After install, when I run the program calling "sagui" in terminal, the program returns this error message:

ERROR: IOError: [Errno 2] No such file or directory: '/home/julio/.s4/synthesis/synplot/fort.11' [numpy.lib.npyio]
Traceback (most recent call last):
  File "/usr/local/bin/sagui", line 553, in <module>
    main()
  File "/usr/local/bin/sagui", line 546, in main
    mw = MainWindow()
  File "/usr/local/bin/sagui", line 44, in __init__
    self.wdg = Widget()
  File "/usr/local/bin/sagui", line 123, in __init__
    self.set_default()
  File "/usr/local/bin/sagui", line 432, in set_default
    self.synplot()
  File "/usr/local/bin/sagui", line 159, in synplot
    self.syn.run()
  File "/usr/local/lib/python2.7/dist-packages/s4/synthesis/synplotwrapper.py", line 99, in run
    self.spectrum = np.loadtxt(self.path + 'fort.11')
  File "/usr/lib/python2.7/dist-packages/numpy/lib/npyio.py", line 715, in loadtxt
    fh = iter(open(fname, 'U'))
IOError: [Errno 2] No such file or directory: '/home/julio/.s4/synthesis/synplot/fort.11'

The program tries to call .s4/synthesis/synplot/fort.11 but the file is missing.

juliotux commented 11 years ago

I had to use sudo to delete the directory. After delete it and run sagui again, the error message returns.

gabraganca commented 11 years ago

Try erasing the .sagui_config.json on your home directory. That should work by now, but I will fix that.

gabraganca commented 11 years ago

Ok. Delete the .sagui_config.json and reinstall S4. Check if that works.

juliotux commented 11 years ago

Deleted, unistalled and installed again, but the problem persists.

gabraganca commented 11 years ago

Ok! The problem was that synplot.pro was not running. I probably should write a code to thrown a error if that occurr.