Closed kimdiallo closed 1 year ago
Try adding urllib3<2
to the pip install
.
@rikroe that seems to have sorted the urllib3 problem....now there's another
Traceback (most recent call last):
File "/home/$USER/.local/bin/master", line 33, in
pip3.8 install --upgrade setuptools
using this command meant that the error has now changed from containing
/usr/lib/python3.8/site-packages/[...]
to containing
/home/$USER/.local/lib/python3.8/site-packages/[...]
I'm not really sure what to make of this. The changes to setuptools were actually only made to the user environment as far as I saw...
New error:
Traceback (most recent call last): File "/home/$USER/.local/bin/master", line 33, in
sys.exit(load_entry_point('mailman==3.3.8', 'console_scripts', 'master')()) File "/home/$USER/.local/lib/python3.8/site-packages/click/core.py", line 1130, in call return self.main(args, kwargs) File "/home/$USER/.local/lib/python3.8/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/home/$USER/.local/lib/python3.8/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, ctx.params) File "/home/$USER/.local/lib/python3.8/site-packages/click/core.py", line 760, in invoke return __callback(args, kwargs) File "/home/$USER/.local/lib/python3.8/site-packages/mailman/bin/master.py", line 576, in main initialize(config_file, verbose) File "/home/$USER/.local/lib/python3.8/site-packages/mailman/core/initialize.py", line 229, in initialize initialize_2(propagate_logs=propagate_logs) File "/home/$USER/.local/lib/python3.8/site-packages/mailman/core/initialize.py", line 198, in initialize_2 initialize_pipelines() File "/home/$USER/.local/lib/python3.8/site-packages/mailman/core/pipelines.py", line 73, in initialize add_components('handlers', IHandler, config.handlers) File "/home/$USER/.local/lib/python3.8/site-packages/mailman/utilities/modules.py", line 218, in add_components for component_class in find_pluggable_components(subpackage, interface): File "/home/$USER/.local/lib/python3.8/site-packages/mailman/utilities/modules.py", line 177, in find_pluggable_components yield from find_components('mailman.' + subpackage, interface) File "/home/$USER/.local/lib/python3.8/site-packages/mailman/utilities/modules.py", line 150, in find_components module = import_module(module_name) File "/usr/lib64/python3.8/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File " ", line 1014, in _gcd_import File " kwargs) File "/home/$USER/.local/lib/python3.8/site-packages/click/core.py", line 1055, in main rv = self.invoke(ctx) File "/home/$USER/.local/lib/python3.8/site-packages/click/core.py", line 1404, in invoke return ctx.invoke(self.callback, ctx.params) File "/home/$USER/.local/lib/python3.8/site-packages/click/core.py", line 760, in invoke return callback(*args, **kwargs) File "/home/$USER/.local/lib/python3.8/site-packages/mailman/bin/master.py", line 576, in main initialize(config_file, verbose) File "/home/$USER/.local/lib/python3.8/site-packages/mailman/core/initialize.py", line 229, in initialize initialize_2(propagate_logs=propagate_logs) File "/home/$USER/.local/lib/python3.8/site-packages/mailman/core/initialize.py", line 198, in initialize_2 initialize_pipelines() File "/home/$USER/.local/lib/python3.8/site-packages/mailman/core/pipelines.py", line 73, in initialize add_components('handlers', IHandler, config.handlers) File "/home/$USER/.local/lib/python3.8/site-packages/mailman/utilities/modules.py", line 218, in add_components for component_class in find_pluggable_components(subpackage, interface): File "/home/$USER/.local/lib/python3.8/site-packages/mailman/utilities/modules.py", line 177, in find_pluggable_components yield from find_components('mailman.' + subpackage, interface) File "/home/$USER/.local/lib/python3.8/site-packages/mailman/utilities/modules.py", line 150, in find_components module = import_module(module_name) File "/usr/lib64/python3.8/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 991, in _find_and_load File " ", line 975, in _find_and_load_unlocked File " ", line 671, in _load_unlocked File " ", line 843, in exec_module File " ", line 219, in _call_with_frames_removed File "/home/$USER/.local/lib/python3.8/site-packages/mailman/handlers/arc_sign.py", line 22, in from authheaders import sign_message File "/home/$USER/.local/lib/python3.8/site-packages/authheaders/init.py", line 25, in from authheaders.dmarc_lookup import dns_query, receiver_record, receiver_record_walk, get_org_domain File "/home/$USER/.local/lib/python3.8/site-packages/authheaders/dmarc_lookup.py", line 22, in from pkg_resources import resource_filename # Part of setuptools File "/home/$USER/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 3327, in def _initialize_master_working_set(): File "/home/$USER/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 3301, in _call_aside f(*args, *kwargs) File "/home/$USER/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 3339, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/home/$USER/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 629, in _build_master ws.require(requires) File "/home/$USER/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 966, in require needed = self.resolve(parse_requirements(requirements)) File "/home/$USER/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 827, in resolve dist = self._resolve_dist( File "/home/$USER/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 868, in _resolve_dist raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'flufl.i18n>=3.2' distribution was not found and is required by mailman Traceback (most recent call last): File "/home/$USER/.local/bin/master", line 33, in sys.exit(load_entry_point('mailman==3.3.8', 'console_scripts', 'master')()) File "/home/$USER/.local/lib/python3.8/site-packages/click/core.py", line 1130, in call return self.main( args,", line 1014, in _gcd_import File " init.py", line 25, in", line 991, in _find_and_load File " ", line 975, in _find_and_load_unlocked File " ", line 671, in _load_unlocked File " ", line 843, in exec_module File " ", line 219, in _call_with_frames_removed File "/home/$USER/.local/lib/python3.8/site-packages/mailman/handlers/arc_sign.py", line 22, in from authheaders import sign_message File "/home/$USER/.local/lib/python3.8/site-packages/authheaders/ from authheaders.dmarc_lookup import dns_query, receiver_record, receiver_record_walk, get_org_domain File "/home/$USER/.local/lib/python3.8/site-packages/authheaders/dmarc_lookup.py", line 22, in init__.py", line 3301, in _call_aside f(*args, kwargs) File "/home/$USER/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 3339, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/home/$USER/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 629, in _build_master ws.require(requires) File "/home/$USER/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 966, in require needed = self.resolve(parse_requirements(requirements)) File "/home/$USER/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 827, in resolve dist = self._resolve_dist( File "/home/$USER/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 868, in _resolve_dist raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'flufl.i18n>=3.2' distribution was not found and is required by mailmanfrom pkg_resources import resource_filename # Part of setuptools File "/home/$USER/.local/lib/python3.8/site-packages/pkg_resources/init.py", line 3327, in def _initialize_master_working_set(): File "/home/$USER/.local/lib/python3.8/site-packages/pkg_resources/
I seem to have now fixed the issue by downgrading flufl.i18n to 3.2
I had the same issue and solved it by installing an older version of urllib3
:
pip3.8 install --user urllib3==1.26.6
After that, everything worked as explained in the guide.
Ok looks like there is currently several issues with dependencies in mailman:
The original problem here was on side of Uberspace, that the urllib3
cannot work with the serveside openssl version, pinning an old version fixes this:
$ pip3.8 install "urllib3<2"
Because of the importlib_resource
problem, as proposed in the issue: https://gitlab.com/mailman/mailman/-/issues/1093 we will use an older version of this lib as well:
$ pip3.8 install "importlib_resources<6.0"
And because of the (not investigated to the end) flufl
lib issues (see https://gitlab.com/mailman/mailman/-/issues/1085) it worked for me to just pin a lower version as well:
$ pip3.8 install "flufl.lock<8"
$ pip3.8 install "flufl.i18n<5"
with those downgrades, a fresh installation ist working for me. I would be happy if another user can confirm this when installing mailman3.
@rikroe After following all the steps, the mailman3 service cannot be started because the system openssl version is too low.