Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • A ADIOS2
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 97
    • Issues 97
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Podhorszki, Norbert
  • ADIOS2
  • Issues
  • #2040

Closed
Open
Created Mar 14, 2020 by Podhorszki, Norbert@pnbMaintainer

Cannot run bp4dbg

Created by: pnorbert

Describe the bug After installing adios2, I cannot run the bp4dbg utility because it fails with this error:

$ /opt/adios2/bin/bp4dbg localArray.bp/md.0
========================================================
    Metadata File: localArray.bp/md.0
========================================================
Traceback (most recent call last):
  File "/opt/adios2/bin/bp4dbg", line 105, in <module>
    DumpMetadataFiles(args)
  File "/opt/adios2/bin/bp4dbg", line 81, in DumpMetadataFiles
    DumpMetaData(fname)
  File "/opt/adios2/lib/python3/dist-packages/adios2/bp4dbg/metadata.py", line 607, in DumpMetaData
    status = bp4dbg_utils.ReadHeader(f, fileSize, "Metadata")
NameError: name 'bp4dbg_utils' is not defined

Additional context The bp4dbg scripts use bp4dbg_utils.FunctionName() to call the utility functions but they import them as

from .utils import *

The function calls cannot just be simply renamed to FunctionName() because there will be clashes with other functions:

Traceback (most recent call last):
  File "/opt/adios2/bin/bp4dbg", line 105, in <module>
    DumpMetadataFiles(args)
  File "/opt/adios2/bin/bp4dbg", line 81, in DumpMetadataFiles
    DumpMetaData(fname)
  File "/opt/adios2/lib/python3/dist-packages/adios2/bp4dbg/metadata.py", line 607, in DumpMetaData
    status = ReadHeader(f, fileSize, "Metadata")
TypeError: ReadHeader() takes 1 positional argument but 3 were given
Assignee
Assign to
Time tracking