Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.
This repository was archived by the owner on May 13, 2025. It is now read-only.

Issue with Module Import: serial Not Appearing in crypten.common #513

@Lockerns

Description

@Lockerns

Issue with Module Import: serial Not Appearing in crypten.common

Description

I encountered an issue with the crypten.common module where the serial module is not being exposed correctly, even though it is included in the __all__ list in __init__.py.

Details

  • File Structure:

    • crypten/common/serial.py exists.
    • crypten/common/__init__.py contains:
      __all__ = ["functions", "rng", "tensor_types", "util", "serial"]
  • Code to Reproduce:

    import crypten.common
    print(dir(crypten.common))
  • Observed Output:

    ['__all__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'rng', 'tensor_types', 'util']
  • Expected Output:

    ['__all__', '__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'rng', 'tensor_types', 'util', 'serial']

It appears that serial is not being imported or exposed correctly within the crypten.common namespace.

Additional Information

  • Python version: [3.7]
  • Operating system: [Ubuntu 22.04]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions