Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump environment python version to 3.10 #14

Open
ConstensouxAlexis opened this issue Dec 3, 2024 · 1 comment
Open

Bump environment python version to 3.10 #14

ConstensouxAlexis opened this issue Dec 3, 2024 · 1 comment
Assignees

Comments

@ConstensouxAlexis
Copy link

Hello,
Thank you for sharing this tool. I think that the enact conda env should be created with python10, because run_enact raises an error for python version below 3.10 (I think that operator | was added in python3.10):

File "../analysis_workspaces/visium_hd_telocytes/code/envs/enact_py_env/lib/python3.9/site-packages/numpyro/diagnostics.py", line 233, in <module> samples: dict | np.ndarray, prob: float = 0.90, group_by_chain: bool = True TypeError: unsupported operand type(s) for |: 'type' and 'type'

@AlbertPlaPlanas
Copy link

You are right about operator '|', nonetheless I do not recall having seen this error with enact when using python 3.9.

Can you paste the full stack trace to see in which line(s) of our code this is happening?

On the meantime, you can test it yourself locally by upgrading the python version in the following two files:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants