It's UWAweek 47

help2200

This forum is provided to promote discussion amongst students enrolled in CITS2200 Data Structures and Algorithms.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying the 2 articles in this topic
Showing 2 of 176 articles.
Currently 9 other people reading this forum.


 UWA week 20 (1st semester, week 11) ↓
SVG not supported

Login to reply

👍?
helpful
9:11pm Wed 15th May, ANONYMOUS

If you are on macOS you may get the error UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 566: invalid start byte or something similar.

This error occurs because the code tester checks for all the files in the directory which includes the case#.txt files and a macOS .DS_Store file, which obviously cannot be read correctly.

You can remove this file navigating to the testcases_trains_planes directory in terminal and deleting it with rm .DS_Store

You can verify that it is removed with ls -las


SVG not supported

Login to reply

👍?
helpful
8:38pm Sun 19th May, ANONYMOUS

FYI a more elegant solution to this problem than deleting system files would probably be to instead modify the test script to ignore any files that begin with a period ., or alternatively throw in a try-catch for UnicodeDecodeError which then continue's afterwards.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy