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

"dyld: Library not loaded libffi.6.dylib" on GitHub "macos-latest" #446

Closed
anka-213 opened this issue Oct 8, 2020 · 13 comments
Closed

"dyld: Library not loaded libffi.6.dylib" on GitHub "macos-latest" #446

anka-213 opened this issue Oct 8, 2020 · 13 comments

Comments

@anka-213
Copy link

anka-213 commented Oct 8, 2020

Here is a full log: https://github.com/anka-213/gf-core/runs/1227241373?check_suite_focus=true

$ python -m cibuildwheel src/runtime/python --output-dir wheelhouse
     _ _       _ _   _       _           _
 ___|_| |_ _ _|_| |_| |_ _ _| |_ ___ ___| |
|  _| | . | | | | | . | | | |   | -_| -_| |
|___|_|___|___|_|_|___|_____|_|_|___|___|_|

cibuildwheel version 1.6.1
...
+ Download https://downloads.python.org/pypy/pypy2.7-v7.3.1-osx64.tar.bz2 to /tmp/pypy2.7-v7.3.1-osx64.tar.bz2
+ tar -C /tmp -xf /tmp/pypy2.7-v7.3.1-osx64.tar.bz2
+ which python
/tmp/cibw_bin/python
+ python --version
dyld: Library not loaded: /usr/local/opt/libffi/lib/libffi.6.dylib
  Referenced from: /private/tmp/pypy2.7-v7.3.1-osx64/bin/libpypy-c.dylib
  Reason: image not found

It seems like the hard coded version of pypy (pypy2.7-v7.3.1-osx64) depends on an older version of libffi, than the latest version: libffi.7.


It does however look like the the latest version of pypy (v7.3.2, which fixes it) is in the repo, I just need to wait for the next release.
https://github.com/joerick/cibuildwheel/blob/9fbe8186f97802a3df4dd6ff24c423da7d68c0fd/cibuildwheel/macos.py#L43-L45

Is there anything I can do in the meantime?

@YannickJadoul
Copy link
Member

YannickJadoul commented Oct 8, 2020

Not that I'm aware of. Can you use our master, until we have a release? (soon, we should, though; at least, I thought @joerick was planning one?)

@anka-213
Copy link
Author

anka-213 commented Oct 8, 2020

How do I use master?

@YannickJadoul
Copy link
Member

Like this: pip install git+https://github.com/joerick/cibuildwheel.git@master
Or if you want to pin to a specific commit (e.g., currently the latest on master), then try pip install git+https://github.com/joerick/cibuildwheel.git@f6eaa9f

anka-213 added a commit to anka-213/gf-core that referenced this issue Oct 8, 2020
@anka-213
Copy link
Author

anka-213 commented Oct 8, 2020

Yes, that worked. Thanks!

@YannickJadoul
Copy link
Member

Good, I'll close this, if that's OK with you? If you keep an eye on the cibuildwheel releases, woon enough, there should be a new version, and you can revert to installing that release :-)

@henryiii
Copy link
Contributor

henryiii commented Oct 8, 2020

If you keep an eye on the cibuildwheel releases

By the way, @joerick , currently releases are only made by adding a tag, and no one makes a "GitHub release". That would a) notify watchers that a new release is available (I watch all the projects I use, at least in "releases only" mode or by using the RSS feed in Feedly), and b) show a nice pretty current release tile on the main page. I can setup a CI job (think, I haven't tried before) that makes a "GitHub release" whenever you tag in the form "v*", or could you (or one of us, I can do it) manually make a "GitHub release" whenever a new tag shows up. I could even go over the old tags and make releases out of them if you'd like, copying the changelog entry into the description. Thoughts?

Current:
Screen Shot 2020-10-08 at 6 10 24 PM

Example from a repo with GitHub releases:
Screen Shot 2020-10-08 at 6 11 40 PM

@henryiii
Copy link
Contributor

henryiii commented Oct 8, 2020

PS: On my packages I normally have the CI make a PyPI release whenever a GitHub release is made, via a __token__ (something like this), but that's not what I'm proposing here; just manually or automatically making "GitHub releases" whenever a new tag is made (and ideally released on PyPI).

maxbachmann added a commit to rapidfuzz/RapidFuzz that referenced this issue Oct 9, 2020
The currently used version of cibuildwheel does not work with pypy2.7 on MacOS pypa/cibuildwheel#446
maxbachmann added a commit to rapidfuzz/RapidFuzz that referenced this issue Oct 9, 2020
The currently used version of cibuildwheel does not work with pypy2.7 on MacOS pypa/cibuildwheel#446
@anka-213
Copy link
Author

anka-213 commented Oct 9, 2020

It might be worth pinning this issue, since, unless I'm mistaken, more or less every single user of this project will run into this problem. (Otoh, they should still find it when googling the error message)

@joerick
Copy link
Contributor

joerick commented Oct 9, 2020

I just released 1.6.2 containing this Pypy upgrade.

@joerick
Copy link
Contributor

joerick commented Oct 9, 2020

By the way, @joerick , currently releases are only made by adding a tag, and no one makes a "GitHub release". That would a) notify watchers that a new release is available (I watch all the projects I use, at least in "releases only" mode or by using the RSS feed in Feedly), and b) show a nice pretty current release tile on the main page. I can setup a CI job (think, I haven't tried before) that makes a "GitHub release" whenever you tag in the form "v*", or could you (or one of us, I can do it) manually make a "GitHub release" whenever a new tag shows up. I could even go over the old tags and make releases out of them if you'd like, copying the changelog entry into the description. Thoughts?

Ah, I thought that pushing a tag would create the release. Funnily enough, I've been working on-and-off to create a tool to automate stuff like this as well. Until that's ready I'll try to copy-paste the changelog into Github releases as part of my release workflow :)

@henryiii
Copy link
Contributor

henryiii commented Oct 9, 2020

Thanks! Huge improvement, much nicer page, and I got the notification! :)

@henryiii
Copy link
Contributor

henryiii commented Oct 9, 2020

I like your emojis, by the way. :)

@YannickJadoul
Copy link
Member

Thanks! Huge improvement, much nicer page, and I got the notification! :)

Yes, indeed. I got the notification too. Never realized, but indeed, I never got email of the actual release :-)

mckib2 added a commit to mckib2/scikit-glpk that referenced this issue Oct 17, 2020
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