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

cf_units not working on macOS arm64 #438

Closed
Tracked by #450
renaudjester opened this issue Aug 6, 2024 · 8 comments
Closed
Tracked by #450

cf_units not working on macOS arm64 #438

renaudjester opened this issue Aug 6, 2024 · 8 comments
Labels
community New: Issue Highlight a new community raised "generic" issue Type: Bug Type: Infrastructure

Comments

@renaudjester
Copy link

🐛 Bug Report

I did:
pip install cfunits
It was successful but then when I tried to import the package it failed.
I am on mac OS with apple chip M2 and python 3.11.6.

Here is the traceback of the error:

>>> import cf_units
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/rjester/.asdf/installs/python/3.11.6/lib/python3.11/site-packages/cf_units/__init__.py", line 23, in <module>
    from cf_units import _udunits2 as _ud
ImportError: dlopen(/Users/rjester/.asdf/installs/python/3.11.6/lib/python3.11/site-packages/cf_units/_udunits2.cpython-311-darwin.so, 0x0002): symbol not found in flat namespace '_ut_ignore'

How to Reproduce

Steps to reproduce the behaviour:

  1. pip install cfunits
  2. python
  3. >>> import cf_units

Expected Behaviour

I expect that cfunits can be imported without an error.

Environment

  • MacOs Sonoma 14.6, apple chip M2
  • cf-units Version: cfunits-3.3.7
@ocefpaf
Copy link
Member

ocefpaf commented Aug 6, 2024

Looks like support for it was added in #411 but there wasn't a new release or post release since then. @bjlittle Do you believe you can cut a post release to get py312 and osx-arm64 wheels on PyPI? It would be awesome if #423 and #427 could be merged too.

@trexfeathers
Copy link
Collaborator

trexfeathers commented Aug 14, 2024

Apologies, we're still struggling to make time for cf-units, but we have now allocated 2 weeks exclusively for this in September, so watch this space.

@HGWright
Copy link
Contributor

This should be fixed by #458 which added building macos wheels on arm64 into the CI. Going to close this for now, and then after the next release this should be fixed for you, if its not please come back and let us know and we will reopen this.

@renaudjester
Copy link
Author

Thanks a lot, I will let you know!

@lukasbindreiter
Copy link

I also just ran into this issue.
The last cf-units release was in April, so it seems people have been waiting for a while already - is there any planned in the near future?

@trexfeathers
Copy link
Collaborator

I also just ran into this issue. The last cf-units release was in April, so it seems people have been waiting for a while already - is there any planned in the near future?

Yes, we're talking about it every day at the moment

@lukasbindreiter
Copy link

Awesome - thanks a lot, appreciate the effort 🙏

And I don't know how much additional effort it would entail to add python 3.13 support as well - but since it was released just today timely support would be also very much appreciated for it too 😄

@pp-mo
Copy link
Member

pp-mo commented Oct 16, 2024

@lukasbindreiter add python 3.13 support as well

Thanks for the prompt ! #506

FYI we aim to make a release within 1-2weeks now,
mainly just to get the numpy 2 support + so align with same in Iris, for the Iris 3.11 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community New: Issue Highlight a new community raised "generic" issue Type: Bug Type: Infrastructure
Projects
Status: Done
Development

No branches or pull requests

6 participants