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

traceback on trying to load a hotshot stats file #42414

Closed
nanotube mannequin opened this issue Sep 25, 2005 · 3 comments
Closed

traceback on trying to load a hotshot stats file #42414

nanotube mannequin opened this issue Sep 25, 2005 · 3 comments
Labels
extension-modules C modules in the Modules dir type-bug An unexpected behavior, bug, or error

Comments

@nanotube
Copy link
Mannequin

nanotube mannequin commented Sep 25, 2005

BPO 1303673
Nosy @amauryfa
Superseder
  • bpo-900092: hotshot.stats.load fails with AssertionError
  • Files
  • pyk.prof
  • 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 2010-08-22.01:03:24.346>
    created_at = <Date 2005-09-25.01:46:11.000>
    labels = ['extension-modules', 'type-bug']
    title = 'traceback on trying to load a hotshot stats file'
    updated_at = <Date 2010-08-22.01:03:24.344>
    user = 'https://bugs.python.org/nanotube'

    bugs.python.org fields:

    activity = <Date 2010-08-22.01:03:24.344>
    actor = 'BreamoreBoy'
    assignee = 'none'
    closed = True
    closed_date = <Date 2010-08-22.01:03:24.346>
    closer = 'BreamoreBoy'
    components = ['Extension Modules']
    creation = <Date 2005-09-25.01:46:11.000>
    creator = 'nanotube'
    dependencies = []
    files = ['1794']
    hgrepos = []
    issue_num = 1303673
    keywords = []
    message_count = 3.0
    messages = ['26393', '89977', '114628']
    nosy_count = 3.0
    nosy_names = ['amaury.forgeotdarc', 'nanotube', 'BreamoreBoy']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'test needed'
    status = 'closed'
    superseder = '900092'
    type = 'behavior'
    url = 'https://bugs.python.org/issue1303673'
    versions = ['Python 2.6']

    @nanotube
    Copy link
    Mannequin Author

    nanotube mannequin commented Sep 25, 2005

    When trying to load a file generated by hotshotmain.py
    (attached), generates the following traceback:

    Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310
    32 bit (Intel)] on win32
    Type "help", "copyright", "credits" or "license" for
    more information.
    >>> import hotshot.stats
    >>> hotshot.stats.load("pyk.prof")
    Traceback (most recent call last):
      File "<stdin>", line 1, in ?
      File "C:\Python24\lib\hotshot\stats.py", line 12, in load
        return StatsLoader(filename).load()
      File "C:\Python24\lib\hotshot\stats.py", line 51, in load
        assert not self._stack
    AssertionError

    This happened with both python 2.4.1 and with python
    2.4.2 rc 1 on windows (just downloaded).

    Seems similar to bug [ 900092 ] hotshot.stats.load
    (link:
    https://sourceforge.net/tracker/?func=detail&atid=105470&aid=900092&group_id=5470
    )
    but according to that, bug has been closed, and patch
    has been applied to python 2.4.2. not sure if that
    applies also to 2.4.2 rc1

    Attaching the output file that caused it.

    @nanotube nanotube mannequin added stdlib Python modules in the Lib dir labels Sep 25, 2005
    @devdanzin devdanzin mannequin added extension-modules C modules in the Modules dir type-bug An unexpected behavior, bug, or error and removed stdlib Python modules in the Lib dir labels Mar 20, 2009
    @amauryfa
    Copy link
    Member

    amauryfa commented Jul 1, 2009

    It was indeed fixed with 2.4.2, but this does not correct the invalid
    statistics generated with 2.4.1.
    Running hotshotmain.py with a newer version should generate a correct file.

    @BreamoreBoy
    Copy link
    Mannequin

    BreamoreBoy mannequin commented Aug 22, 2010

    Hotshot is unmaintained and has been removed from py3k.

    @BreamoreBoy BreamoreBoy mannequin closed this as completed Aug 22, 2010
    @BreamoreBoy BreamoreBoy mannequin closed this as completed Aug 22, 2010
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    extension-modules C modules in the Modules dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant