davlars / ad-skull-reconstruction

Repository for reconstruction of simulated skull CT data for AD project
2 stars 5 forks source link

`import adutils` requires X server #40

Closed sbanert closed 2 years ago

sbanert commented 6 years ago

When connect to a remote computer via SSH, start an IPython session and type import adutils (which is properly installed), I get the error message

qt.qpa.screen: QXcbConnection: Could not connect to display 
Could not connect to any X display.
adler-j commented 6 years ago

I guess it's one of these lines:

https://github.com/davlars/ad-skull-reconstruction/blob/7a85ba18ea80fee1be6b8dc66b2058430e119fef/adutils/utilities.py#L15-L16

Try commenting them out.

sbanert commented 6 years ago

It’s only matplotlib.pyplot.

adler-j commented 6 years ago

Can you make a PR to change those to be lazily imported? Should solve this issue.