Closed sulheim closed 2 years ago
When I kill the process, the code is stuck here:
^CTraceback (most recent call last):
File "/home/snorre/miniconda3/bin/NanoPlot", line 10, in <module>
sys.exit(main())
File "/home/snorre/miniconda3/lib/python3.7/site-packages/nanoplot/NanoPlot.py", line 97, in main
make_plots(dfbarc, settings)
File "/home/snorre/miniconda3/lib/python3.7/site-packages/nanoplot/NanoPlot.py", line 168, in make_plots
figformat=settings["format"])
File "/home/snorre/miniconda3/lib/python3.7/site-packages/nanoplotter/nanoplotter_main.py", line 414, in length_plots
histogram.save(figformat)
File "/home/snorre/miniconda3/lib/python3.7/site-packages/nanoplotter/plot.py", line 45, in save
self.save_static(figformat)
File "/home/snorre/miniconda3/lib/python3.7/site-packages/nanoplotter/plot.py", line 71, in save_static
f.write(scope.transform(self.fig, format=figformat))
File "/home/snorre/miniconda3/lib/python3.7/site-packages/kaleido/scopes/plotly.py", line 154, in transform
figure, format=format, width=width, height=height, scale=scale
File "/home/snorre/miniconda3/lib/python3.7/site-packages/kaleido/scopes/base.py", line 293, in _perform_transform
self._ensure_kaleido()
File "/home/snorre/miniconda3/lib/python3.7/site-packages/kaleido/scopes/base.py", line 192, in _ensure_kaleido
startup_response_string = self._proc.stdout.readline().decode('utf-8')
KeyboardInterrupt
Thanks for reporting this. So it seems to be stuck in a step from kaleido, hmmm, not the first time that this module leads to issues. Similar issues (related to WSL) have been raised at the kaleido issue tracker, e.g. https://github.com/plotly/Kaleido/issues/110, without a fix. I should look into creating the possibility to turn off the use of kaleido to work around this issue.
Exactly, I was actually scrolling through the options to see if that was possible! Would have been great.
I will push a new version one of the next days with a --no_static option to work around this
NanoPlot v1.39.0 has the --no_static
option and should be available through pip now and through conda soon.
As I don't use WSL, please give me feedback if anything doesn't go as expected.
Hey, sorry for the late reply @wdecoster , but didn't get around to test it before now. Works fine, thanks a lot!
I run NanoPlot 1.28 on WSL on Windows 10. The problem is that NanoPlot never finishes, see output:
It stays here for several hours, until I loose faith and kill the process.