a6 RuntimeError: Bad magic number in .pyc file

148 views
Skip to first unread message

Sam Jia

unread,
Dec 2, 2020, 7:49:15 PM12/2/20
to cmpt-295-sfu
SFU ID: cjia
Github username:sam-jia
Github: Link to github repo (your assignment repos are private so these links are only accessible to TAs and Instructor)
Line and file: 
Expected behavior:
Observed behavior:
Question: Hello, I mentioned this problem in last friday's lecture. When i try to run the simulation on Example_Pipeline.enc and Example_Pipeline.csv it outputs bad magic number in .pyc file.
a6 error.jpg

ashrir...@gmail.com

unread,
Dec 2, 2020, 7:53:24 PM12/2/20
to cmpt-295-sfu
Please read errata on hw6 page

Ritika Goyal

unread,
Dec 8, 2020, 1:32:29 AM12/8/20
to cmpt-295-sfu

SFU ID:rgoyal
Github username:rgoyal10
Github: Link to github repo (your assignment repos are private so these links are only accessible to TAs and Instructor)
Question: Hi, I followed all the steps in Errata and when i run the command mentioned below, it still give me error. Can someone please tell me how to resolve it?
Command:  python3 decrypt.pyc -F Example_Pipeline.enc -C Example_Pipeline.csv
Output:  RuntimeError: Bad magic number in .pyc file

b.minh96

unread,
Dec 9, 2020, 2:06:20 PM12/9/20
to cmpt-295-sfu
Please refer to the answers in the latest questions.

ashrir...@gmail.com

unread,
Dec 9, 2020, 9:36:59 PM12/9/20
to cmpt-295-sfu
https://www.cs.sfu.ca/~ashriram/Courses/CS295/hw/hw6.html#vm-errata
If your python version is not 3.6 in the VM, then you have a problem.

Reply all
Reply to author
Forward
0 new messages