Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"No module named 'newspaper'" after installation? #366

Closed
Marthorax opened this issue May 14, 2017 · 9 comments
Closed

"No module named 'newspaper'" after installation? #366

Marthorax opened this issue May 14, 2017 · 9 comments
Assignees

Comments

@Marthorax
Copy link

Running on Mac OS X.

Installed newspaper3k without a hitch, however, iPython won't recognize newspaper as a module. Any solutions?

Specifically, the code it can't run is: from newspaper import Article

@yprez
Copy link
Collaborator

yprez commented May 17, 2017

Not really familiar with OS X... did you install both newspaper and ipython in the same env?

@leenabharambe
Copy link

I installed newspaper on ubuntu. but same error occurred to me too.
What to do?

@codelucas
Copy link
Owner

Hello @Marthorax and @leenabharambe, I'd like to replicate the exact sequence of events of your installation to get your error to help debug it.

What command(s) did you use to install? What OS do you use? Please paste everything and be as descriptive as possible. Thanks.

@codelucas codelucas self-assigned this Jun 4, 2017
@JSONValidator
Copy link

On macOS we need use python3 file.py, not python file.py.

@codelucas
Copy link
Owner

Good point @JSONValidator, this is probably a common mistake that's been happening.

We should inject in python3 or python2 version checks in the top level newspaper module so people get a more readable error "You are using the wrong python version" instead of a cryptic import error.

@kerchner
Copy link

kerchner commented Apr 19, 2018

I'm working in a Jupyter iPython notebook, with Python 3, but experiencing the issue here where even after a successful !pip3 install newspaper3k, running import newspaper results in ModuleNotFoundError: No module named 'newspaper'.

I verified that !python --version returns Python 3.6.0 :: Anaconda custom (x86_64)

Any suggerstions, @codelucas ? Thanks! I'm excited to try this package.

@galaxydirector
Copy link

galaxydirector commented Mar 3, 2019

Same issue... I am on Debian

@JimmyCollins
Copy link

Same issue here on Windows, even after successful installation when I try to import in my Jupyter notebook I see this error message.

@Cyfy-max
Copy link

Same with @kerchner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants