[Pymilter] How to install pymilter in Ubuntu 20.04

ranjan at skurelabs.com ranjan at skurelabs.com
Fri Jun 17 08:47:24 EDT 2022


I am trying to install pymilter in ubuntu 20.04 using


pip3 install pymilter

Error:

Collecting pymilter

  Using cached pymilter-1.0.5.tar.gz (1.0 MB)

  Preparing metadata (setup.py) ... done

Building wheels for collected packages: pymilter

  Building wheel for pymilter (setup.py) ... error

  error: subprocess-exited-with-error



  × python setup.py bdist_wheel did not run successfully.

  │ exit code: 1

  ╰─> [32 lines of output]

      running bdist_wheel

      running build

      running build_py

      creating build

      creating build/lib.linux-x86_64-3.8

      copying mime.py -> build/lib.linux-x86_64-3.8

      creating build/lib.linux-x86_64-3.8/Milter

      copying Milter/plock.py -> build/lib.linux-x86_64-3.8/Milter

      copying Milter/dsn.py -> build/lib.linux-x86_64-3.8/Milter

      copying Milter/dynip.py -> build/lib.linux-x86_64-3.8/Milter

      copying Milter/utils.py -> build/lib.linux-x86_64-3.8/Milter

      copying Milter/cache.py -> build/lib.linux-x86_64-3.8/Milter

      copying Milter/__init__.py -> build/lib.linux-x86_64-3.8/Milter

      copying Milter/config.py -> build/lib.linux-x86_64-3.8/Milter

      copying Milter/greylist.py -> build/lib.linux-x86_64-3.8/Milter

      copying Milter/dns.py -> build/lib.linux-x86_64-3.8/Milter

      copying Milter/testctx.py -> build/lib.linux-x86_64-3.8/Milter

      copying Milter/pyip6.py -> build/lib.linux-x86_64-3.8/Milter

      copying Milter/greysql.py -> build/lib.linux-x86_64-3.8/Milter

      copying Milter/test.py -> build/lib.linux-x86_64-3.8/Milter

      copying Milter/policy.py -> build/lib.linux-x86_64-3.8/Milter

      copying Milter/unsign.py -> build/lib.linux-x86_64-3.8/Milter

      copying Milter/sgmllib.py -> build/lib.linux-x86_64-3.8/Milter

      running build_ext

      building 'milter' extension

      creating build/temp.linux-x86_64-3.8

      x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DMAX_ML_REPLY=32 -I/home/admin/pyvinv/include -I/usr/include/python3.8 -c miltermodule.c -o build/temp.linux-x86_64-3.8/miltermodule.o -Werror=implicit-function-declaration

      miltermodule.c:50:10: fatal error: libmilter/mfapi.h: No such file or directory

         50 | #include <libmilter/mfapi.h> // libmilter API

            |          ^~~~~~~~~~~~~~~~~~~

      compilation terminated.

      error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gathman.org/pipermail/pymilter/attachments/20220617/188ce539/attachment.html>


More information about the Pymilter mailing list