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

Error "wheel has to be platlib compliant in order to be repaired by auditwheel" #333

Closed
tcuongd opened this issue Aug 29, 2021 · 3 comments

Comments

@tcuongd
Copy link

tcuongd commented Aug 29, 2021

Hi! I'm trying to use cibuildwheels + Github Actions for the Prophet package but I'm struggling to get the Repair step of the build working on Linux (i.e. the wheel finishes building, but can't be repaired by auditwheel). I'm keen to understand more about the error

RuntimeError: Invalid binary wheel, found the following shared library/libraries in purelib folder:
  	prophet_model.bin
  	diagnose
  	print
  	stanc
  	stansummary
  	diagnose.o
  	print.o
  	stansummary.o
  	bernoulli
  	main.o
The wheel has to be platlib compliant in order to be repaired by auditwheel.

I'm not quite sure what "platlib compliant" means. I found a similar discussion here: google/or-tools#616 (comment) and tried to apply the suggested fix but ran into the same error. Would really appreciate any help on this one!

Here is the CI run in question, if that helps.

@mayeut
Copy link
Member

mayeut commented Aug 29, 2021

@tcuongd
Copy link
Author

tcuongd commented Aug 29, 2021

Thanks Matthieu! So I tried using:

class BinaryDistribution(Distribution):
    """Distribution which always forces a binary package with platform name"""
    def has_ext_modules(self):
        return True

    def is_pure(self):
        return False

in setup.py, but the error is the same :( I'm just using https://github.com/pypa/build to build the wheel, not sure if that has something to do with it.

@mayeut
Copy link
Member

mayeut commented Sep 4, 2021

As mentioned in pypa/packaging-problems#542, it's more a setuptools usage issue so I'll close this one as there's not much that can be done in auditwheel.

@mayeut mayeut closed this as completed Sep 4, 2021
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

2 participants