wistful / SublimeAutoPEP8

Automatically formats Python code to conform to the PEP 8 style guide using autopep8 and pep8 modules
144 stars 23 forks source link

AttributeError: 'list' object has no attribute 'split' #61

Closed pamdla closed 5 years ago

pamdla commented 5 years ago

Hi there,

I got this error, AttributeError: 'list' object has no attribute 'split'.

Traceback (most recent call last):
  File "/Users/user/Library/Application Support/Sublime Text 3/Installed Packages/AutoPEP8.sublime-package/sublautopep8.py", line 175, in 
  File "/Users/user/Library/Application Support/Sublime Text 3/Installed Packages/AutoPEP8.sublime-package/sublautopep8.py", line 137, in pep8_params
AttributeError: 'list' object has no attribute 'split'

What is wrong with my installation or this package?

Surprisingly, I cannot find this package folder 'AutoPEP8.sublime-package' while it is just a file.

Cheers,

ac130kz commented 5 years ago

I got the same error (Ubuntu 18.04), seems like either the package is broken, or it somehow interacts with the system-wide Python installation, which can explain the AttributeError.

wistful commented 5 years ago

Please double-check settings: The options "ignore" and "select" must be comma-separated strings not lists of strings. E.g. "ignore": "E305,E24" instead of "ignore": ["E305", "E24"].

pamdla commented 5 years ago

Thank you, you are absolutely right. This error/issue is fixed.