Black: type object 'FileMode' has no attribute 'from_configuration'

Created on 13 Mar 2019  路  7Comments  路  Source: psf/black

Black https://github.com/ambv/black/commit/ea55ff

Playground link

Options

--line-length=60

Input

def command(CamelCaseArg, another_arg, Bad_Camelcase):
    print(CamelCaseArg)

Output

type object 'FileMode' has no attribute 'from_configuration'

Expected

Who knows? No info is given how to runthe plaground. Only an error message is displayed,w
which doesn't explain anything. -> type object 'FileMode' has no attribute 'from_configuration'

All 7 comments

This is probably a bug in the playground. from_configuration definitely does exist in this repo. I don't see anything obviously wrong in the code in https://github.com/jpadilla/black-playground; @jpadilla any ideas?

From what I can find, you just need to use the link https://black.now.sh/?version=master .
When using only https://black.now.sh/ (https://black.now.sh/?version=stable),
it appears to be normal and not as easy to provoke the error message.

Working on fixing this soon.

Just an FYI, both master and stable are giving this error now

Seems better now! Thanks to whoever rebooted the website /s

Confirming the issue is officially fixed, thank you all! 馃帀

Thanks!

Was this page helpful?
0 / 5 - 0 ratings