py4dstem / py4DSTEM_tutorials

Sample code for py4DSTEM
GNU General Public License v3.0
37 stars 31 forks source link

emdfile issue, I install py4DSTEM version 0.14, but when I want to import py4DSTEM, it shows 'cannot import name 'RootedNode' from 'emdfile'. How can I solve this issue? #19

Closed 1990-yang closed 1 year ago

FrancisBlackLee commented 1 year ago

I got the same problem

bsavitzky commented 1 year ago

Hey @1990-yang @FrancisBlackLee - how did you install?

For now can you try going to the environment you installed in and running pip install emdfile==0.0.8 and then see if the import will work?

bsavitzky commented 1 year ago

Ok, it looks most likely you did normal installations (either pip install py4dstem or conda install py4dstem), as I'm seeing this bug there. It's now patched, but will likely take a few hours for that to propagate to conda. If you did a conda install and don't want to wait, the simplest fix should be doing pip install emdfile==0.0.8, or you can re-install the package with pip install py4dstem --upgrade.

FrancisBlackLee commented 1 year ago

Ok, it looks most likely you did normal installations (either pip install py4dstem or conda install py4dstem), as I'm seeing this bug there. It's now patched, but will likely take a few hours for that to propagate to conda. If you did a conda install and don't want to wait, the simplest fix should be doing pip install emdfile==0.0.8, or you can re-install the package with pip install py4dstem --upgrade.

pip install emdfile==0.0.8 works for me, thanks!

bsavitzky commented 1 year ago

Great, thanks for letting me know. @1990-yang Let me know if this solves the issue for you, and if so I'll close out the issue. Thank you for finding the bug!

1990-yang commented 1 year ago

Yes, works for me! Thanks very much!

bsavitzky commented 1 year ago

Great :)