Jump to content

LearnPythonTheHardway EX46 Help

pwnage630
 

http://imgur.com/gallery/GlOtkOe/newHere is the code I typed in.

 

http://learnpythonthehardway.org/book/ex46.htmlThat's the lesson.

 

I'm pretty sure my code is identical to Zed's and when I type in "nosetests" it says: -bash: nosetest: command not found

 

What did I do wrong?

 

Have you installed Nose??

My Current Build: 

Intel i5 3570K @ 4.4GHz 1.11V, Cooler Master Hyper 212 EVO, Asrock Z77 Extreme4, Corsair Vengeance 8GB 1600MHz, Samsung 840 EVO 250GB, Asus GTX 760 DCII Overclocked, Corsair CX600M

Link to comment
Share on other sites

Link to post
Share on other sites

Have you installed Nose??

 

 

 
 

 

Have you installed Nose??

 

Yep, with pip and by downloading it.

Link to comment
Share on other sites

Link to post
Share on other sites

Yep, with pip and by downloading it.

Try running "Sudo pip install nose"??

My Current Build: 

Intel i5 3570K @ 4.4GHz 1.11V, Cooler Master Hyper 212 EVO, Asrock Z77 Extreme4, Corsair Vengeance 8GB 1600MHz, Samsung 840 EVO 250GB, Asus GTX 760 DCII Overclocked, Corsair CX600M

Link to comment
Share on other sites

Link to post
Share on other sites

Try running "Sudo pip install nose"??

I did it and still getting the same error, I should mention this is on a mac.

Link to comment
Share on other sites

Link to post
Share on other sites

I did it and still getting the same error, I should mention this is on a mac.

Check out this thread on StackExchange. The first answer seems to work for Mac :)

 

http://stackoverflow.com/questions/9270188/beginner-installing-nosetests-package

My Current Build: 

Intel i5 3570K @ 4.4GHz 1.11V, Cooler Master Hyper 212 EVO, Asrock Z77 Extreme4, Corsair Vengeance 8GB 1600MHz, Samsung 840 EVO 250GB, Asus GTX 760 DCII Overclocked, Corsair CX600M

Link to comment
Share on other sites

Link to post
Share on other sites

Check out this thread on StackExchange. The first answer seems to work for Mac :)

 

http://stackoverflow.com/questions/9270188/beginner-installing-nosetests-package

I install it all and I don't think I'm doing it right, from what I understand I have to cd to projects/skeleton and then type in "nosetests". That is what I have been doing, is that correct?

Link to comment
Share on other sites

Link to post
Share on other sites

Try using "nosetests2" or "nosetests-2.7" (or -2.5 or -2.whatever python version you're using)

1474412270.2748842

Link to comment
Share on other sites

Link to post
Share on other sites

Try using "nosetests2" or "nosetests-2.7" (or -2.5 or -2.whatever python version you're using)

This is so weird, none of this is working at all for me...

Link to comment
Share on other sites

Link to post
Share on other sites

This is so weird, none of this is working at all for me...

What is the output you get from running the command "echo $PATH"

And if you go to the folder "/usr/local/bin" is there an app for nosetests in there?

1474412270.2748842

Link to comment
Share on other sites

Link to post
Share on other sites

What is the output you get from running the command "echo $PATH"

And if you go to the folder "/usr/local/bin" is there an app for nosetests in there?

/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Developer/Tools/Panda3D

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×