As usual, a new issue has arisen with installing Mailman 3. It seems Postorius and Hyperkitty want to install a module called cryptography. Which I am unable to install because of this:
error: Can not find Rust compiler
Question 1: Is cryptography a new addition to Hyperkitty/Postorius? Or was cryptography always included and something else is different about my installation process?
"Building wheels for collected packages: hyperkitty, django-haystack, django-mailman3, mailmanclient, robot-detection, rcssmin, django-allauth, cryptography"
Question 2: Will Hyperkitty/Postorius work without cryptography? I haven't proceed with this installation once I received the above error.
Question 3: Are there any Mailman 3/Postorius/HK documentation that addresses with the installation of cryptography?
-- Brian Carpenter Harmonylists.com Emwd.com
On Sat, Feb 20, 2021, at 8:51 AM, Brian Carpenter wrote:
As usual, a new issue has arisen with installing Mailman 3. It seems Postorius and Hyperkitty want to install a module called cryptography. Which I am unable to install because of this:
error: Can not find Rust compiler
You need to install a Rust compiler. Depending on which distro you are
using, you can run sudo apt install rustc
or same command with yum
.
Question 1: Is cryptography a new addition to Hyperkitty/Postorius? Or was cryptography always included and something else is different about my installation process?
It was always included. The recent change has been in the underlying security library to use Rust language in some parts of it. That has resulting in 100s and 1000s of applications/CI and other stuff failing. The fix is quite simple in most cases, just install rust compiler.
"Building wheels for collected packages: hyperkitty, django-haystack, django-mailman3, mailmanclient, robot-detection, rcssmin, django-allauth, cryptography"
Question 2: Will Hyperkitty/Postorius work without cryptography? I haven't proceed with this installation once I received the above error.
It is a transitive dependency for P/HK and is required by django-allauth. I don't think you can skip it.
Question 3: Are there any Mailman 3/Postorius/HK documentation that addresses with the installation of cryptography?
Since this issue arose about 2 weeks ago, there isn't anything there yet.
-- Brian Carpenter Harmonylists.com Emwd.com
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj (maxking)
On Sat, Feb 20, 2021, at 9:28 AM, Abhilash Raj wrote:
On Sat, Feb 20, 2021, at 8:51 AM, Brian Carpenter wrote:
As usual, a new issue has arisen with installing Mailman 3. It seems Postorius and Hyperkitty want to install a module called cryptography. Which I am unable to install because of this:
error: Can not find Rust compiler
You need to install a Rust compiler. Depending on which distro you are using, you can run
sudo apt install rustc
or same command withyum
.
Also, it is possible depending on your distro that packaged Rust compiler is too old. cryptography requires a more recent version of Compiler, 1.45 is the min supported version I think.
FAQ: https://cryptography.io/en/latest/faq.html#installing-cryptography-fails-wit...
You can skip the Rust components by setting CRYPTOGRAPHY_DONT_BUILD_RUST
but that would work just for this release and you won't be able to
skip from the next release of cryptography.
Question 1: Is cryptography a new addition to Hyperkitty/Postorius? Or was cryptography always included and something else is different about my installation process?
It was always included. The recent change has been in the underlying security library to use Rust language in some parts of it. That has resulting in 100s and 1000s of applications/CI and other stuff failing. The fix is quite simple in most cases, just install rust compiler.
"Building wheels for collected packages: hyperkitty, django-haystack, django-mailman3, mailmanclient, robot-detection, rcssmin, django-allauth, cryptography"
Question 2: Will Hyperkitty/Postorius work without cryptography? I haven't proceed with this installation once I received the above error.
It is a transitive dependency for P/HK and is required by django-allauth. I don't think you can skip it.
Question 3: Are there any Mailman 3/Postorius/HK documentation that addresses with the installation of cryptography?
Since this issue arose about 2 weeks ago, there isn't anything there yet.
-- Brian Carpenter Harmonylists.com Emwd.com
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj (maxking)
-- thanks, Abhilash Raj (maxking)
Abhilash Raj wrote:
On Sat, Feb 20, 2021, at 9:28 AM, Abhilash Raj wrote:
On Sat, Feb 20, 2021, at 8:51 AM, Brian Carpenter wrote:
As usual, a new issue has arisen with installing Mailman 3. It seems Postorius and Hyperkitty want to install a module called cryptography. Which I am unable to install because of this:
error: Can not find Rust compiler
You need to install a Rust compiler. Depending on which distro you are using, you can run
sudo apt install rustc
or same command withyum
.
[...]
FAQ: https://cryptography.io/en/latest/faq.html#installing-cryptography-fails-wit...
You can skip the Rust components by setting
CRYPTOGRAPHY_DONT_BUILD_RUST
but that would work just for this release and you won't be able to skip from the next release of cryptography.
Its also possible to install an older version of Cryptography before installing Mailman dependencies which doesn't require this. Version 3.3.2 is the version I have been using recently at work.
On a side note I have been experimenting with using underlying Debian packages for some of the Python dependencies and using the --system-site-packages option when creating the venv to simplify installation and reduce the number of compilation tools required on the system.
Thanks. Andrew.
On 2/20/21 12:35 PM, Abhilash Raj wrote:
Also, it is possible depending on your distro that packaged Rust compiler is too old. cryptography requires a more recent version of Compiler, 1.45 is the min supported version I think.
FAQ:https://cryptography.io/en/latest/faq.html#installing-cryptography-fails-wit...
You can skip the Rust components by setting
CRYPTOGRAPHY_DONT_BUILD_RUST
but that would work just for this release and you won't be able to skip from the next release of cryptography.
I am going to need further assistance here. It is easy enought to install the rust compiler using rustup but I am still getting the same error:
=============================DEBUG ASSISTANCE=============================
If you are seeing a compilation error please try the following
steps to
successfully install cryptography:
1) Upgrade to the latest pip and try again. This will fix
errors for most
users. See:
https://pip.pypa.io/en/stable/installing/#upgrading-pip
2) Read https://cryptography.io/en/latest/installation.html for
specific
instructions for your platform.
3) Check our frequently asked questions for more information:
https://cryptography.io/en/latest/faq.html
4) Ensure you have a recent Rust toolchain installed:
https://cryptography.io/en/latest/installation.html#rust
5) If you are experiencing issues with Rust for *this release
only* you may
set the environment variable CRYPTOGRAPHY_DONT_BUILD_RUST=1
.
=============================DEBUG
ASSISTANCE=============================
error: Can not find Rust compiler
Running root@list:/opt/mailman/mm# rustc --version returns:
rustc 1.50.0 (cb75ad5db 2021-02-10)
I am doing this as the mailman user using a virtual environment.
-- Brian Carpenter Harmonylists.com Emwd.com
On Sat, Feb 20, 2021, at 9:53 AM, Brian Carpenter wrote:
On 2/20/21 12:35 PM, Abhilash Raj wrote:
Also, it is possible depending on your distro that packaged Rust compiler is too old. cryptography requires a more recent version of Compiler, 1.45 is the min supported version I think.
FAQ: https://cryptography.io/en/latest/faq.html#installing-cryptography-fails-wit...
You can skip the Rust components by setting CRYPTOGRAPHY_DONT_BUILD_RUST
but that would work just for this release and you won't be able to
skip from the next release of cryptography.
I am going to need further assistance here. It is easy enought to install the rust compiler using rustup but I am still getting the same error:
=============================DEBUG ASSISTANCE============================= If you are seeing a compilation error please try the following steps to successfully install cryptography: 1) Upgrade to the latest pip and try again. This will fix errors for most users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip 2) Read https://cryptography.io/en/latest/installation.html for specific instructions for your platform. 3) Check our frequently asked questions for more information: https://cryptography.io/en/latest/faq.html 4) Ensure you have a recent Rust toolchain installed: https://cryptography.io/en/latest/installation.html#rust 5) If you are experiencing issues with Rust for *this release only* you may set the environment variable
CRYPTOGRAPHY_DONT_BUILD_RUST=1
. =============================DEBUG ASSISTANCE=============================error: Can not find Rust compiler
Could it be an issue with your PATH not set correctly for mailman user?
Install Rust - Rust Programming Language (rust-lang.org) <https://www.rust-lang.org/tools/install>
See the setting the PATH environment.
Running root@list:/opt/mailman/mm# rustc --version returns:
rustc 1.50.0 (cb75ad5db 2021-02-10)
I am doing this as the mailman user using a virtual environment.
-- Brian Carpenter Harmonylists.com Emwd.com
-- thanks, Abhilash Raj (maxking)
On 2/20/21 1:01 PM, Abhilash Raj wrote:
Could it be an issue with your PATH not set correctly for mailman user?
Install Rust - Rust Programming Language (rust-lang.org) <https://www.rust-lang.org/tools/install>
See the setting the PATH environment.
I don't think so. According to https://cryptography.io/en/latest/installation.html I needed to install additional packages. Thank you for pointing me in the right direction.
-- Brian Carpenter Harmonylists.com Emwd.com
On 2/20/21 12:53 PM, Brian Carpenter wrote:
I am going to need further assistance here. It is easy enought to install the rust compiler using rustup but I am still getting the same error:
There were additional packages I needed to install for my Debian 10 server according to https://cryptography.io/en/latest/installation.html:
sudo apt-get install build-essential libssl-dev libffi-dev python3-dev cargo
Do you think I need to add these steps to my How to Install Mailman 3 on Debian 10 documentation?
https://wiki.list.org/DOC/Howto_Install_Mailman3_On_Debian10
-- Brian Carpenter Harmonylists.com Emwd.com
On 2/20/21 10:02 AM, Brian Carpenter wrote:
Do you think I need to add these steps to my How to Install Mailman 3 on Debian 10 documentation?
https://wiki.list.org/DOC/Howto_Install_Mailman3_On_Debian10
I think it would be good.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (4)
-
Abhilash Raj
-
Andrew Hodgson
-
Brian Carpenter
-
Mark Sapiro