Part5_PDC.pyc : Bad magic number

Part5_PDC.pyc : Bad magic number

par Loïs Bilat,
Number of replies: 4

Hi, 

I'm trying to to part 5 of the lab, and when I try to run the Part5_PDC.pyc file with the command 

python3 Part5_PDC.pyc CMD_short:0 Part5_ca.crt 

I get the following error :

RuntimeError: Bad magic number in .pyc file

After some research, it seems that the problem is that your .pyc file wasn't compiled with the same version as the one I am using (I use python 3.7.4). Could you provide an updated version of the pyc file, or tell me which python version you used so I can create a virtual environment with the correct version ?

Thank you, 

Loïs Bilat

In reply to Loïs Bilat

Re: Part5_PDC.pyc : Bad magic number

par Ludovic Thomas,

Hi,

thanks for reporting the issue, as well as for your research on it.

Part5_PDC.pyc has been compiled with 3.6.8,

below is a version compiled with 3.7.4.

If anyone has the same issue (users of 3.8, if any), please add a post to this thread.

Ludovic