Skip to content

kikuchipy and hyperspy with pyinstaller #581

Answered by hakonanes
Erlendos12 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Erlendos12,

thank you for starting this discussion here. I'm not familiar with PyInstaller, so I'm afraid you have to debug this yourself. But, I can try to diagnose the problem, at least. And perhaps identify some possible solutions.

The AttributeError in the error message most likely results from the EBSD.remove_static_background() method calling the LazySignal2D.map() method, which does not return a LazyEBSD instance but a LazySignal2D instance. This is because HyperSpy doesn't recognize the kikuchipy signals as subclasses of its classes.

The kikuchipy/hyperspy_extension.yaml file must be present when installing kikuchipy, otherwise HyperSpy will not know of kikuchipy's subclasses.…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Erlendos12
Comment options

@hakonanes
Comment options

@Erlendos12
Comment options

@hakonanes
Comment options

@hakonanes
Comment options

Answer selected by Erlendos12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants