msprime
msprime copied to clipboard
Issue importing msprime into Python
Hello!
I've installed msprime using pip, but am met with the following error when I attempt to import it into JupyterLab.
Traceback (most recent call last):
File "
I've also attempted installing it with conda, activating a conda environment, and am met with the same error. I'm really unsure of what's going on haha.
Thank you! Asad
Hi @asadrh8 :wave:
It's odd you should get the same error when using conda. Can you try installing msprime into a fresh conda environment (see docs) and let us know how you get on?
I ended up with the same error. I'm really unsure of what's going on given that the installation always run smoothly. Is it perhaps a python compatibility issue? I'm running python 3.10.4.
Just to update, I reverted to python 3.9.12 and am no longer experiencing the error. Everything is working fine!
This is macOS? It'd be nice to confirm this. What macOS version are you on? I can try to replicate next week on a machine running Monterey.
I'm on macOS Mojave, 10.14.6!
Thanks. I just updated a machine to that. It looks to me like you installed stuff into system libraries? I'm basing that on the paths. That may be part of the issues.
@asadrh8 do you still have this problem? Can you check if installing msprime into its own environment using conda solves the problem (see #2093 for help on doing this)?
I didn't get around to firing up my Mac yet. It isn't my daily driver and I am easily distracted!
I'm going to close this as there's no updates after a few months - we can reopen if it's still a live issue.