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

auditwheel does not work on musllinux_1_1_i686: #482

Open
genotrance opened this issue Feb 14, 2024 · 0 comments
Open

auditwheel does not work on musllinux_1_1_i686: #482

genotrance opened this issue Feb 14, 2024 · 0 comments

Comments

@genotrance
Copy link

Using v6.0.0 of auditwheel on quay.io/pypa/musllinux_1_1_i686:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/root/pyvenv/py3.11.8/lib/python3.11/site-packages/auditwheel/__main__.py", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/root/pyvenv/py3.11.8/lib/python3.11/site-packages/auditwheel/main.py", line 54, in main
    rval = args.func(args, p)
           ^^^^^^^^^^^^^^^^^^
  File "/root/pyvenv/py3.11.8/lib/python3.11/site-packages/auditwheel/main_repair.py", line 173, in execute
    out_wheel = repair_wheel(
                ^^^^^^^^^^^^^
  File "/root/pyvenv/py3.11.8/lib/python3.11/site-packages/auditwheel/repair.py", line 78, in repair_wheel
    raise ValueError(
ValueError: Cannot repair wheel, because required library "libc.musl-i386.so.1" could not be located
$ ls -l /lib
...
ld-musl-i386.so.1
libc.musl-x86.so.1 -> ld-musl-i386.so.1

So I created a symlink for libc.musl-i386.so.1:

libc.musl-i386.so.1 -> ld-musl-i386.so.1

Now when I run auditwheel, I get a different error:

Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/root/pyvenv/py3.11.8/lib/python3.11/site-packages/auditwheel/__main__.py", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/root/pyvenv/py3.11.8/lib/python3.11/site-packages/auditwheel/main.py", line 39, in main
    main_repair.configure_parser(sub_parsers)
  File "/root/pyvenv/py3.11.8/lib/python3.11/site-packages/auditwheel/main_repair.py", line 43, in configure_parser
    p.add_argument(
  File "/opt/python/cp311-cp311/lib/python3.11/argparse.py", line 1450, in add_argument
    action = action_class(**kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^
  File "/root/pyvenv/py3.11.8/lib/python3.11/site-packages/auditwheel/tools.py", line 122, in __init__
    raise argparse.ArgumentError(self, msg % args)
argparse.ArgumentError: argument --plat: invalid choice: 'musllinux_1_1_i686' from environment variable 'AUDITWHEEL_PLAT' (choose from 'linux_i686', 'manylinux_2_5_i686', 'manylinux_2_12_i686', 'manylinux_2_17_i686', 'manylinux_2_24_i686', 'manylinux_2_27_i686', 'manylinux_2_28_i686', 'manylinux_2_31_i686', 'manylinux_2_34_i686', 'manylinux_2_35_i686', 'manylinux1_i686', 'manylinux2010_i686', 'manylinux2014_i686')
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

1 participant