Lab3 - part 3

Lab3 - part 3

by Bastien Wermeille -
Number of replies: 2

Hello,

Could you generate some version of th servers with python 3.8 ?

Yours are generated, my version of python 3.8.5 was not compatible with yours and I had the following issue when trying to run those files :

> RuntimeError: Bad magic number in .pyc file

For those which have the same problem, I found a solution in the mean time by using used docker container to run those server.

The docker file is link to this issue. You will just have to run the 2 commands to have the ipv4 server running on localhost :

> docker build -t p3 .

> docker run -it -p 5004:5004/udp p3 /p3server_v4.pyc

Best regards,

Bastien Wermeille

In reply to Bastien Wermeille

Re: Lab3 - part 3

by Alaeddine El Fawal -

Hello,

 

Thank you for posting the problem and the solution.

Actually, we are aware about this bug with Python. Therefore, we provided you with a VM where you can run the pyc files without any issue. Hence, there is no need to look for other solutions such as dockers…

 

For those who have not done it yet, simply use the provided VM and make your life easier :-)

 

Best,

Alaeddine


In reply to Alaeddine El Fawal

Re: Lab3 - part 3

by Olivier Cloux -

For those wondering (and that hate VMs as I do), it was generated with (or at least works with) Python 3.6.9.