Skip to content

EntryPoint objects are not pickleable #96

Closed

Description

@jaraco

In GitLab by @asottile on Nov 29, 2019, 01:08

importlib-metadata==0.23, python3.6

>>> import pickle
>>> import importlib_metadata
>>> ep = importlib_metadata.EntryPoint('foo', 'bar', 'baz')
>>> pickle.dumps(ep)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "<string>", line 41, in __getnewargs__
  File "/home/asottile/workspace/flake8/venv/lib/python3.6/site-packages/importlib_metadata/__init__.py", line 125, in __iter__
    return iter((self.name, self))
RecursionError: maximum recursion depth exceeded while calling a Python object

I'll need to do something else for flake8 it seems 🤔

Same happens in python3.8 -- should I report this to bpo instead for future issues?

Activity

  1. jaraco commented on Oct 22, 2020

    @jaraco
    MemberAuthor

    In GitLab by @asottile on Nov 29, 2019, 01:34

    mentioned in merge request pycqa/flake8!388

  2. jaraco commented on Oct 22, 2020

    @jaraco
    MemberAuthor

    In GitLab by @jaraco on Nov 30, 2019, 01:52

    should I report this to bpo instead for future issues?

    Personally, I prefer here for now.

  3. jaraco commented on Oct 22, 2020

    @jaraco
    MemberAuthor

    In GitLab by @jaraco on Nov 30, 2019, 01:56

    mentioned in commit 790dd9f

  4. jaraco commented on Oct 22, 2020

    @jaraco
    MemberAuthor

    In GitLab by @jaraco on Nov 30, 2019, 01:56

    mentioned in commit 1c114e2

  5. jaraco commented on Oct 22, 2020

    @jaraco
    MemberAuthor

    In GitLab by @jaraco on Nov 30, 2019, 01:58

    mentioned in commit 74c3e35

  6. jaraco commented on Oct 22, 2020

    @jaraco
    MemberAuthor

    In GitLab by @jaraco on Nov 30, 2019, 17:02

    mentioned in commit 5f8baf1bb0a1596011e4ad875e94f8a4d0c60a09

  7. jaraco commented on Oct 22, 2020

    @jaraco
    MemberAuthor

    In GitLab by @jaraco on Nov 30, 2019, 17:02

    mentioned in commit f2859b43ad88cb84572f12ba85c546d9dc72b6ff

  8. jaraco commented on Oct 22, 2020

    @jaraco
    MemberAuthor

    In GitLab by @jaraco on Nov 30, 2019, 17:30

    mentioned in commit cf13944a63ef3fb8577b3edc5ba247ad73d778a3

  9. jaraco commented on Oct 22, 2020

    @jaraco
    MemberAuthor

    In GitLab by @jaraco on Nov 30, 2019, 17:30

    mentioned in commit dc8a5372b2e6f1ed7f77d6a6551251e07968fc36

  10. jaraco commented on Oct 22, 2020

    @jaraco
    MemberAuthor

    In GitLab by @jaraco on Dec 1, 2019, 15:25

    I'm going to proceed with the surgical fix for this issue, but can re-explore a more substantive change in another ticket.

  11. jaraco commented on Oct 22, 2020

    @jaraco
    MemberAuthor

    In GitLab by @jaraco on Dec 1, 2019, 15:28

    closed via merge request !99

  12. jaraco commented on Oct 22, 2020

    @jaraco
    MemberAuthor

    In GitLab by @jaraco on Dec 1, 2019, 15:28

    mentioned in commit e226573

  13. added a commit that references this issue on Dec 21, 2023
    d4b3734
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions