anthonyalmarza/chalk

chalk.stderr causes AttributeError in Python 3

Opened this issue · 1 comments

  File "/home/justin/git/hendrix/hendrix/ux.py", line 238, in main
    chalk.red(msg % (str(e), action), pipe=chalk.stderr)
builtins.AttributeError: 'module' object has no attribute 'stderr'

Hmm, it seems like this was broken when from sys import stderr was removed in commit 3df108f. One solution would be to import stderr into hendrix/ux.py and then change the code to

    chalk.red(msg % (str(e), action), pipe=stderr)