AllenDowney / ThinkStats2

Text and supporting code for Think Stats, 2nd Edition
http://allendowney.github.io/ThinkStats2/
GNU General Public License v3.0
4.03k stars 11.31k forks source link

No module named 'nsfg' #99

Closed SheebanWasi closed 2 years ago

SheebanWasi commented 6 years ago

Hey I ran the nsfg.py in ATOM and it gave me an output as All test Passed, but when I open the ch01.ipynb in notebook and run the very first line it gives me an error

ModuleNotFoundError: No module named 'nsfg'

I am stuck. ThankYou !

AllenDowney commented 6 years ago

In order for Python to find this module, you either need to run the program with nsfg.py in the current directory or add the directory that contains nsfg.py to Python's search path.

https://stackoverflow.com/questions/3144089/expand-python-search-path-to-other-source

On Thu, Mar 8, 2018 at 1:29 AM, Sheeban-Wasi notifications@github.com wrote:

Hey I ran the nsfg.py in ATOM and it gave me an output as All test Passed, but when I open the ch01.ipynb in notebook and run the very first line it gives me an error

ModuleNotFoundError: No module named 'nsfg'

I am stuck. ThankYou !

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/AllenDowney/ThinkStats2/issues/99, or mute the thread https://github.com/notifications/unsubscribe-auth/ABy37UXDSZX5XW2KBljurYSciP6v7ajCks5tcM_LgaJpZM4SiNHa .

nsdeo12 commented 3 years ago

Worked after running inside the ThinkStats2\code folder.