Python Forum
Install mailer module in Python 3.11.2? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Install mailer module in Python 3.11.2? (/thread-42289.html)



Install mailer module in Python 3.11.2? - Calab - Jun-11-2024

Is it possible to install the mailer module in Python 3.11.2?

We have a script currently running in Python 3.7 that we want to move to 3.11. One of the requirements is the mailer module.

When I try to install mailer with pi I get the following error:

Error:
pip3.11 install mailer Collecting mailer Using cached mailer-0.8.1.zip (6.5 kB) Installing build dependencies ... done Getting requirements to build wheel ... error error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [1 lines of output] error in mailer setup command: use_2to3 is invalid. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip.
I have tried downgrading setuptools to v57, but that did not help. I currently have setuptools v70 installed.


RE: Install mailer module in Python 3.11.2? - Calab - Jun-12-2024

This is a more detailed error that I get when using the -vvv flag for pip:

Error:
Running setup.py (path:/tmp/pip-install-cgvj7eu9/mailer_190680dc590747a78241f63c88fe0d35/setup.py) egg_info for package mailer Created temporary directory: /tmp/pip-pip-egg-info-irk5h71p Running command python setup.py egg_info error in mailer setup command: use_2to3 is invalid. error: subprocess-exited-with-error



RE: Install mailer module in Python 3.11.2? - snippsat - Jun-12-2024

Look at date mailer 0.8.1 2015.
There is no update,and link to source code don't work.
This is a clear sign that you should not use it.

Try switch to yagmail it's been one the best mail client for Python for many years now.
pip install yagmail[all]