-
Notifications
You must be signed in to change notification settings - Fork 269
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
AttributeError because initgl() never called #11
Comments
The method |
ah ok makes sense! I checked and pyopengltk has been installed. I'll look into it more. |
I am having the same issue - see my error readout below. What happens is the GUI appears momentarily before crashing. I'm on windows.
|
So Ive narrowed it down to pycuda.gl.autoinit failing to import in the function setup_gl
Seems like an issue with the pycuda install. To install it I pip installed pytools (https://www.lfd.uci.edu/~gohlke/pythonlibs/#pytools) and then pycuda (pycuda‑2019.1.2+cuda101‑cp37‑cp37m‑win_amd64.whl) as I have cuda 10.1. Is this correct? |
I am stuck at the same step (getting the make_default_context() error) and am also using cuda 10.1. Why did you need pytools to get PyCuda by the way ? |
@adamdavidconn the Windows dependencies are included under deps/windows, could you try to install all of those to see if it helps? The process is detailed in the setup instructions. In general, it would be great if ether of you could make a minimal example that fails, which could then be filed as a pycuda bug. |
Oh, I misunderstood that line of the instructions, Ill try and install those deps now and let you know if fixed. Thanks! |
So installing the windows dependencies did not solve the issue. Delving a bit further: import pycuda.gl.autoinit is failing. Within that module the line context = make_default_context(lambda dev: cudagl.make_context(dev)) is failing, throwing the below error:
Looking at the function make_default_context the line devn = os.environ.get("CUDA_DEVICE") is returning None. @harskish is your cuda_device system variable set to anything? |
Neither |
Was this ever resolved? I'm stuck with the same issue. Running Ubuntu 18.04. Rebuilt my Anaconda environment and still the same. Am able to run the pyopengltk "basic example" here: https://github.com/jonwright/pyopengltk Is there some way to explicitly run the gl initialization routine if pyopengltk isn't calling it properly? Here's the full error:
|
Hmmm..... Been running my Linux over ssh from a Mac; Linux box has 2 graphics cards: an AMD to drive a monitor when I need it, and the NVIDIA for compute. Just pulled the AMD card out and plugged the monitor into NVIDIA. Reboot. Can now run GANSpace directly on Linux box, but not over ethernet from Mac. Running remotely still emits "AttributeError: 'TorchImageView' object has no attribute 't_last'" FYI. Thanks for your work, this software looks fun! |
Thank you @botty-mc-bot-face , this is very useful information. |
yes I was |
@harskish glad to be able to remunerate the libre community for the free-of-cost software I use! I'm just trying to do my part to destroy the white collar with ubiquitous A.I. running on cheap video game hardware. Soon we will have no need for designers, coders, models or retouch artists, painters, musicians, or actors. That is, talent. When the global warming from the CO2 created by the booming electrical demand for cloud computing kicks off the next Ice Age by pushing us over the tipping point into the collapse of trans-oceanic air currents, the devastating disruptions in the delicate balance between climactic stability and the agricultural systems civilization has depended upon for the last 10,000 years will make Earth a perfect location for the new super-cooled data warehouse required by the hyper-advanced pink dromedaries in Alpha Centauri, who need to process quazilliaflops of digital sensor readings in floating point arithmetic output from the black hole hypercomputers they manage around over a dozen singularities. Good luck surviving the plague, revolution, drunk drivers, terrorists, fascists, antifascists, and inter-dimensional alien invaders lol! |
I have the exact same error on Azure Windows VM with Nvidia GPU. I checked that all dependencies from /deps/windows have been installed. Is there anything else I can try? |
I get the same errors on a V100 on a cluster, using X11 forwarding. Did anybody make it work? |
When running interactive.py, I get an AttributeError with the TorchImageView object on attributes such as 't_last' or 'tex'.
Looking into it, this is because the code calls draw() without ever calling before initgl() where those attributes are first initialized.
Could you point to me the right place to call initgl() so those attributes are initialized ?
The text was updated successfully, but these errors were encountered: