Skip to content
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

: cannot connect to X server - Kaggle? #10

Closed
CurtisASmith opened this issue Mar 30, 2021 · 2 comments
Closed

: cannot connect to X server - Kaggle? #10

CurtisASmith opened this issue Mar 30, 2021 · 2 comments

Comments

@CurtisASmith
Copy link

I am unsuccessfully trying to run clip_fft.py in a Kaggle notebook. The error message is seen below:

Start...
/kaggle/working/aphantasia/clip_fft.py:128: UserWarning: The function torch.irfft is deprecated and will be removed in a future PyTorch release. Use the new torch.fft module functions, instead, by importing torch.fft and calling torch.fft.ifft or torch.fft.irfft. (Triggered internally at  /pytorch/aten/src/ATen/native/SpectralOps.cpp:602.)
  image = torch.irfft(scaled_spectrum_t, 2, normalized=True, signal_sizes=(h, w))
: cannot connect to X server 

Previously I had errors that seemed to stem from dependencies, which I resolved. However, : cannot connect to X server is a dead end to me, although apparently it has something to do with displays. The last thing I tried was turning off verbose, thinking that displaying the previews may be the problem, but this did not solve the issue. I have no idea where to begin troubleshooting further. In fact, I'm not even sure if the issue is rooted in this tool, or in Kaggle. This tool works fine in the intended Colab environment*, and I'm not sure if you (eps696) have used Kaggle, so I understand if this issue is out of scope. Nonetheless I would appreciate any insight you or others might have!

*except that I keep running out of GPU time - Kaggle displays the time limits, at least

@eps696
Copy link
Owner

eps696 commented Mar 30, 2021

my first (and only) guess is about cv2 preview as well (switch off verbose); apart from that, there should be no other windowed graphics use. try to comment out (or remove) all mentioning of cvshow function (and maybe cv2 module import) to see if it helps.
alas, i never used kaggle, so not sure if can assist more than that

@eps696
Copy link
Owner

eps696 commented Apr 2, 2021

closing for now; feel free to reopen, if new info/questions arise

@eps696 eps696 closed this as completed Apr 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants