hoffmangroup / segway

Application for semi-automated genomic annotation.
http://segway.hoffmanlab.org/
GNU General Public License v2.0
13 stars 7 forks source link

Improper specification of training directory (while identifying) results in nonsensical error message #79

Open EricR86 opened 8 years ago

EricR86 commented 8 years ago

Original report (BitBucket issue) by Eric Roberts (Bitbucket: ericr86, GitHub: ericr86).


The following error occurs when a typo is made on the specified train directory.

  warn("Input master not specified. Generating.")
Traceback (most recent call last):
  File "/mnt/work1/users/home2/eric.roberts/.local/bin/segway", line 9, in <mod
ule>
    load_entry_point('segway==1.4.1.dev0', 'console_scripts', 'segway')()
  File "/mnt/work1/users/home2/eric.roberts/segway/segway/run.py", line 2946, i
n main
    return runner()
  File "/mnt/work1/users/home2/eric.roberts/segway/segway/run.py", line 2739, i
n __call__
    self.run(*args, **kwargs)
  File "/mnt/work1/users/home2/eric.roberts/segway/segway/run.py", line 2730, i
n run
    self.run_identify_posterior()
  File "/mnt/work1/users/home2/eric.roberts/segway/segway/run.py", line 2587, i
n run_identify_posterior
    self.setup_identify_posterior()
  File "/mnt/work1/users/home2/eric.roberts/segway/segway/run.py", line 2576, i
n setup_identify_posterior
    self.save_input_master()
  File "/mnt/work1/users/home2/eric.roberts/segway/segway/run.py", line 1569, i
n save_input_master
    self.clobber, instance_index)
  File "/mnt/work1/users/home2/eric.roberts/segway/segway/_util.py", line 150,
in __call__
    *args, **kwargs)
  File "/mnt/work1/users/home2/eric.roberts/segway/segway/_util.py", line 471,
in save_template
    save_substituted_resource(filename, resource, mapping)
  File "/mnt/work1/users/home2/eric.roberts/segway/segway/_util.py", line 452,
in save_substituted_resource
    with open(filename, "w+") as outfile:
IOError: [Errno 2] No such file or directory: path('outputs/identify/params/input.master')

There should be a clear and obvious error message if you have accidentally specified an incorrect train directory.

EricR86 commented 8 years ago

Original comment by mlibbrecht (Bitbucket: mlibbrecht, GitHub: mlibbrecht).


Why is this assigned to me?

EricR86 commented 8 years ago

Original comment by Eric Roberts (Bitbucket: ericr86, GitHub: ericr86).


EricR86 commented 8 years ago

Original comment by Eric Roberts (Bitbucket: ericr86, GitHub: ericr86).


I'm guessing my mouse wheel slipped while the dropdown box still had focus. Sorry!

EricR86 commented 8 years ago

Original comment by mlibbrecht (Bitbucket: mlibbrecht, GitHub: mlibbrecht).


:)

EricR86 commented 8 years ago

Original comment by Eric Roberts (Bitbucket: ericr86, GitHub: ericr86).