offload / README_FIXES.md
osamabyc86's picture
Upload 65 files
e5724fa verified

A newer version of the Gradio SDK is available: 6.5.1

Upgrade
# AmalOffload v6 — Fix Pack

تم إنشاء نسخة مُرقّعة من المشروع مع إصلاحات أساسية تمنع الأعطال الفورية وتسهّل التشغيل.

## ما الذي تم إصلاحه؟
- autostart_config.py: dedup import of PORT
  • background_service.py: dedup import of PORT

  • central_manager.py: dedup import of PORT

  • control.py: dedup import of PORT

  • dashboard.py: dedup import of PORT

  • DeviceManager.py: dedup import of PORT

  • distributed_executor.py: dedup import of PORT

  • dts_cli.py: dedup import of PORT

  • enhanced_assistant.py: dedup import of PORT

  • external_server.py: dedup import of PORT

  • internet_scanner.py: dedup import of PORT

  • launcher.py: dedup import of PORT

  • live_streaming.py: dedup import of PORT

  • load_balancer.py: dedup import of PORT

  • peer_registry.py: dedup import of PORT

  • peer_server.py: dedup import of PORT

  • remote_executor.py: dedup import of PORT

  • rpc_server.py: dedup import of PORT

  • security_layer.py: dedup import of PORT

  • server.py: dedup import of PORT

  • smart_tasks.py: dedup import of PORT

  • system_check.py: dedup import of PORT

  • system_tray.py: dedup import of PORT

  • task_splitter.py: dedup import of PORT

  • test_distributed_system.py: dedup import of PORT

  • test_monitor.py: dedup import of PORT

  • video_processing.py: dedup import of PORT

  • your_tasks.py: dedup import of PORT

  • control.py: fixed broken import line

  • dts_cli.py: rewritten to a minimal, valid CLI

  • ram_manager.py: removed BOM

  • templates/dashboard.html: created from index.html

  • config.py: added as a single source of truth for PORT

    توصيات إضافية (يدويّة)

    • أضِف fastapi وuvicorn إلى requirements.txt إذا أردت تشغيل central_manager.py (يستخدم FastAPI).
    • وحّد استيراد المنفذ عبر:
      from config import PORT
      
      واستبدل أي استخدام لـ from peer_discovery import PORT, PORT أو CPU_PORT حسب الحاجة.
    • إن ظهرت مشكلة TemplateNotFound: dashboard.html فقد تم إنشاء templates/dashboard.html تلقائياً.
    • يُفضّل تنظيف requirements.txt من التكرارات (انظر التوصيات في تقرير التدقيق).
    • اختر نقطة دخول واحدة للمشروع (مثلاً: launcher.py أو startup.py) وتجنّب تشغيل أكثر من خادم في نفس العملية.

    التشغيل السريع المقترح

    1. ثبّت المتطلبات (الأساسية فقط):
      pip install flask flask_cors flask_socketio requests psutil zeroconf cryptography numpy networkx GPUtil python-dotenv
      
    2. شغّل الـ Dashboard وخادم RPC معاً:
      python dts_cli.py start
      

    بالتوفيق!