xArm-Developer / xArm-Python-SDK

Python SDK for UFACTORY robots, 850, xArm5/6/7, and Lite6.
https://www.ufactory.cc
BSD 3-Clause "New" or "Revised" License
153 stars 102 forks source link

trying to import the APIs & Python SDK #74

Open MahmoudMas00 opened 1 year ago

MahmoudMas00 commented 1 year ago

Hi, 1) first of all can u please tell me which python version I should use? i know it is 3 as mentioned but which 3.x? 2) in order to import from arm xarm-Python SDK I should use this command pip install xarm-python-sdk but while I am trying to run it am getting this error Defaulting to user installation because normal site-packages is not writeable Collecting xarm-python-sdk Using cached xArm-Python-SDK-1.11.6.tar.gz (137 kB) 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 "/tmp/pip-install-vx3f1n4z/xarm-python-sdk_48631e754bde43bfb9624a84d2126841/setup.py", line 42, in with open(os.path.join(os.getcwd(), 'requirements.txt')) as f: FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-vx3f1n4z/xarm-python-sdk_48631e754bde43bfb9624a84d2126841/requirements.txt' [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.

can u please help us? we are trying to import all the APIs to connect via Python to the robots, can u attach any readme file more simplified? we are students and working on project. Thanks in advance.

wcdoug commented 1 year ago

So - from my side - I got the same error as above. But what I did do that worked was use through PyCharm. Basically, open PyCharm, then open the robot.conf file from inside pycharm under the examples directory - then everything works (in pycharm at least)

MinnaZhong commented 1 year ago

Hi, We updated the package into PYPI, please try 'pip install xArm-Python-SDK' again. If there are still 'metadata-generation-failed' problem, please try 'pip install xArm-Python-SDK==1.11.7'

Best,