hyperspyUI icon indicating copy to clipboard operation
hyperspyUI copied to clipboard

Some gui windows are empty

Open thomasaarholt opened this issue 9 years ago • 14 comments
trafficstars

Probably related to #76, on Mac some features that (I suspect) open GUIs show a tiny empty window: screenshot 2016-10-27 18 53 40

An example of a dialog that does this is the "set signal range" option on a model. Terminal only reports the following, but does do so reliably.

QPixmap::scaled: Pixmap is a null pixmap

thomasaarholt avatar Oct 27 '16 17:10 thomasaarholt

Can you give an example of an action that opens such a window? :)

vidartf avatar Oct 28 '16 09:10 vidartf

Definitely set_signal_range when right clicking on a model in the data view window. Trying to find others.

thomasaarholt avatar Oct 28 '16 09:10 thomasaarholt

I think those are supposed to be traitsui windows from hyperspy. The UI tries to capture them and make them child windows. Which version of traitsui do you have?

vidartf avatar Oct 28 '16 11:10 vidartf

'5.0.0'

thomasaarholt avatar Oct 29 '16 13:10 thomasaarholt

I've just upgraded to 5.1.0 as well as upgrading a few other bits and bobs. Will test again.

hyperspyui is not recognising my repository develop install of hyperspy: pkg_resources.DistributionNotFound: The 'hyperspy>=1.1.1' distribution was not found and is required by hyperspyUI Any thoughts on a solution?

thomasaarholt avatar Oct 29 '16 13:10 thomasaarholt

No change upon update of packages.

thomasaarholt avatar Oct 29 '16 14:10 thomasaarholt

The repository install thing might be because of versioning. I'm not sure what the version string of the develop install is, but it fails to compare successfully as 1.1.1 or greater.

vidartf avatar Oct 30 '16 11:10 vidartf

Does the same happen if you execute the following in the console:

m = ui.get_selected_model()
m.set_signal_range()

vidartf avatar Oct 30 '16 11:10 vidartf

Sorry, I'll try to get back to this later - for now I'm too busy with the thesis.

thomasaarholt avatar Nov 10 '16 10:11 thomasaarholt

Sure, just keep reporting anything you see as well. I have a decent chance of getting my hands on a mac for testing. Are you using system python, a conda install, or something else?

vidartf avatar Nov 10 '16 11:11 vidartf

I’m using conda-develop path-to-repo at the moment, which links the repository but doesn’t install dependencies (I only realised the latter when trying to use it on my friends computer on Monday). I think it’s essentially equivalent of conda install for these purposes.

thomasaarholt avatar Nov 10 '16 13:11 thomasaarholt

Very happily closing this :)

thomasaarholt avatar Jan 18 '17 14:01 thomasaarholt

Did you figure out what was wrong?

vidartf avatar Jan 18 '17 15:01 vidartf

Ehm, my bad. I thought this was the other issue that you fixed overnight. I'm afraid this one still stands.

thomasaarholt avatar Jan 18 '17 16:01 thomasaarholt