Skip to content

Import Error: No module named 'cryptography.zkp' in multiple example scripts #48

@Harsh-Desaii

Description

@Harsh-Desaii

Bug Description

Several example scripts in the examples/compliance/ directory fail to run due to missing modules like cryptography.zkp. The standard Python cryptography library does not contain submodules such as zkp, dp, federated, or homomorphic, which are imported in multimind/compliance/advanced.py.

This causes an ImportError when attempting to run scripts that depend on multimind.compliance.model_training.

To Reproduce

Steps to reproduce the behavior:

  1. Install the package using pip:
    pip install multimind-sdk
    
  2. Run the following script:
    python examples/compliance/healthcare/clinical_trial_compliance.py
    

Expected Behavior

Example scripts should run without import errors, or the required dependencies/modules should be clearly documented or included.

Environment

  • OS: Windows 11
  • Python Version: 3.13.0
  • MultiMind SDK Version: 0.2.1
  • CUDA Version: N/A
  • GPU Model: N/A

Error Message

 File "C:\Users\NIRAL\Desktop\Test\examples\compliance\healthcare\clinical_trial_compliance.py", line 17, in <module>
    from multimind.compliance.model_training import (...)
  File "C:\Users\NIRAL\Desktop\Test\venv\Lib\site-packages\multimind\compliance\advanced.py", line 10, in <module>
    from cryptography.zkp import ZeroKnowledgeProof
ModuleNotFoundError: No module named 'cryptography.zkp'

Code Snippet

from multimind.compliance.model_training import (
train_compliance_model,
evaluate_model,
)

Additional Context

The file multimind/compliance/advanced.py contains imports such as:

from cryptography.zkp import ZeroKnowledgeProof

However, these submodules (zkp, dp, federated, etc.) are not part of the standard cryptography library. Either these are custom modules not published, or placeholder code not yet implemented.

This error occurs in multiple example scripts under the examples/compliance directory and blocks users from running and testing them.

Checklist

  • I have searched the existing issues for similar bugs
  • I have checked the documentation for relevant information
  • I have provided a minimal reproducible example
  • I have included all relevant environment details
  • I have added appropriate labels to this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions