rtCamp / Frappe-Manager

A CLI tool based on Docker Compose to easily manage Frappe based projects.
MIT License
87 stars 19 forks source link

Python 3.12 Error - 'frappe-manager package' #220

Open nainikasingh opened 1 week ago

nainikasingh commented 1 week ago

This issue tracker is only for issues related to Frappe-Manager. Please use https://github.com/rtcamp/frappe-manager/discussions for support questions.

Describe the bug An error while trying to install the frappe-manager package using pip. The installation process fails during the metadata generation step for the 'cloudflare' package. The error seems to be related to the 'pkgutil' module, which does not have the attribute 'ImpImporter'.

To Reproduce

1. Uninstall Python 3.12: sudo apt remove python3.12

2. Install Python 3.11: sudo apt update sudo apt install python3.11 python3.11-venv python3.11-dev

3. Create a virtual environment (optional but recommended): python3.11 -m venv myenv source myenv/bin/activate Install frappe-manager again:

4. Install frappe-manager again: pip install frappe-manager

Expected behavior The error you're encountering is due to a change in Python 3.12 where the ImpImporter class was removed from the pkgutil module. To resolve this issue, you can downgrade your Python version to 3.11 or lower, or you can apply a patch to the affected package.

System information (please complete the following information):

Additional Information If you prefer to use Python 3.12, you'll need to wait for the package maintainers to update the affected packages to be compatible with Python 3.12 or manually patch the package yourself.

Xieyt commented 5 days ago

I am unable to reproduce this issue on Ubuntu 24.04 LTS. Should I try a different OS? Also, installing Python 3.11 seems to require a PPA. Am I missing something?

Xieyt commented 5 days ago

Tried installing python3.11 using ppa and created venv but then also I was able to install it.