#!/usr/bin/env python3
"""Simple script to test if gconcord imports correctly."""

import sys
import os

print(f"Python version: {sys.version}")
print(f"Python executable: {sys.executable}")
print(f"Current directory: {os.getcwd()}")
print(f"Python path: {sys.path}")

try:
    import gconcord
    print(f"\nSuccessfully imported gconcord")
    print(f"gconcord file: {gconcord.__file__}")
    print(f"gconcord version: {gconcord.__version__}")
    print(f"C++ bindings available: {gconcord._cpp_available}")
    
    if gconcord._cpp_available:
        print("\nTesting C++ imports:")
        print(f"ConcordSolver: {gconcord.ConcordSolver}")
        print(f"Algorithm: {gconcord.Algorithm}")
        print("All C++ components imported successfully!")
    else:
        print("\nWARNING: C++ bindings not available!")
        sys.exit(1)
        
except Exception as e:
    print(f"\nERROR importing gconcord: {e}")
    import traceback
    traceback.print_exc()
    sys.exit(1)

print("\nImport test passed!")