multimind-sdk icon indicating copy to clipboard operation
multimind-sdk copied to clipboard

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

Open Harsh-Desaii opened this issue 7 months ago • 0 comments

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

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

Harsh-Desaii avatar Jul 11 '25 13:07 Harsh-Desaii