mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-23 16:54:56 +00:00
- Introduced `ATROPOS_INTEGRATION.md` for detailed instructions on using DynastAI with Atropos. - Added `INSTALL_AND_RUN.md` to guide users through installation and running the game. - Created `run_dynastai.py` for a simplified testing experience without full Atropos setup. - Implemented `setup.py` to manage dependencies and ensure compatibility. - Updated `requirements.txt` to include additional dependencies and version constraints. - Enhanced `README.md` with new sections on installation, running the game, and integration with Atropos. - Added installation verification script `verify_install.py` to check for required packages. - Updated game logic to support local card generation and improved API integration. - Enhanced web interface with new features for user interaction and game metrics display.
55 lines
1.7 KiB
Python
Executable file
55 lines
1.7 KiB
Python
Executable file
#!/usr/bin/env python3
|
|
"""
|
|
DynastAI Installation Verification Script
|
|
|
|
This script checks if all required packages are installed properly.
|
|
"""
|
|
|
|
import sys
|
|
import platform
|
|
import importlib.util
|
|
|
|
def check_module(module_name):
|
|
"""Check if a module is installed and report its version if available"""
|
|
try:
|
|
spec = importlib.util.find_spec(module_name)
|
|
if spec is None:
|
|
return False, None
|
|
|
|
module = importlib.import_module(module_name)
|
|
version = getattr(module, "__version__", "Unknown")
|
|
return True, version
|
|
except ImportError:
|
|
return False, None
|
|
|
|
def main():
|
|
print(f"Python version: {platform.python_version()}")
|
|
print(f"Platform: {platform.platform()}")
|
|
print("\nChecking required modules:")
|
|
|
|
required_modules = [
|
|
"fastapi", "uvicorn", "pydantic", "requests", "httpx",
|
|
"python_multipart", "uuid", "aiohttp", "jinja2",
|
|
"tqdm", "numpy", "wandb", "datasets"
|
|
]
|
|
|
|
all_found = True
|
|
for module in required_modules:
|
|
found, version = check_module(module)
|
|
status = f"✓ Found (version: {version})" if found else "✗ Not found"
|
|
print(f"- {module}: {status}")
|
|
if not found:
|
|
all_found = False
|
|
|
|
# Special check for built-in uuid module which is critical
|
|
if not check_module("uuid")[0]:
|
|
print("\nWARNING: The UUID module is missing. This is a built-in Python module and should be available.")
|
|
all_found = False
|
|
|
|
if all_found:
|
|
print("\nAll required packages are installed! You should be able to run DynastAI successfully.")
|
|
else:
|
|
print("\nSome packages are missing. Run 'python setup.py' to install them.")
|
|
|
|
if __name__ == "__main__":
|
|
main()
|