Merged PR #937 breaks tox installs
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 9k
- Forks
- 1.5k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 3
Description
The same error as in #931 still persists after the merge #937. The environment I attempted to install apex was in tox for CD, where Cuda toolkit isn't available, and caused the error below
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-req-build-md7yngpi/setup.py", line 35, in <module>
_, bare_metal_major, _ = get_cuda_bare_metal_version(cpp_extension.CUDA_HOME)
File "/tmp/pip-req-build-md7yngpi/setup.py", line 14, in get_cuda_bare_metal_version
raw_output = subprocess.check_output([cuda_dir + "/bin/nvcc", "-V"], universal_newlines=True)
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with setup.py, especially the get_cuda_bare_metal_version call shown in the traceback, and reproduce the apex installation in the tox CD environment where CUDA is unavailable. Confirm the expected behavior for a missing CUDA toolkit; done means the tox installation no longer fails with the NoneType concatenation error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100