Skip to content

Can't import genomicranges with Python 3.11 #11

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

Closed
nleroy917 opened this issue Aug 30, 2023 · 1 comment · Fixed by #12
Closed

Can't import genomicranges with Python 3.11 #11

nleroy917 opened this issue Aug 30, 2023 · 1 comment · Fixed by #12

Comments

@nleroy917
Copy link

Overview

Hello - excited about this library!

I was attempting to do some testing/experimenting and I currently run Python 3.11.4, but I was running into an import error with numpy.

Steps to reproduce

  1. Install fresh virtual environment with python 3.11:
pyenv local 3.11.4
python -m venv venv
source venv/bin/activate
  1. Install GenomicRanges
pip install genomicranges
  1. Attempt import:
import genomicranges
  1. Observe error
File "__init__.pxd", line 944, in numpy.import_array
ImportError: numpy.core.multiarray failed to import

To resolve

I can resolve this by just downgrading python to 3.10.

Additional information

It seems like numpy only supports python 3.11 in 1.23.3 and up. I see this package has it pinned to 1.22.1. Is it possible to bump numpy to >1.23.3? Or just unpin it?

Let me know if you need any more information!

Nathan

@jkanche
Copy link
Member

jkanche commented Aug 30, 2023

Thanks for reporting this, I've gotten down to the real issue that forced me to pin the versions.

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

Successfully merging a pull request may close this issue.

2 participants