hoffmangroup / segway

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

--dry-run fatal TypeError #125

Closed EricR86 closed 6 years ago

EricR86 commented 6 years ago

Original report (BitBucket issue) by Francis Nguyen (Bitbucket: Francis Nguyen).


While performing a dry run using segway 2.0.2, I ran into this error:

/mnt/work1/users/home2/fnguyen/.local/bin/gmtkTriangulate -cppCommandOptions -DCARD_SEG=10 -DCARD_FRAMEINDEX=5000 -DSEGTRANSITION_WEIGHT_SCALE=1.0 -DCARD_SUBSEG=1 -outputTriangulatedFile train_results/triangulation/custom-structure.str.10.1.trifile -strFile custom-structure.str -verbosity 0 

Exception in thread Thread-1: 

Traceback (most recent call last): 

  File "/mnt/work1/users/home2/fnguyen/anaconda3/envs/py27/lib/python2.7/threading.py", line 801, in __bootstrap_inner 

    self.run() 

  File "/mnt/work1/users/home2/fnguyen/.local/lib/python2.7/site-packages/segway/run.py", line 485, in run 

    self.result = self.runner.run_train_instance() 

  File "/mnt/work1/users/home2/fnguyen/.local/lib/python2.7/site-packages/segway/run.py", line 2746, in run_train_instance 

    return Results(None, None, None, None, None, None, None) 

TypeError: __new__() takes exactly 9 arguments (8 given) 

Seems to be missing an extra None.

Thanks.

EricR86 commented 6 years ago

Original comment by Francis Nguyen (Bitbucket: Francis Nguyen).


EricR86 commented 6 years ago

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


EricR86 commented 6 years ago

Original comment by Francis Nguyen (Bitbucket: Francis Nguyen).


Pull request #87 created to resolve this by changing the number of arguments to the Results tuple to match what is expected. Since it's a dry run, it seems like none of the arguments should actually matter.

EricR86 commented 6 years ago

Original comment by Francis Nguyen (Bitbucket: Francis Nguyen).