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

boltons.ecoutils.pprint error on Python 3.10 #361

Closed
ian-kelling opened this issue Sep 28, 2022 · 7 comments
Closed

boltons.ecoutils.pprint error on Python 3.10 #361

ian-kelling opened this issue Sep 28, 2022 · 7 comments
Assignees
Labels
🐛 bug Something isn't working, or a fix is proposed

Comments

@ian-kelling
Copy link

ian-kelling commented Sep 28, 2022

Traceback (most recent call last):
  File "/home/iank/.local/bin/mdedup", line 5, in <module>
    from mail_deduplicate.cli import mdedup
  File "/home/iank/.local/lib/python3.10/site-packages/mail_deduplicate/__init__.py", line 25, in <module>
    from boltons.ecoutils import get_profile
  File "/home/iank/.local/lib/python3.10/site-packages/boltons/ecoutils.py", line 357, in <module>
    _real_safe_repr = pprint._safe_repr
AttributeError: module 'pprint' has no attribute '_safe_repr'. Did you mean: 'saferepr'?

looks like it is related to newer python 3.10 than this was developed on

@kdeldycke
Copy link
Owner

kdeldycke commented Sep 29, 2022

Ah yes. Thanks for the report. I fixed this upstream in click-extra. I need to integrate the later to mail-deduplicate to modernize it a bit, but for the moment I'm focused on finishing what I started on meta-package-manager.

Alternative solutions:

@kdeldycke kdeldycke changed the title script immediately crashes with pprint error boltons.ecoutils.pprint error on Python 3.10 Sep 29, 2022
@danielhatton
Copy link

I think the Python upgrade that leads to this issue happens as part of the dist-upgrade from Ubuntu 20.04 to 22.04, so it'll be becoming very common right about now.

@kdeldycke kdeldycke added 🐛 bug Something isn't working, or a fix is proposed and removed bug labels Nov 23, 2022
@kdeldycke
Copy link
Owner

The issue has been fixed with a migration to click-extra. The fix is available in the brand new release of mail-deduplicate 7.0.0.

@danielhatton
Copy link

Just to confirm: working for me now.

@kdeldycke
Copy link
Owner

Thanks @danielhatton for taking the time to check for the fix! 👍

@ian-kelling
Copy link
Author

Also just want to say thank you!

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 bug Something isn't working, or a fix is proposed
Projects
None yet
Development

No branches or pull requests

3 participants