Community Packages

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!
Tasklist

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
Task Type Bug Report
Category Packages
Status Closed
Assigned To Daniel M. Capella (polyzen)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

`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
Comment by Asger Hautop Drewsen (tyilo) - Friday, 25 June 2021, 10:50 GMT Comment by Eli Schwartz (eschwartz) - Friday, 25 June 2021, 14:12 GMT
This is why we should be following the python package guidelines and not using WIP beta wrappers!

setuptools does not have this issue. There is no PyPA-recommended wheel installer CLI other than pip.

Loading...