-
Notifications
You must be signed in to change notification settings - Fork 563
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
Appium-Python-Client library install failed : No module named 'appium' #839
Comments
What is the actual http://nexus-proxy.groupe.generali.fr/python/repository/pypi-all/packages/appium-python-client/2.8.1/Appium-Python-Client-2.8.1.tar.gz ? The link shown not found for me, but you could check the package itself. You also could download the package from https://pypi.org/project/Appium-Python-Client/#files directly to compare |
Done with downloading package from https://pypi.org/project/Appium-Python-Client/#files directly and some error : python setup.py install |
What is the directory structure in the downloaded file? e.g.
|
I have well this directory structure : C:\python-3.11.2-embed-amd64\Lib\site-packages\Appium-Python-Client-2.8.1> ls -R
Mode LastWriteTime Length Name d----- 10/03/2023 09:15 appium
Mode LastWriteTime Length Name d----- 10/03/2023 09:15 common
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 924 exceptions.py
Mode LastWriteTime Length Name d----- 10/03/2023 09:15 android
Mode LastWriteTime Length Name d----- 10/03/2023 09:15 common
Mode LastWriteTime Length Name d----- 10/03/2023 09:15 adb
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 1673 adb_exec_timeout_option.py
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 1662 allow_test_packages_option.py
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 1306 avd_args_option.py
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 1737 auto_webview_timeout_option.py
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 1530 locale_script_option.py
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 1710 skip_unlock_option.py
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 1647 mjpeg_screenshot_url_option.py
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 1736 disable_suppress_accessibility_service_option.py
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 1550 keystore_password_option.py
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 1525 activity_options_option.py
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 11716 base.py
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 1395 app_option.py
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 1458 android_storage_option.py
Mode LastWriteTime Length Name d----- 10/03/2023 09:15 safari
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 1699 automatic_inspection_option.py
Mode LastWriteTime Length Name d----- 10/03/2023 09:15 app
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 1985 app_install_strategy_option.py
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 1783 include_device_caps_to_session_info_option.py
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 2627 command_timeouts_option.py
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 1703 calendar_access_authorized_option.py
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 1774 allow_provisioning_device_regitration_option.py
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 1759 absolute_web_locations_option.py
Mode LastWriteTime Length Name d----- 10/03/2023 09:15 mac2
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 1468 arguments_option.py
Mode LastWriteTime Length Name d----- 10/03/2023 09:15 windows
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 1506 app_arguments_option.py
Mode LastWriteTime Length Name d----- 10/03/2023 09:15 webdriver
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 882 can_execute_commands.py
Mode LastWriteTime Length Name d----- 10/03/2023 09:15 common
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 1107 appiumby.py
Mode LastWriteTime Length Name d----- 10/03/2023 09:15 android
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 3920 activities.py
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 1 dependency_links.txt
Mode LastWriteTime Length Name d----- 10/03/2023 09:15 _build
Mode LastWriteTime Length Name d----- 10/03/2023 09:15 doctrees
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 22030 appium.common.doctree
Mode LastWriteTime Length Name d----- 10/03/2023 09:15 _sources
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 644 appium.common.rst.txt
Mode LastWriteTime Length Name d----- 10/03/2023 09:15 css
Mode LastWriteTime Length Name d----- 10/03/2023 09:15 fonts
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 165742 fontawesome-webfont.eot
Mode LastWriteTime Length Name -a---- 21/01/2023 05:10 934 badge_only.js |
Thanks. Hm, the top module has |
Hello,
I have following issue when trying to install appium library :
pip install Appium-Python-Client
Looking in indexes: http://nexus-proxy.groupe.generali.fr/python/repository/pypi-all/simple
Collecting Appium-Python-Client
Using cached http://nexus-proxy.groupe.generali.fr/python/repository/pypi-all/packages/appium-python-client/2.8.1/Appium-Python-Client-2.8.1.tar.gz (3.4 MB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\b300tvz\AppData\Local\Temp\pip-install-vifhpcuq\appium-python-client_75e9b86948b6479f8c84397cf0f73693\setup.py", line 19, in
from appium.common.helper import library_version
ModuleNotFoundError: No module named 'appium'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Here is my configuration of python, appium and installed libraries :
pip list
Package Version
async-generator 1.10
attrs 22.2.0
certifi 2022.12.7
cffi 1.15.1
docutils 0.19
h11 0.14.0
idna 3.4
outcome 1.2.0
pip 23.0.1
pycparser 2.21
PySocks 1.7.1
robotframework 6.0.2
robotframework-pythonlibcore 4.1.2
robotframework-seleniumlibrary 6.0.0
selenium 4.8.2
setuptools 67.4.0
sniffio 1.3.0
sortedcontainers 2.4.0
trio 0.22.0
trio-websocket 0.9.2
urllib3 1.26.14
wheel 0.38.4
wsproto 1.2.0
python --version
Python 3.11.2
appium --version
1.22.3
appium-doctor
WARN AppiumDoctor [Deprecated] Please use appium-doctor installed with "npm install @appium/doctor --location=global"
info AppiumDoctor Appium Doctor v.1.16.2
info AppiumDoctor ### Diagnostic for necessary dependencies starting ###
info AppiumDoctor ✔ The Node.js binary was found at: C:\JTB\nodejs\node.EXE
info AppiumDoctor ✔ Node version is 18.14.0
info AppiumDoctor ✔ ANDROID_HOME is set to: C:\Users\b300tvz\AppData\Local\Android\Sdk
info AppiumDoctor ✔ JAVA_HOME is set to: C:\JTB\jdk\jdk11.0.9_11
info AppiumDoctor 'adb' is in C:\Users\b300tvz\AppData\Local\Android\Sdk\platform-tools\adb.exe
info AppiumDoctor 'android' is in C:\Users\b300tvz\AppData\Local\Android\Sdk\tools\android.bat
info AppiumDoctor 'emulator' is in C:\Users\b300tvz\AppData\Local\Android\Sdk\emulator\emulator.exe
info AppiumDoctor 'apkanalyzer.bat' is in C:\Users\b300tvz\AppData\Local\Android\Sdk\cmdline-tools\latest\bin\apkanalyzer.bat
info AppiumDoctor ✔ adb, android, emulator, apkanalyzer.bat exist: C:\Users\b300tvz\AppData\Local\Android\Sdk
info AppiumDoctor ✔ 'bin' subfolder exists under 'C:\JTB\jdk\jdk11.0.9_11'
info AppiumDoctor ### Diagnostic for necessary dependencies completed, no fix needed. ###
info AppiumDoctor
info AppiumDoctor ### Diagnostic for optional dependencies starting ###
WARN AppiumDoctor ✖ opencv4nodejs cannot be found.
WARN AppiumDoctor ✖ ffmpeg cannot be found
WARN AppiumDoctor ✖ mjpeg-consumer cannot be found.
WARN AppiumDoctor ✖ bundletool.jar cannot be found
WARN AppiumDoctor ✖ gst-launch-1.0.exe and/or gst-inspect-1.0.exe cannot be found
info AppiumDoctor ### Diagnostic for optional dependencies completed, 5 fixes possible. ###
info AppiumDoctor
info AppiumDoctor ### Optional Manual Fixes ###
info AppiumDoctor The configuration can install optionally. Please do the following manually:
WARN AppiumDoctor ➜ Why opencv4nodejs is needed and how to install it: http://appium.io/docs/en/writing-running-appium/image-comparison/
WARN AppiumDoctor ➜ ffmpeg is needed to record screen features. Please read https://www.ffmpeg.org/ to install it
WARN AppiumDoctor ➜ mjpeg-consumer module is required to use MJPEG-over-HTTP features. Please install it with 'npm i -g mjpeg-consumer'.
WARN AppiumDoctor ➜ bundletool.jar is used to handle Android App Bundle. Please read http://appium.io/docs/en/writing-running-appium/android/android-appbundle/ to install it. Also consider adding the ".jar" extension into your PATH
EXT environment variable in order to fix the problem for Windows
WARN AppiumDoctor ➜ gst-launch-1.0.exe and gst-inspect-1.0.exe are used to stream the screen of the device under test. Please read https://appium.io/docs/en/writing-running-appium/android/android-screen-streaming/ to install them a
nd for more details
info AppiumDoctor
info AppiumDoctor ###
info AppiumDoctor
info AppiumDoctor Bye! Run appium-doctor again when all manual fixes have been applied!
info AppiumDoctor
Have you an idea to fix this issue ?
Thanks for your response
The text was updated successfully, but these errors were encountered: