particlespy icon indicating copy to clipboard operation
particlespy copied to clipboard

python==3.6 leads to issues

Open longkunxuluke opened this issue 1 year ago • 2 comments

Hi, I am trying to use the code following the doc and the notebook. I install the code with mamba install particlespy. However I keep meeting errors in running import hyperspy.api as hs and the errors (e.g., from __future__ import annotations -> SyntaxError: future feature annotations is not defined) come from the fact that python==3.6 is used in the code. I tried to use a more recent version of python but it seems there is a conflict as contextvars is installable and it requires python >=3,<3.7. I feel strange that it seems only me meeting the problem and I did not find relevant discussions in past issues. Do you have any suggestions? Many thanks!

longkunxuluke avatar Jul 31 '24 09:07 longkunxuluke

Hi! I haven't seen this issue before.

Do you know which package depends on contextvars?

TomSlater avatar Aug 01 '24 10:08 TomSlater

This might be more appropriate to put in the HyperSpy issues, depending on where the dependency issues arise.

TomSlater avatar Aug 01 '24 10:08 TomSlater