Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error producing error message when reference bin file not found #4

Open
dfornika opened this issue Feb 27, 2020 · 0 comments · May be fixed by #5
Open

Error producing error message when reference bin file not found #4

dfornika opened this issue Feb 27, 2020 · 0 comments · May be fixed by #5

Comments

@dfornika
Copy link
Member

dfornika commented Feb 27, 2020

Tool fails with message:

Traceback (most recent call last):
  File "/opt/production_galaxy/var/shed_tools/toolshed.g2.bx.psu.edu/repos/damion/blast_reporting/812de0e282bd/blast_reporting/blast_reporting.py", line 627, in <module>
    reportEngine.__main__()
  File "/opt/production_galaxy/var/shed_tools/toolshed.g2.bx.psu.edu/repos/damion/blast_reporting/812de0e282bd/blast_reporting/blast_reporting.py", line 502, in __main__
    tagGroup = XMLRecordScan(options, output_format)
  File "/opt/production_galaxy/var/shed_tools/toolshed.g2.bx.psu.edu/repos/damion/blast_reporting/812de0e282bd/blast_reporting/blast_reporting.py", line 220, in __init__
    self.binManager.build_bins(options.reference_bins, self.columns)
  File "/opt/production_galaxy/var/shed_tools/toolshed.g2.bx.psu.edu/repos/damion/blast_reporting/812de0e282bd/blast_reporting/reference_bins.py", line 48, in build_bins
    newbin = self.buildBin(field_name, bin_filter)
  File "/opt/production_galaxy/var/shed_tools/toolshed.g2.bx.psu.edu/repos/damion/blast_reporting/812de0e282bd/blast_reporting/reference_bins.py", line 93, in buildBin
    stop_err("Reference bin could not be found or opened: " + self.path + bin_folder_name + '/accession_ids.tab')
NameError: global name 'stop_err' is not defined

Other references to stop_err are prefixed by the module name common:

common.stop_err("Invalid bin name: " + field_name + ':' + myfield)

If stop_err is replaced with common.stop_err on reference_bins.py line 93 then this error is produced:

Traceback (most recent call last):
  File "/opt/production_galaxy/var/shed_tools/toolshed.g2.bx.psu.edu/repos/damion/blast_reporting/812de0e282bd/blast_reporting/blast_reporting.py", line 627, in <module>
    reportEngine.__main__()
  File "/opt/production_galaxy/var/shed_tools/toolshed.g2.bx.psu.edu/repos/damion/blast_reporting/812de0e282bd/blast_reporting/blast_reporting.py", line 502, in __main__
    tagGroup = XMLRecordScan(options, output_format)
  File "/opt/production_galaxy/var/shed_tools/toolshed.g2.bx.psu.edu/repos/damion/blast_reporting/812de0e282bd/blast_reporting/blast_reporting.py", line 220, in __init__
    self.binManager.build_bins(options.reference_bins, self.columns)
  File "/opt/production_galaxy/var/shed_tools/toolshed.g2.bx.psu.edu/repos/damion/blast_reporting/812de0e282bd/blast_reporting/reference_bins.py", line 48, in build_bins
    newbin = self.buildBin(field_name, bin_filter)
  File "/opt/production_galaxy/var/shed_tools/toolshed.g2.bx.psu.edu/repos/damion/blast_reporting/812de0e282bd/blast_reporting/reference_bins.py", line 93, in buildBin
    common.stop_err("Reference bin could not be found or opened: " + self.path + bin_folder_name + '/accession_ids.tab')
AttributeError: ReferenceBins instance has no attribute 'path'
@dfornika dfornika linked a pull request Feb 27, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant