mail/py-mail-parser and ipaddress

Andrea Venturoli ml at netfence.it
Wed Jan 29 09:57:28 UTC 2020


Hello.

I'm trying to port a Python software that uses mail-parser, but I'm 
stuck with a problem.

I build py37-mail-parser with Poudriere and install it in a 11.3 jail.

However, I'm getting the following error:

> # mailparser
> Traceback (most recent call last):
>   File "/usr/local/bin/mailparser", line 6, in <module>
>     from pkg_resources import load_entry_point
>   File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3250, in <module>
>     @_call_aside
>   File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside
>     f(*args, **kwargs)
>   File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3263, in _initialize_master_working_set
>     working_set = WorkingSet._build_master()
>   File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 583, in _build_master
>     ws.require(__requires__)
>   File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 900, in require
>     needed = self.resolve(parse_requirements(requirements))
>   File "/usr/local/lib/python3.7/site-packages/pkg_resources/__init__.py", line 786, in resolve
>     raise DistributionNotFound(req, requirers)
> pkg_resources.DistributionNotFound: The 'ipaddress>=1.0.23' distribution was not found and is required by mail-parser

AFAICY there is no py37-ipaddress (it should already be included in 
Python 3.7 itself).

I have no idea  whether this is a fault of mine or what.
Any help appreciated.

  bye
	av.


More information about the freebsd-ports mailing list