-
I've already passed basic transfer test on vmware ubuntu 18.04 and now I'm trying to use matplotlib to draw a picture of windowsize. So I simply added one sentence It is fine to run the test in command by using python3 src/peer.py -p test/tmp2/nodes2.map -c test/tmp2/data1.fragment -m 1 -i 1 -t 60 and by this way I successfully got my picture. And it is also fine to run and pass the tests in Although I got my picture, it seems that I won't pass the test if I add matplotlib functions into my code. So is there any way to fix this problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, thanks for the post! We have noticed a significant delay of importing matplotlib in peer.py file, which could result in our grader's failure to start peer processes in time. You can refer to this post #60 to see if the solution there is helpful. It is fine to submit your code without plotting, as your plot will only be checked on the presentation. If this issue still cannot be resolved, please follow up with the error message. [update: as well as snippets of peer1.log, peer2.log] |
Beta Was this translation helpful? Give feedback.
Hi, thanks for the post!
We have noticed a significant delay of importing matplotlib in peer.py file, which could result in our grader's failure to start peer processes in time. You can refer to this post #60 to see if the solution there is helpful.
It is fine to submit your code without plotting, as your plot will only be checked on the presentation.
If this issue still cannot be resolved, please follow up with the error message. [update: as well as snippets of peer1.log, peer2.log]