Skip to content
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

ImportError: cannot import name '_get_column_letter' from 'openpyxl.utils.cell' #443

Closed
allakulov opened this issue Jun 5, 2024 · 2 comments
Assignees

Comments

@allakulov
Copy link

Importing flattentool causes the following error message:

ImportError: cannot import name '_get_column_letter' from 'openpyxl.utils.cell' (/usr/local/lib/python3.10/dist-packages/openpyxl/utils/cell.py)

Upon investigating the source code of openpyxl, it appears that a recent commit removed the initial underscore from _get_column_letter, renaming it to get_column_letter.

@jpmckinney

@Bjwebb Bjwebb self-assigned this Jun 12, 2024
Bjwebb added a commit that referenced this issue Jun 12, 2024
#443

There's no need for a conditional import as get_column_letter has
existed since at laest openpyxl 2.6.0, which is the earliest version we
support.
Bjwebb added a commit that referenced this issue Jun 12, 2024
#443

There's no need for a conditional import as get_column_letter has
existed since at laest openpyxl 2.6.0, which is the earliest version we
support.
@Bjwebb
Copy link
Member

Bjwebb commented Jun 12, 2024

Fixed in release 0.24.2 on PyPI.

@Bjwebb Bjwebb closed this as completed Jun 12, 2024
@jpmckinney
Copy link
Contributor

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants