cannot import name 'BeautifulSoup'

1,213 views
Skip to first unread message

Hakob M

unread,
Jul 26, 2018, 10:14:28 AM7/26/18
to beautifulsoup
HI, 

I'm new in python, just install package BeautifulSoup, but can't run it .
When i try to run this:
  from bs4 import BeautifulSoup

I get this kind of error:
        from bs4 import BeautifulSoup
     ImportError: cannot import name 'BeautifulSoup'


I try to find the answer in google , but nothing is much with my case, i try all things that suggest others, but no result.

Can anyone help to understand what is the reason of such issue?

Thanks in advance,
Hakob

J. Albert Bowden

unread,
Jul 26, 2018, 3:23:46 PM7/26/18
to beauti...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "beautifulsoup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beautifulsoup+unsubscribe@googlegroups.com.
To post to this group, send email to beauti...@googlegroups.com.
Visit this group at https://groups.google.com/group/beautifulsoup.
For more options, visit https://groups.google.com/d/optout.



--

Malik Rumi

unread,
Jul 27, 2018, 10:49:44 AM7/27/18
to beauti...@googlegroups.com
This is not enough information to be of much help, but I will ask this: Are you using a virtualenv? If you are, both you and your code, including bs4, need to be in the same virtualenv or you won't be able to access it. If you are not using a virtualenv, Google it and start using one now.

“None of you has faith until he loves for his brother or his neighbor what he loves for himself.”


On Thu, Jul 26, 2018 at 12:23 PM J. Albert Bowden <jalber...@gmail.com> wrote:
On Wed, Jul 25, 2018 at 3:18 PM, Hakob M <hakobm...@gmail.com> wrote:
HI, 

I'm new in python, just install package BeautifulSoup, but can't run it .
When i try to run this:
  from bs4 import BeautifulSoup

I get this kind of error:
        from bs4 import BeautifulSoup
     ImportError: cannot import name 'BeautifulSoup'


I try to find the answer in google , but nothing is much with my case, i try all things that suggest others, but no result.

Can anyone help to understand what is the reason of such issue?

Thanks in advance,
Hakob

--
You received this message because you are subscribed to the Google Groups "beautifulsoup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beautifulsou...@googlegroups.com.

To post to this group, send email to beauti...@googlegroups.com.
Visit this group at https://groups.google.com/group/beautifulsoup.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "beautifulsoup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beautifulsou...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages