You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# only on ubuntu
sudo apt update
sudo apt upgrade
sudo apt install cmake build-essential zlib1g-dev python3-dev
# clone
git clone git@github.com:CN-UPB/DeepCoMP.git
cd DeepCoMP
# install all python dependencies
pip install .
# "python setup.py install" does not work for some reason: https://stackoverflow.com/a/66267232/2745116
# for development install (when changing code): pip install -e .
sudo apt install ffmpeg imagemagick
After that, I run this command to do a simulation
deepcomp --env medium --slow-ues 3 --alg ppo --agent central --workers 2 --train-steps 50000 --seed 42 --video both --result-dir /home/abhishek/cmc
My system is showing an error:
2022-04-18 15:20:33,524 WARNING deprecation.py:33 -- DeprecationWarning: `monitor` has been deprecated. Use `record_env` instead. This will raise an error in the future!
Traceback (most recent call last):
File "/home/abhishek/.local/lib/python3.8/site-packages/matplotlib/backend_bases.py", line 2785, in _wait_cursor_for_draw_cm
self.set_cursor(cursors.WAIT)
File "/home/abhishek/.local/lib/python3.8/site-packages/matplotlib/backends/backend_gtk3.py", line 468, in set_cursor
self.canvas.get_property("window").set_cursor(cursord[cursor])
AttributeError: 'NoneType' object has no attribute 'set_cursor'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/abhishek/.local/bin/deepcomp", line 8, in <module>
sys.exit(main())
File "/home/abhishek/.local/lib/python3.8/site-packages/deepcomp/main.py", line 83, in main
sim.run(render=args.video, log_dict=log_dict)
File "/home/abhishek/.local/lib/python3.8/site-packages/deepcomp/util/simulation.py", line 700, in run
zipped_results = Parallel(n_jobs=self.num_workers)(
File "/home/abhishek/.local/lib/python3.8/site-packages/joblib/parallel.py", line 1029, in __call__
if self.dispatch_one_batch(iterator):
File "/home/abhishek/.local/lib/python3.8/site-packages/joblib/parallel.py", line 847, in dispatch_one_batch
self._dispatch(tasks)
File "/home/abhishek/.local/lib/python3.8/site-packages/joblib/parallel.py", line 765, in _dispatch
job = self._backend.apply_async(batch, callback=cb)
File "/home/abhishek/.local/lib/python3.8/site-packages/joblib/_parallel_backends.py", line 208, in apply_async
result = ImmediateResult(func)
File "/home/abhishek/.local/lib/python3.8/site-packages/joblib/_parallel_backends.py", line 572, in __init__
self.results = batch()
File "/home/abhishek/.local/lib/python3.8/site-packages/joblib/parallel.py", line 252, in __call__
return [func(*args, **kwargs)
File "/home/abhishek/.local/lib/python3.8/site-packages/joblib/parallel.py", line 252, in <listcomp>
return [func(*args, **kwargs)
File "/home/abhishek/.local/lib/python3.8/site-packages/deepcomp/util/simulation.py", line 547, in run_episode
self.save_animation(fig, patches, render)
File "/home/abhishek/.local/lib/python3.8/site-packages/deepcomp/util/simulation.py", line 314, in save_animation
html = anim.to_html5_video()
File "/home/abhishek/.local/lib/python3.8/site-packages/matplotlib/animation.py", line 1332, in to_html5_video
self.save(str(path), writer=writer)
File "/home/abhishek/.local/lib/python3.8/site-packages/matplotlib/animation.py", line 1152, in save
writer.grab_frame(**savefig_kwargs)
File "/home/abhishek/.local/lib/python3.8/site-packages/matplotlib/animation.py", line 384, in grab_frame
self.fig.savefig(self._frame_sink(), format=self.frame_format,
File "/home/abhishek/.local/lib/python3.8/site-packages/matplotlib/figure.py", line 2203, in savefig
self.canvas.print_figure(fname, **kwargs)
File "/home/abhishek/.local/lib/python3.8/site-packages/matplotlib/backend_bases.py", line 2098, in print_figure
result = print_method(
File "/home/abhishek/.local/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py", line 447, in print_raw
FigureCanvasAgg.draw(self)
File "/home/abhishek/.local/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py", line 390, in draw
with RendererAgg.lock, \
File "/usr/lib/python3.8/contextlib.py", line 113, in __enter__
return next(self.gen)
File "/home/abhishek/.local/lib/python3.8/site-packages/matplotlib/backend_bases.py", line 2788, in _wait_cursor_for_draw_cm
self.set_cursor(self._lastCursor)
File "/home/abhishek/.local/lib/python3.8/site-packages/matplotlib/backends/backend_gtk3.py", line 468, in set_cursor
self.canvas.get_property("window").set_cursor(cursord[cursor])
AttributeError: 'NoneType' object has no attribute 'set_cursor'
/home/abhishek/.local/lib/python3.8/site-packages/matplotlib/backends/backend_gtk3.py:195: Warning: Source ID 7 was not found when attempting to remove it
GLib.source_remove(self._idle_draw_id)
My PC Configuration : OS = Ubuntu 20.04 LTS, HW = intel i5 8th Gen, 8 GB RAM
stefanbschneider
changed the title
An error occurred while deploying the DeepCoMP on PC
AttributeError: 'NoneType' object has no attribute 'set_cursor'
Apr 19, 2022
After successfully executing all the commands
After that, I run this command to do a simulation
My system is showing an error:
My PC Configuration : OS = Ubuntu 20.04 LTS, HW = intel i5 8th Gen, 8 GB RAM
My pip status :
Please try to resolve this issue.
Any help would be appreciated.
Thanks in advance.
The text was updated successfully, but these errors were encountered: