Issue Installing "Press" App on Frappe - ImportError and App Not Showing

Hello,

I encounter issues while installing the “Press” app on my Frappe setup. Here are the details:

  1. Environment:

    • Frappe Version: v14
    • Python Version: 3.10
    • Bench Version: 5.22.9
    • Operating System: AWS Ubunt VM
  2. Problem Description:
    When attempting to install the “Press” app using the command:

    bench --site erp.skfinancial.com install-app press
    

    I encounter the following error:

    cannot import the name 'Data' from 'frappe.model.document' (/home/ubuntu/frappe-bench-new/apps/frappe/frappe/model/document.py)
    

    Additionally, after running the installation command, the “Press” app does not appear in the list of installed apps:

    bench --site erp.skfinancial.com list-apps
    
  3. Steps Taken:

    • I have tried reinstalling the app using:
      bench get-app press https://github.com/frappe/press.git
      
    • Re-run the install command:
      bench --site erp.skfinancial.com install-app press
      
    • Verified the app directory:
      ls ~/frappe-bench/apps/
      
  4. Logs and Errors:

    • The detailed error log indicates:
      ImportError: cannot import name 'Data' from 'frappe.model.document' (apps/frappe/frappe/model/document.py)
      

I would appreciate any assistance or guidance on resolving this issue.

Thank you!
Kamran Butt