Wireshark mailing list archives

Re: pre-commit ImportError


From: "POZUELO Gloria (BCS/PSD)" <gloria.pozuelo () bics com>
Date: Wed, 17 Feb 2016 08:01:22 +0000

Hello Pascal,

Thank you for your quick answer. The thing is that Python seems to be working correctly, since when I type python in 
the terminal it shows me the python version and it enters in the python console mode, so I guess that something is 
happening with the pre-commit hook…

From: wireshark-dev-bounces () wireshark org [mailto:wireshark-dev-bounces () wireshark org] On Behalf Of Pascal Quantin
Sent: Wednesday 17 February 2016 08:52
To: Developer support list for Wireshark
Subject: Re: [Wireshark-dev] pre-commit ImportError

Hi Gloria,

2016-02-17 8:48 GMT+01:00 POZUELO Gloria (BCS/PSD) <gloria.pozuelo () bics com<mailto:gloria.pozuelo () bics com>>:
Hello,

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:
https://stackoverflow.com/questions/5599872/python-windows-importerror-no-module-named-site
https://stackoverflow.com/questions/21874407/python-ipython-importerror-no-module-named-site
Regards,
Pascal.

________________________________

**** DISCLAIMER****
http://www.bics.com/maildisclaimer/
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    https://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe

Current thread: