Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#71356 - [python-black] blackd command doesn't work because of garbage symbols
Attached to Project:
Community Packages
Opened by Asger Hautop Drewsen (tyilo) - Friday, 25 June 2021, 10:40 GMT
Last edited by Daniel M. Capella (polyzen) - Friday, 25 June 2021, 21:47 GMT
Opened by Asger Hautop Drewsen (tyilo) - Friday, 25 June 2021, 10:40 GMT
Last edited by Daniel M. Capella (polyzen) - Friday, 25 June 2021, 21:47 GMT
|
DetailsDescription:
`blackd` can't be run as `/usr/bin/blackd` contains: ``` #!/usr/bin/python # -*- coding: utf-8 -*- import re import sys from blackd import patched_main [d] if __name__ == "__main__": sys.argv[0] = re.sub(r"(-script\.pyw|\.exe)?$", "", sys.argv[0]) sys.exit(patched_main [d]()) ``` Removing ` [d]` from both lines containing it fixes the problem. Additional info: * package version: 21.6b0-2 Steps to reproduce: - Install `python-blackd` - Run `blackd` |
This task depends upon
Closed by Daniel M. Capella (polyzen)
Friday, 25 June 2021, 21:47 GMT
Reason for closing: Fixed
Additional comments about closing: Thank you for investigating and filing an issue upstream.
https://github.com/archlinux/svntogit-co mmunity/commit/12cb39d76b34d3588cef93d4e cb0bffde1ceef66
Friday, 25 June 2021, 21:47 GMT
Reason for closing: Fixed
Additional comments about closing: Thank you for investigating and filing an issue upstream.
https://github.com/archlinux/svntogit-co mmunity/commit/12cb39d76b34d3588cef93d4e cb0bffde1ceef66
setuptools does not have this issue. There is no PyPA-recommended wheel installer CLI other than pip.