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

Python 3.10 ecoutils error: module pprint has no attribute _safe_repr #294

Closed
kdeldycke opened this issue Oct 5, 2021 · 3 comments
Closed

Comments

@kdeldycke
Copy link
Contributor

I just stumble upon an issue with ecoutils. On Python 3.10 (which was just released today), I get the following error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/hostedtoolcache/Python/3.10.0/x64/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/home/runner/work/meta-package-manager/meta-package-manager/meta_package_manager/__init__.py", line 22, in <module>
    from boltons.ecoutils import get_profile
  File "/home/runner/.cache/pypoetry/virtualenvs/meta-package-manager-r0mh58YI-py3.10/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'?

Source: https://github.com/kdeldycke/meta-package-manager/runs/3802697005?check_suite_focus=true#step:33:27

kdeldycke added a commit to kdeldycke/meta-package-manager that referenced this issue Oct 6, 2021
While we wait for mahmoud/boltons#294 to be addressed upstream.
@mahmoud
Copy link
Owner

mahmoud commented Oct 11, 2021

good callout! made a fix, probably should have been structured this way originally. thank you!

kdeldycke added a commit to kdeldycke/meta-package-manager that referenced this issue Oct 11, 2021
@kdeldycke
Copy link
Contributor Author

Thanks @mahmoud for the quick fix! I'll use the tip of the main branch until the next release then! 😎👍

kdeldycke added a commit to kdeldycke/click-extra that referenced this issue Oct 23, 2021
kdeldycke added a commit to kdeldycke/click-extra that referenced this issue Oct 27, 2021
We'll simply temporarily ignore Python 3.10 tests.
Refs mahmoud/boltons#294
kdeldycke added a commit to kdeldycke/meta-package-manager that referenced this issue Oct 27, 2021
We'll simply temporarily ignore Python 3.10 tests for now.
Refs mahmoud/boltons#294
kdeldycke added a commit to kdeldycke/meta-package-manager that referenced this issue Oct 28, 2021
Python 3.10 is broken while we wait for mahmoud/boltons#294
kdeldycke added a commit to kdeldycke/meta-package-manager that referenced this issue Dec 11, 2021
@kdeldycke
Copy link
Contributor Author

kdeldycke commented Feb 13, 2022

Hey @mahmoud, do you have any plan to publish a new release of boltons? Some of my users are starting to noticing this error on Python 3.10. 😅

kdeldycke added a commit to kdeldycke/click-extra that referenced this issue Mar 3, 2022
…esults for python >= 3.10

Addresses kdeldycke/meta-package-manager#467 while waiting for mahmoud/boltons#294 to be released upstream.
kdeldycke added a commit to kdeldycke/meta-package-manager that referenced this issue Mar 3, 2022
Bump to click-extra 1.6.2 which is temporarily fixing mahmoud/boltons#294 .
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

2 participants