-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 3.12 Error - 'frappe-manager package' #220
Comments
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? |
Tried installing python3.11 using ppa and created venv but then also I was able to install it. |
For me also same on iMac m1 :/ "ImportError: cannot import name 'exception' from 'sys' (unknown location)" |
This is how I fixed it on my M1
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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):
fm --version
lsb_release -a
docker version
docker-compose version
ordocker compose version
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.
The text was updated successfully, but these errors were encountered: