Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 23 Online
OpenStudy (anonymous):

anyone using python 3.2 and having trouble with all of the changes? (print()...)? do you know how to search()? I'm on lectures 8-9 and i cannot find anywhere what the new search function looks like

OpenStudy (anonymous):

Since python 3.X is pretty different, I suggest getting a 2.X version since this is what the course uses.

OpenStudy (anonymous):

And don't worry. You can install both, no problem.

OpenStudy (anonymous):

ive tried past versions of python but all they do is have problems on my macbook pro. im running 10.6.8 and apparently its well known that older python versions are buggy on my OS/computer

OpenStudy (anonymous):

it is well known, in one of the later lectures python breaks down so bad the prof has to reboot the computer to fix it

OpenStudy (anonymous):

if you can give me the error codes i can look up the reason, I'm not going to install 3.2 on my PC right now but i can look up errors online the official python documentation above http://docs.python.org/py3k/

OpenStudy (anonymous):

Wow, that bad? I haven't watched the later lectures yet, but I thought OS X had Python pre-installed? Plus, IDLE looks okay up to this lecture, no strange things coming up on the professors' Macs.

OpenStudy (anonymous):

its just the later ones, and its the athena build of linux that comes with python

OpenStudy (anonymous):

Loading word list from file... Traceback (most recent call last): File "/Users/[Username]/Desktop/Computer Science Problem Sets/ps5.py", line 241, in <module> word_list = load_words() File "/Users/[Username]/Desktop/Computer Science Problem Sets/ps5.py", line 33, in load_words inFile = open(WORDS_TXT, 'r', 0) IOError: [Errno 2] No such file or directory: '/[Username]/Desktop/Computer Science Problem Sets/words.txt/' >>> i get this when i attempt ps5.py for the first time (the template they gave us). The assignment tells me to rename it with the exact path name of the file (words.txt) and i try that to no avail...

OpenStudy (anonymous):

If you see an IOError instead (e.g., No such file or directory), you should change the value of the WORDLIST_FILENAME constant (defined near the top of the file) to the complete pathname for the file words.txt (This will vary based on where you saved the file). so i attempted to make the define the complete pathname but it still says "No such file or directory"

OpenStudy (anonymous):

I 'd reccomend using python 2 as well. I had the same problem as you have, after I fixed it there will be an even stranger IOError. Upon asking i varous forums, they all recommended using 2 instead of 3, and it really saves you a lot of trouble.

OpenStudy (anonymous):

did you actually say "[username]"? or did you just use that to cut off the previous bit, you might want to use the full c://<user>. that being said i haven' seen enough problems with python 3 to say don't use it, if you want to look up the documentation you can find the answer to most problems

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!