Python Forum
Install mailer module in Python 3.11.2?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can't install nor import delorean module Tek 3 2,998 Oct-27-2021, 03:32 AM
Last Post: Tek
  Unable to install module rrowhe4d 1 2,391 Oct-13-2020, 10:20 AM
Last Post: Larz60+
  trying to pip install stasm module getting error djf123 3 4,646 Jul-26-2020, 05:00 AM
Last Post: millpond
  Install thresding module kalvarix 2 2,289 May-04-2020, 03:25 PM
Last Post: kalvarix
  Install module with pip3 on a non root user matthewpintor2107 1 2,547 Apr-28-2020, 03:16 PM
Last Post: pyzyx3qwerty
  How do I install the dom.minidom module? Johno 3 7,391 Apr-17-2020, 09:46 PM
Last Post: Larz60+
  Install module without "pip" hjk6734 2 11,331 Apr-09-2020, 09:09 AM
Last Post: buran
  how to import a module which is installed to personal folder using pip install --pre? geekgeek 2 2,534 Mar-09-2020, 02:38 PM
Last Post: geekgeek
  Can a module be executed even if the computer running it does not install it? CFYB 5 3,567 Feb-08-2020, 01:56 PM
Last Post: snippsat
  Cannot pip install py-xml module kump 3 7,195 Jul-23-2019, 02:42 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

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