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

[from appium import webdriver], ImportError: No module named switch_to #2625

Closed
shuiguolan opened this issue May 21, 2014 · 4 comments
Closed

Comments

@shuiguolan
Copy link

when I try to run android_contacts.py, there are some error occur:

Traceback (most recent call last):
File "C:\babyD\myWork\myCode\Appium_Framework_Demo_v1\examples\android_contacts.py", line 8, in
from appium import webdriver
File "build\bdist.win32\egg\appium\webdriver__init__.py", line 19, in

File "build\bdist.win32\egg\appium\webdriver\webdriver.py", line 19, in
File "build\bdist.win32\egg\appium\webdriver\switch_to.py", line 15, in
ImportError: No module named switch_to

please help me to figure out , look forward to your reply

env info:
python 2.7
selenium 2.41
Appium_Python_Client-0.5-py2.7.egg
appium 1.0.0

@jlipps
Copy link
Member

jlipps commented May 28, 2014

any ideas @imurchie

@imurchie
Copy link
Contributor

If you look in your Selenium egg directory, under selenium/webdriver/remote is there no switch_to.py? If not, something is wrong with the Selenium distribution. My first inclination, after looking in my Selenium directory, would be to reinstall Selenium 2.41.0.

@shuiguolan
Copy link
Author

I found the solusion, in my Eclipse there are two different version of selenium, after uninstall the lower version one, the issue is gone, thanks guys

@lock
Copy link

lock bot commented May 3, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators May 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants