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

Windows no output PDF no output HTML report #287

Open
sjfleming opened this issue Sep 22, 2023 · 1 comment
Open

Windows no output PDF no output HTML report #287

sjfleming opened this issue Sep 22, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@sjfleming
Copy link
Member

A cellbender v0.3.0 run on Windows failed to produce a PDF and failed to produce an HTML report.

In this case it seems the error is

cellbender:remove-background: Unable to save all plots.
cellbender:remove-background: Traceback (most recent call last):
  File "C:\Users\laure\anaconda3\envs\cellbender\lib\site-packages\cellbender\remove_background\run.py", line 176, in save_output_plots
  File "C:\Users\laure\anaconda3\envs\cellbender\lib\site-packages\matplotlib\figure.py", line 3058, in savefig
  File "C:\Users\laure\anaconda3\envs\cellbender\lib\site-packages\matplotlib\backend_bases.py", line 2259, in print_figure
  File "C:\Users\laure\anaconda3\envs\cellbender\lib\site-packages\matplotlib\backend_bases.py", line 2184, in _get_output_canvas
  File "C:\Users\laure\anaconda3\envs\cellbender\lib\site-packages\matplotlib\backend_bases.py", line 144, in get_registered_canvas_class
  File "C:\Users\laure\anaconda3\envs\cellbender\lib\importlib\__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'matplotlib.backends.backend_pdf'

This error may also be the source of the trouble with the output HTML report, but that error is not reported. All we see is

cellbender:remove-background: Unable to create report.
cellbender:remove-background: Traceback (most recent call last):
  File "C:\Users\laure\anaconda3\envs\cellbender\lib\site-packages\cellbender\remove_background\run.py", line 351, in compute_output_denoised_counts_reports_metrics
    output=html_report_file,
  File "C:\Users\laure\anaconda3\envs\cellbender\lib\site-packages\cellbender\remove_background\report.py", line 82, in run_notebook_make_html
    title=('CellBender: ' + os.path.basename(output).replace('_report.html', '')),
  File "C:\Users\laure\anaconda3\envs\cellbender\lib\site-packages\cellbender\remove_background\report.py", line 59, in _postprocess_html
    with open(file, mode='r') as f:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\laure\\cellbender_RNAseq\\LM40\\cellbender_output_report.html'
@sjfleming sjfleming added the bug Something isn't working label Sep 22, 2023
@sjfleming sjfleming self-assigned this Sep 22, 2023
@sjfleming
Copy link
Member Author

May be addressable in this way:
Nuitka/Nuitka#827 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To Do
Development

No branches or pull requests

1 participant