I am a beginner trying to learn web scraping with python. I tried to import RoboBrowser module in Python 3.7.
When I install it using pip install robobrowser in the terminal, I get a list of 'Requirement already satisfied'. So I am assuming its installed properly.
However when I run from robobrowser import RoboBrowser in Python, its gives an import error as shown below.
ImportError: cannot import name 'cached_property' from 'werkzeug' (/Users/ashreetsangotra/opt/anaconda3/lib/python3.7/site-packages/werkzeug/__init__.py)
Here is the screenshot of the complete error for reference:
Click here for the screenshot Sorry Stack Overflow won't let me embed the screenshot directly as for now.
Please advice on how to proceed.
Ashreet Sangotra
Make sure your Werkzeug==0.16.1 version,
it will solve your error.
Thanks
Related
I don't know whether I've just installed them wrong or there's another problem. I installed the ebay sdk but whenever I try to import it I get
ModuleNotFoundError: No module named 'ebaysdk'
Are there any common problems with this I could check for a solution? It shouldn't be the code as I copied it from the example code off the website.
Thanks for any help.
P.S I'm using 3.6
Goal:
Use the library pattern3.
Problem:
I get a error saying that "ModuleNotFoundError: No module named 'pattern'" when I have already downloaded pattern3.
What part am I missing?
Information:
*I'm using Anaconda
*I'm newbie in python
Code:
!python --version
!pip install Pattern3
from pattern.web import Twitter
from pattern.en import tag
from pattern.vector import KNN, count
Thank you!
Could you please change the imported module from pattern to pattern3? Something like below.
from pattern3.en import tag
Hope that helps
I am trying to use the Select function in Selenium for Python 3 to help with navigating through the drop down boxes. However, when I try to import org.openqa.selenium.support.ui.Select I get an error message:
"No module named 'org'"
Would appreciate any help on this. I saw there was a similar question posted a few weeks ago but the link to that question is now broken. Thanks!
The path 'org.openqa.selenium.support.ui.Select' is a Java descriptor. In Python, make sure you have the Python Selenium module installed with pip install selenium, and then import it with import selenium.
For the Select function specifically, you can import that with the following
from selenium.webdriver.support.ui import Select
Then you'll be able to use it like this:
select = Select(b.find_element_by_id(....))
I'm going to make an application using the Selenium WebDriver (python) and I was having trouble with some of the initial setup. I want to use the page object design pattern so I've been trying to import some materials in this way:
from page_objects import PageObject, PageElementfrom page_objects import PageObject, PageElement
as can bee seen in the documentation here: https://page-objects.readthedocs.io/en/latest/tutorial.html#a-simple-page-object
I'm using PyCharm for development and I've updated selenium and added it to the project interpreter but this import statement still will not work for me. I'm not sure which external module this import relates to or if its just some part of selenium, so any information would be greatly appreciated. Thanks!
That readthedocs is for the page_objects library, the repo for that library can be found here. You need to install that library before you can import it
So I installed BS4 with PIP, but when I do
from bs4 import beautifulsoup4
I get this
ImportError: No module named html.entities
I've done all the research I can into this as it seems to be a fairly rare problem, and the only thing I could find is to only have one version of python installed, yet I need both python two and three installed so that wouldn't work.
So I was wondering if there's a better way to fix this error, I have read http://www.crummy.com/software/BeautifulSoup/bs4/doc/#problems-after-installation by the way, there appeared to be nothing in there that would help my situation.
Thanks for your help! And sorry for my formatting