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

numpy 1.24.1 and plastid 0.6.1 appear to have an issue due to dropping of support for numpy.int by numpy. #55

Open
cjhull opened this issue Dec 31, 2022 · 6 comments

Comments

@cjhull
Copy link

cjhull commented Dec 31, 2022

Hello,

In installing a conda environment with plastid for a customer (python 3.9.15, plastid 0.6.1, numpy 1.24.1) my customer found that their test "metagene generate -h" failed with "AttributeError: module 'numpy' has no attribute 'int'".

From searching online copycode.org indicates that as of numpy 1.24 support for numpy.float and numpy.int were removed. I've downgraded the conda numpy to 1.23.5 and am waiting to hear back from my customer whether their test is successful with the downgraded version.

I'm not a developer, but I'm guessing it might warrant setting a requirement for plastid/0.6.1 for numpy to be <= 1.23.5.

Thank you.

@mnapolitano89
Copy link

Hello, this is actually an issue with the bioconda recipe not restricting the np version like requirements.txt does, if I figure out how to submit a change to their setup I will make sure that it restricts to under 1.24.

@cjhull
Copy link
Author

cjhull commented Jan 4, 2023 via email

@mnapolitano89
Copy link

This should be fixed in bioconda now

@cjhull
Copy link
Author

cjhull commented Jan 6, 2023 via email

@joshuagryphon
Copy link
Owner

Thank you @mnapolitano89 for the bioconda fix!

Keeping this issue open because we'll need to adjust here for future proofing

@cwilling
Copy link

I'm not sure if this is related but seems to concern numpy dropping support for some numeric types. Building plastid fails with numpy-1.26.0 (previously OK with 1.24.4) with error:

running build_ext
Could not find .c files. Regenerating via recythonize.
Cythonizing
running recythonize
running clean

Error compiling Cython file:
------------------------------------------------------------
...
LONG   = np.long

ctypedef np.int_t    INT_t
ctypedef np.float_t  FLOAT_t
ctypedef np.double_t DOUBLE_t
ctypedef np.long_t   LONG_t
        ^
------------------------------------------------------------

plastid/genomics/map_factories.pyx:154:9: 'long_t' is not a type identifier

The discussion above points to limiting numpy to 1.24.x - is that the only possibility?

willysr pushed a commit to SlackBuildsOrg/slackbuilds that referenced this issue Jun 15, 2024
This package is incompatible with later version of numpy. See
upstream ticket:

joshuagryphon/plastid#55

Signed-off-by: Andrew Clemons <[email protected]>

Signed-off-by: Willy Sudiarto Raharjo <[email protected]>
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

4 participants