Closed userinfamous closed 5 years ago
If working locally, are you maintaining the same directory structure? If you are and the file exists, how are you loading the file?
The bites are generally designed to work on the platform, when working locally things like this will show up once in a while. For instance, there are challenges that use the /tmp directory to download files to and that directory does not exist in Windows.
A work around would be to remove the / and create a tmp directory where your script is. Same with this but, just copy the file to where your script is and modify the path.
Troubleshooting things like this will make you a better developer in the long run. Just make sure to change it back before submitting.
In this case, duplicating the file would be an easy fix, but won’t help you in the later challenges that I mentioned.
-Yes I'm working locally as the instructions for the blog challenge instructed (how to work on platform?) -I don't think it's that big of a deal if the person working on it just copies the file as I did. But trying to get the checks to work for the first time was a hassle.
I'm not sure about the later problems but for pcc01 and pcc02, there's a need to add sys.path.append('..') for me to be able to actually get files beyond the top level of the parent directory (I'm referring to the use of import modules
). I'm not sure about Linux, all that is well and fine but the path in the text file didn't reroute me to the pcc01 path as I mentioned above, it simply looks at it as a line of text and adding it to the list after splitting. (a list of one element)
I was going to copy it over for you. Just getting ready to head into the office though, so it’ll be a while.
I've taken a look at the challenge repo and the dictionary.txt
there is a symlink to the one in challenge 01. I've replaced it with a copy of the actual file.
Thanks, the reason you don't see my files is because I haven't pushed anything onto the community branch yet.
This problem can be resolved by copying the dict file from PCC01 into PCC02 instead of rerouting it to be
../01/dictionary.txt
. So basically it doesn't get the file filled with words but just the path, it reads that as the word. Thus failing the Assert check for the length of the wordlist.