ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] pre-commit ImportError

From: Pascal Quantin <pascal.quantin@xxxxxxxxx>
Date: Wed, 17 Feb 2016 08:52:29 +0100
Hi Gloria,

2016-02-17 8:48 GMT+01:00 POZUELO Gloria (BCS/PSD) <gloria.pozuelo@xxxxxxxx>:



I’d like to ask you about a problem with the pre-commit hook. It turns out that when I try to commit my changes it shows me a message that says: “ImportError: No module named site”, but when I delete the pre-commit hook it allows me to commit my changes but no Change-Id is generated... What can I do?

According to those stackoverflow threads, you need to properly set your environment variables so that Python finds its libraries: