question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception AttributeError: "Render_Py instance has no attribute 'window'"

See original GitHub issue

During the training which is triggered by the following command:

python experiments/deepim/deepim_train_test.py --cfg experiments/deepim/cfgs/deepim_flownet_LM_SIXD_v1_all_RFMx4_8epoch.yaml --gpus 0,1,2,3

the error of:

Loading ./data/LINEMOD_6D/LM6d_converted/LM6d_refine/models/ape
Loading ./data/LINEMOD_6D/LM6d_converted/LM6d_refine/models/benchvise
Loading ./data/LINEMOD_6D/LM6d_converted/LM6d_refine/models/camera
Loading ./data/LINEMOD_6D/LM6d_converted/LM6d_refine/models/can
Loading ./data/LINEMOD_6D/LM6d_converted/LM6d_refine/models/cat
Loading ./data/LINEMOD_6D/LM6d_converted/LM6d_refine/models/driller
Loading ./data/LINEMOD_6D/LM6d_converted/LM6d_refine/models/duck
Loading ./data/LINEMOD_6D/LM6d_converted/LM6d_refine/models/eggbox
Loading ./data/LINEMOD_6D/LM6d_converted/LM6d_refine/models/glue
Loading ./data/LINEMOD_6D/LM6d_converted/LM6d_refine/models/holepuncher
Loading ./data/LINEMOD_6D/LM6d_converted/LM6d_refine/models/iron
Loading ./data/LINEMOD_6D/LM6d_converted/LM6d_refine/models/lamp
Loading ./data/LINEMOD_6D/LM6d_converted/LM6d_refine/models/phone
************Finish loading models*************
[x] Window creation failed
Exception AttributeError: "Render_Py instance has no attribute 'window'" in <bound method Render_Py.__del__ of <lib.render_glumpy.render_py_multi.Render_Py instance at 0x7f31580d6998>> ignored

is thrown. Yes, I did install glumpy from source by executing the following:

git clone https://github.com/glumpy/glumpy.git
cd glumpy
python setup.py install

Executing this:

python lib/render_glumpy/render_py_multi.py

however, gives an error:

 Traceback (most recent call last):
   File "lib/render_glumpy/render_py_multi.py", line 13, in <module>
     from lib.pair_matching.RT_transform import quat2mat
 ImportError: No module named lib.pair_matching.RT_transform

which indicates that something isn’t installed properly. However, I cannot think of anything since I did everything as told. How can we possible disable all this GUI-related stuff? We don’t need this, it serves no purpose while training and testing, can’t we just disable this?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
joefrielcommented, Feb 28, 2019

Commenting out every single line that involes GUI operations and windows in render_py_multi.py seems to have solved the problem.

I am trying to run deepIM in a notebook (on google colab) and glumpy is not compatible with notebooks (see https://glumpy.readthedocs.io/en/latest/faq.html).

I successfully ran the first step in ‘prepare_data.sh’ (“python toolkit/LM6d_devkit/LM6d_2a_adapt_images.py”), but immediately hit GUI (‘window’) issues on the next step. Did you ever succeed in running deepIM totally without glumpy? Thanks

(Edit: I was able to get this working by installing a virtual display, glumpy no longer complains) !apt-get install xvfb !pip -q install pyvirtualdisplay

from pyvirtualdisplay import Display display = Display(visible=0, size=(1024, 768)) display.start() import os os.environ[“DISPLAY”] = “:” + str(display.display) + “.” + str(display.screen)

0reactions
huberlcommented, Mar 8, 2019

I ran it via SSH

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: 'module' object has no attribute 'window'
You're attempting something very strange here. I wonder where you got the idea to import cmds or cmd, but any way it's not...
Read more >
Release News — PySDL2 0.9.15a1 documentation
The sdl2.ext.subsurface() function has been re-documented and rewritten to have improved input handling and type checking (PR #204); Improved ...
Read more >
pystache
Replaced Template with Renderer class: template rendering behavior can be modified via the Renderer constructor or by setting attributes on a Renderer instance....
Read more >
Planned Features — BlenderProc 2.4.0 documentation
vis hdf5 --save now also supports stereo images; improve error message when rendering with no camera poses; fixed a bug where the windows...
Read more >
vedo.plotter API documentation
Number of sub-render windows inside of the main window. E.g.: specify two across with shape=(2,1) and a two by two grid with shape=(2,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found