添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

Cannot build setup.py: TypeError: expected str, bytes or os.PathLike object, not list #30372

Closed
@Hnasar

Description

All versions newer than 1.45 fail to build in python.

What did you try?

Try to build on piwheels CI environment: piwheels/packages#308

What did you see?

build failures ( link )

2022-06-17T19:06:09,566 Collecting grpcio==1.47.0rc1
2022-06-17T19:06:09,571   Created temporary directory: /tmp/pip-unpack-1d9_gblt
2022-06-17T19:06:11,283   Downloading grpcio-1.47.0rc1.tar.gz (21.9 MB)
2022-06-17T19:06:39,255   Added grpcio==1.47.0rc1 from https://files.pythonhosted.org/packages/5e/69/bc30cb1e02a46110ce19589261eaabe5a09a58075e559b43b1c150cf3205/grpcio-1.47.0rc1.tar.gz#sha256=2548a7adca9db022f9a516d36d29d214a58a6dbde9bc29f54ee4198f7a3899bd to build tracker '/tmp/pip-build-tracker-jpzsr1ep'
2022-06-17T19:06:39,258   Running setup.py (path:/tmp/pip-wheel-ev5792q7/grpcio_b673f59ba3e0437bb1ff93e5d678be19/setup.py) egg_info for package grpcio
2022-06-17T19:06:39,260   Created temporary directory: /tmp/pip-pip-egg-info-3f8_6uur
2022-06-17T19:06:39,260   Preparing metadata (setup.py): started
2022-06-17T19:06:39,262   Running command python setup.py egg_info
2022-06-17T19:06:44,306   Traceback (most recent call last):
2022-06-17T19:06:44,308     File "<string>", line 36, in <module>
2022-06-17T19:06:44,308     File "<pip-setuptools-caller>", line 34, in <module>
2022-06-17T19:06:44,308     File "/tmp/pip-wheel-ev5792q7/grpcio_b673f59ba3e0437bb1ff93e5d678be19/setup.py", line 263, in <module>
2022-06-17T19:06:44,309       if check_linker_need_libatomic():
2022-06-17T19:06:44,309     File "/tmp/pip-wheel-ev5792q7/grpcio_b673f59ba3e0437bb1ff93e5d678be19/setup.py", line 223, in check_linker_need_libatomic
2022-06-17T19:06:44,309       stderr=PIPE)
2022-06-17T19:06:44,310     File "/usr/lib/python3.7/subprocess.py", line 775, in __init__
2022-06-17T19:06:44,310       restore_signals, start_new_session)
2022-06-17T19:06:44,310     File "/usr/lib/python3.7/subprocess.py", line 1436, in _execute_child
2022-06-17T19:06:44,311       executable = os.fsencode(executable)
2022-06-17T19:06:44,311     File "/usr/lib/python3.7/os.py", line 809, in fsencode
2022-06-17T19:06:44,311       filename = fspath(filename)  # Does type-checking of `filename`.
2022-06-17T19:06:44,312   TypeError: expected str, bytes or os.PathLike object, not list

There's been a two-line fix waiting for review for over a month: #30076

@gnossen @markdroth @ctiller
Thank you for the help!