Skip to content
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

Open
4 tasks
nainikasingh opened this issue Jul 6, 2024 · 3 comments
Open
4 tasks

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

nainikasingh opened this issue Jul 6, 2024 · 3 comments

Comments

@nainikasingh
Copy link

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 or docker 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.

@Xieyt
Copy link
Collaborator

Xieyt commented Jul 14, 2024

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
Copy link
Collaborator

Xieyt commented Jul 14, 2024

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

@devbeno
Copy link

devbeno commented Aug 4, 2024

For me also same on iMac m1 :/ "ImportError: cannot import name 'exception' from 'sys' (unknown location)"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants