Open raysteven opened 2 years ago
Hi,
Is there a difference in internet connection/firewall between the morning and evening test? Regardless of the error, the HTML output should be created, but the (identical) PNGs would be missing.
Wouter
I think what's different with the internet connection is the latency. Just now I try it once again and it shows a different error.
If you read this then NanoPlot 1.38.1 has crashed :-(
Please try updating NanoPlot and see if that helps...
If not, please report this issue at https://github.com/wdecoster/NanoPlot/issues
If you could include the log file that would be really helpful.
Thanks!
Traceback (most recent call last):
File "/home/ray/.local/lib/python3.8/site-packages/nanoplotter/plot.py", line 45, in save
self.save_static(figformat)
File "/home/ray/.local/lib/python3.8/site-packages/nanoplotter/plot.py", line 71, in save_static
f.write(scope.transform(self.fig, format=figformat))
File "/home/ray/.local/lib/python3.8/site-packages/kaleido/scopes/plotly.py", line 161, in transform
raise ValueError(
ValueError: Transform failed with error code 1: Failed to serialize document: Uncaught
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/ray/.local/bin/NanoPlot", line 8, in <module>
sys.exit(main())
File "/home/ray/.local/lib/python3.8/site-packages/nanoplot/NanoPlot.py", line 104, in main
plots = make_plots(datadf, settings)
File "/home/ray/.local/lib/python3.8/site-packages/nanoplot/NanoPlot.py", line 161, in make_plots
nanoplotter.length_plots(
File "/home/ray/.local/lib/python3.8/site-packages/nanoplotter/nanoplotter_main.py", line 414, in length_plots
histogram.save(figformat)
File "/home/ray/.local/lib/python3.8/site-packages/nanoplotter/plot.py", line 49, in save
os.remove(p)
FileNotFoundError: [Errno 2] No such file or directory: 'all_reads_test_preQC/WeightedHistogramReadlength.png'
When this error comes up the HTML output is not created, it's just the log file in the output folder.
NanoPlot v1.39.0 has a --no_static
option and should be available through pip now and through conda soon, in case you don't want the png images or have trouble generating them.
I am having this issue too and I think it may be due to a firewall on the cluster where it runs (which I am unlikely to be able to change). Is there any recommended workaround or solution besides the --no-static
option?
I'm having the same issue. I agree with @awgymer is another solution possible? Previous versions of NanoPlot don't seem to have this problem.
OK it seems my issue with NanoComp is stemming from the NanoPlotter / NanoPlot. It be great to export static plots for presentations. It's a bit of a faff to open the HTML plotly and export each time. https://github.com/wdecoster/nanocomp/issues/53#issue-1199060875
Hello, I tried using NanoPlot this morning and it works perfectly. But when I try to reproduce my work this evening, it shows this error.
I'm running NanoPlot on a WSL with Ubuntu 20