christianbur / getmail

18 stars 6 forks source link

Virtual environment pip WARNING #8

Closed Phil12n closed 2 years ago

Phil12n commented 2 years ago

Hello Christianbur,

Thanks for your package which is very useful.

During installation i have a warning message concerning virtual environment :

command line : docker-compose built getmail Messages : .../... Successfully installed pip-22.1.2 Collecting imapclient Downloading IMAPClient-2.2.0-py2.py3-none-any.whl (179 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 179.2/179.2 kB 9.9 MB/s eta 0:00:00 Collecting configparser Downloading configparser-5.2.0-py3-none-any.whl (19 kB) Requirement already satisfied: six in /usr/lib/python3.8/site-packages (from imapclient) (1.15.0) Installing collected packages: imapclient, configparser Successfully installed configparser-5.2.0 imapclient-2.2.0 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv .../...

I tried on another fresh installation right now => same warning !? Tfis warning appears only during the first "built getmail" I'm not a specialist and don't know if this warning is important.

It occurs both on OVH-VPS (Debian 11) and on self-hosting NAS (Proxmox + Debian 11) With mailcow-dockerized last update.

Docker version : 20.10.16
Docker-compose version: 1.29.2

Motivation

Including virtual environment could prevent conflicts I had an issue with my mailcow-dockerized installation. Getmail was ko so maybe this new feature could avoid conflicts.

Thanks! Phil

christianbur commented 2 years ago

30min ago I fixed the behavior. You had to re-download the Dockerfile file.

Phil12n commented 2 years ago

Thanks Christianbur ! I have updated the whole package and it works fine now ! Thanks a lot ! Phil