appium / appium/python-client

Appium-Python-Client library install failed : No module named 'appium'

Open
#839 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.8k
Forks
570
Avg merge
1d 10h
Merged PRs (30d)
24

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing pip install Appium-Python-Client for version 2.8.1 with Python 3.11.2, pip 23.0.1, and setuptools 67.4.0. Read setup.py at line 19 and the referenced appium.common.helper import; done means package metadata generation and installation complete without ModuleNotFoundError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
mobile-dev, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.