Closed sbliven closed 3 years ago
This seems to be a python2/3 difference. Python 3 prefers the global package since the local one should be referenced .torch
, while python2 loads the package-local file first.
Thanks for pointing this out, I'll add this to the todo list. That said, I probably won't continue to support python 2 for much longer. I recommend using python 3 instead.
Dropping python 2 seems very reasonable. I had originally installed following the cryosparc guide, which specifically fixes python=2.7. I later realized that there is no need to match python versions between topaz and cryosparc, so I've switched to python 3.
That said, it might still be a good idea to avoid namespace collisions with dependencies.
This should now be resolved by commit 12f7a8a7ecc35a38c7f38fe799d549c0c82975d0
I've installed topaz with python2.7 (for use with cryosparc, so I don't think I can use 3?). I'm getting an error:
Digging into this it looks like
topaz.torch
is shadowing pytorch'storch
. Maybe torch.py should be renamed?