Python Forum
SOLVED: Install mailer module in Python 3.11.2?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SOLVED: Install mailer module in Python 3.11.2?
#1
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.
Reply
#2
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
Reply
#3
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]
Reply
#4
We only had one obtuse piece of code that was generating email. The email it was sending was not very useful. Our solution was to simply remove the email requirement in our code. Now we don't need a mailer module any longer for this code.

Should we need a mailer in the future, we will investigate which module to use at that point.

Thanks folks!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question [SOLVED] Upgraded Python: Module no longer found Winfried 1 1,168 Jan-01-2025, 02:43 PM
Last Post: Larz60+
  Install a module to a specific to Python Installation (one of many)) tester_V 2 2,094 Oct-29-2024, 03:25 PM
Last Post: snippsat
  [SOLVED] Tkinter module not found Milan 7 50,628 Aug-05-2022, 09:45 PM
Last Post: woooee
  No Module found in other directory than source code [SOLVED] AlphaInc 1 3,261 Nov-10-2021, 04:34 PM
Last Post: AlphaInc
  Can't install nor import delorean module Tek 3 4,229 Oct-27-2021, 03:32 AM
Last Post: Tek
  Unable to install module rrowhe4d 1 2,938 Oct-13-2020, 10:20 AM
Last Post: Larz60+
  trying to pip install stasm module getting error djf123 3 5,443 Jul-26-2020, 05:00 AM
Last Post: millpond
  Install thresding module kalvarix 2 2,918 May-04-2020, 03:25 PM
Last Post: kalvarix
  Install module with pip3 on a non root user matthewpintor2107 1 3,117 Apr-28-2020, 03:16 PM
Last Post: pyzyx3qwerty
  How do I install the dom.minidom module? Johno 3 8,943 Apr-17-2020, 09:46 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020