Skip to content

help(hashlib.blake2b) causes RuntimeError in 3.7 #78752

Closed

Description

@mcdallas
mannequin
BPO 34571
Nosy @tiran, @serhiy-storchaka, @mcdallas
Superseder
  • bpo-33729: Hashlib/blake2* missing 'data' keyword argument
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2018-09-03.15:21:59.490>
    created_at = <Date 2018-09-03.15:12:37.788>
    labels = ['3.7', 'type-bug', 'library']
    title = 'help(hashlib.blake2b) causes RuntimeError in 3.7'
    updated_at = <Date 2018-09-03.15:21:59.488>
    user = 'https://github.com/mcdallas'

    bugs.python.org fields:

    activity = <Date 2018-09-03.15:21:59.488>
    actor = 'serhiy.storchaka'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-09-03.15:21:59.490>
    closer = 'serhiy.storchaka'
    components = ['Library (Lib)']
    creation = <Date 2018-09-03.15:12:37.788>
    creator = 'mcdallas'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 34571
    keywords = []
    message_count = 2.0
    messages = ['324524', '324525']
    nosy_count = 3.0
    nosy_names = ['christian.heimes', 'serhiy.storchaka', 'mcdallas']
    pr_nums = []
    priority = 'normal'
    resolution = 'out of date'
    stage = 'resolved'
    status = 'closed'
    superseder = '33729'
    type = 'behavior'
    url = 'https://bugs.python.org/issue34571'
    versions = ['Python 3.7']

    Activity

    1. mcdallas commented on Sep 3, 2018

      mcdallasmannequin
      MannequinAuthor
      $ python3.7                                                                       
      Python 3.7.0 (default, Jul 23 2018, 20:22:55)
      [Clang 9.1.0 (clang-902.0.39.2)] on darwin
      Type "help", "copyright", "credits" or "license" for more information.
      >>> import hashlib
      >>> help(hashlib.blake2b)
      Traceback (most recent call last):
        File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/inspect.py", line 1996, in wrap_value
          value = eval(s, module_dict)
        File "<string>", line 1, in <module>
      NameError: name '_blake2b' is not defined
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/inspect.py", line 1999, in wrap_value
          value = eval(s, sys_module_dict)
        File "<string>", line 1, in <module>
      NameError: name '_blake2b' is not defined
      
      During handling of the above exception, another exception occurred:
      
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/_sitebuiltins.py", line 103, in __call__
          return pydoc.help(*args, **kwds)
        File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/pydoc.py", line 1895, in __call__
          self.help(request)
        File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/pydoc.py", line 1954, in help
          else: doc(request, 'Help on %s:', output=self._output)
        File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/pydoc.py", line 1674, in doc
          pager(render_doc(thing, title, forceload))
        File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/pydoc.py", line 1667, in render_doc
          return title % desc + '\n\n' + renderer.document(object, name)
        File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/pydoc.py", line 386, in document
          if inspect.isclass(object): return self.docclass(*args)
        File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/pydoc.py", line 1237, in docclass
          signature = inspect.signature(object)
        File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/inspect.py", line 3070, in signature
          return Signature.from_callable(obj, follow_wrapped=follow_wrapped)
        File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/inspect.py", line 2820, in from_callable
          follow_wrapper_chains=follow_wrapped)
        File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/inspect.py", line 2343, in _signature_from_callable
          return _signature_fromstr(sigcls, obj, text_sig)
        File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/inspect.py", line 2067, in _signature_fromstr
          p(name, default)
        File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/inspect.py", line 2037, in p
          default_node = RewriteSymbolics().visit(default_node)
        File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ast.py", line 262, in visit
          return visitor(node)
        File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/inspect.py", line 2024, in visit_Attribute
          return wrap_value(value)
        File "/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/inspect.py", line 2001, in wrap_value
          raise RuntimeError()
      RuntimeError

      same for blake2s

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      type-bugAn unexpected behavior, bug, or error
      on Sep 3, 2018
    3. serhiy-storchaka commented on Sep 3, 2018

      @serhiy-storchaka
      Member

      It should be fixed in bpo-33729.

    4. transferred this issue fromon Apr 10, 2022
    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

      3.7 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or error

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions