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

test_issue_178 fails #227

Closed
tillea opened this issue Nov 8, 2017 · 3 comments
Closed

test_issue_178 fails #227

tillea opened this issue Nov 8, 2017 · 3 comments

Comments

@tillea
Copy link

tillea commented Nov 8, 2017

Hi,
when trying to build the Debian package of pybedtools I get:

======================================================================
ERROR: pybedtools.test.test1.test_issue_178
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/build/python-pybedtools-0.7.10/.pybuild/pythonX.Y_3.6/build/pybedtools/test/test1.py", line    2108, in test_issue_178
    pybedtools.contrib.bigwig.bam_to_bigwig(fn, genome='dm3', output='tmp.bw')
  File "/build/python-pybedtools-0.7.10/.pybuild/pythonX.Y_3.6/build/pybedtools/contrib/bigwig.py", line 123, in bam_to_bigwig
    p = subprocess.Popen(cmds, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True)
  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'bedGraphToBigWig': 'bedGraphToBigWig'

----------------------------------------------------------------------
Ran 491 tests in 13.519s

FAILED (SKIP=1, errors=1)
E: pybuild pybuild:283: test: plugin distutils failed with: exit code=1: cd /build/python-pybedtools-0.7.10/.pybuild/pythonX.Y_3.6/build; python3.6 -m nose --attr '!url'

For the moment I have excluded this test from the build but it would be good to have this issue solved.
Kind regards, Andreas.

@daler
Copy link
Owner

daler commented Nov 8, 2017

Thanks for reporting. These are external compiled tools that are installed as part of the CI testing (https://github.com/daler/pybedtools/blob/master/optional-requirements.txt), but not installed by pybedtools itself.

I'll add a more informative error message, and skip the test if they're not available.

daler added a commit that referenced this issue Nov 8, 2017
daler added a commit that referenced this issue Nov 8, 2017
@daler
Copy link
Owner

daler commented Nov 8, 2017

@tillea can you try #228?

@tillea
Copy link
Author

tillea commented Nov 9, 2017 via email

@daler daler closed this as completed Nov 9, 2017
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

No branches or pull requests

2 participants