-
Notifications
You must be signed in to change notification settings - Fork 291
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
module 'pycodestyle' has no attribute 'missing_whitespace_around_operator' #689
Comments
I can't find a |
Running into this as well. I think https://pypi.org/project/pycodestyle/#history released a breaking change in 2.11.0 that is hitting this. As a temporary fix I'm able to pin pycodestyle to 2.10.0, but ideally autopep8 would be able to handle this out of the box now. |
hhatto/autopep8#689 With latest pycodestyle (2.11), we get the following error: AttributeError: module 'pycodestyle' has no attribute 'missing_whitespace_around_operator'. Did you mean: 'whitespace_around_operator'? autopep8 will need an update to match this. Until then, we have to stay back on 2.10
I can confirm that problem in our code checking also. We use
|
They changed their API in 2.11.0 and broke autopep8 See: hhatto/autopep8#689 and hhatto/autopep8#696
They changed their API in 2.11.0 and broke autopep8 See: hhatto/autopep8#689 and hhatto/autopep8#696
They changed their API in 2.11.0 and broke autopep8 See: hhatto/autopep8#689 and hhatto/autopep8#696
Add it to tox.ini and pin pycodestyle to 2.10.0 until it has been updated to fix: hhatto/autopep8#689 and hhatto/autopep8#696 Add python-3.12.0-rc.1 to the github workflow, and updated the Ubuntu runner to version 22.04
Add it to tox.ini and pin pycodestyle to 2.10.0 until it has been updated to fix: hhatto/autopep8#689 and hhatto/autopep8#696 Add python-3.12.0-rc.1 to the github workflow Do not switch to Ubuntu 22.04, it does not have python3.6 available and we still need to test with it.
Add it to tox.ini and pin pycodestyle to 2.10.0 until it has been updated to fix: hhatto/autopep8#689 and hhatto/autopep8#696 Add python-3.12.0-rc.1 to the github workflow Do not switch to Ubuntu 22.04, it does not have python3.6 available and we still need to test with it.
They changed their API in 2.11.0 and broke autopep8 See: hhatto/autopep8#689 and hhatto/autopep8#696
They changed their API in 2.11.0 and broke autopep8 See: hhatto/autopep8#689 and hhatto/autopep8#696
Fixes LiberTEM#1490; workaround for hhatto/autopep8#689
Fixes #1490; workaround for hhatto/autopep8#689
There are several pull requests for this; #699, #696, #691, #690 are all the same. I suggest someone look into this comment and push their PR forward with a solution. |
This is a possible solution that allows pycodestyle >= 2.11.0. |
For the records, I had the same problem with pycodestyle 2.10.0. Just now, I tried it with 2.11.1 and it seems to be solved. |
Is solution to this error avaiable now or we have to wait? Errors still remains on my setup (python 3.11) : |
This problem is solved in https://github.com/hhatto/autopep8/pull/699/files. Please add a new issue if you have problems. Please include a code example of when the problem occurs. |
I got this problem with my pre-commit configuration, the solution was update the hook to the last version. pycodestyle==2.11.1
|
That worked, thanks ! |
Python Code
Command Line and Configuration
.pep8
,setup.cfg
, ...Command Line
$ autopep8 -a -a --in-place --recursive --exclude postgres,pgadmin,demo_data .
Your Environment
The text was updated successfully, but these errors were encountered: