Python Forum
Import error even though module is installed
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Import error even though module is installed
#1
Cant post my code because I'm new and it has links?

from bs4 import BeautifulSoup
from urllib.request import urlopen

url = "http://www.pythonforbeginners.com"

content = urlopen(url).read()

soup = BeautifulSoup(content)

print( soup.prettify())

#print(title) 
#>> 'title'? Python For Beginners

#print soup.title.string
#>> ? Python For Beginners

print(soup.p) 
Reply


Messages In This Thread
Import error even though module is installed - by datafix - Jun-26-2017, 06:25 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Flask_table module compatibility issue: cannot import name 'Markup' from 'flask' venkateshbalagiri 1 809 Mar-22-2024, 05:07 AM
Last Post: venkateshbalagiri
Bug Selenium installed but not installed? NoNameoN 9 5,022 Feb-19-2021, 11:31 AM
Last Post: NoNameoN
  Getting import error when trying to import Selenium Several 1 2,402 Oct-06-2020, 10:22 PM
Last Post: Larz60+
  Python Import Sybase Module returning non explicit error thebeefes 2 6,093 Mar-14-2019, 07:32 PM
Last Post: Carlos
  Error in Selenium: CRITICAL:root:Selenium module is not installed...Exiting program. AcszE 1 3,769 Nov-03-2017, 08:41 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020