SintefManufacturing / python-urx

Python library to control a robot from 'Universal Robots' http://www.universal-robots.com/
GNU Lesser General Public License v3.0
526 stars 275 forks source link

pip install urx (install error) #116

Open cheabdullahjz opened 1 year ago

cheabdullahjz commented 1 year ago

(env) (base) C:\Users\AAA>python Python 3.7.6 (default, Jan 8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32 Type "help", "copyright", "credits" or "license" for more information.

import urx Traceback (most recent call last): File "", line 1, in File "C:\Users\AAA\env\lib\site-packages\urx__init.py", line 4, in from urx.urrobot import RobotException, URRobot # noqa File "C:\Users\AAA\env\lib\site-packages\urx\urrobot.py", line 9, in from urx import urrtmon File "C:\Users\AAA\env\lib\site-packages\urx\urrtmon.py", line 16, in import math3d as m3d File "C:\Users\AAA\env\lib\site-packages\math3d\init__.py", line 21, in from .transform import Transform, PoseVector File "C:\Users\AAA\env\lib\site-packages\math3d\transform.py", line 156, in class Transform(object): File "C:\Users\AAA\env\lib\site-packages\math3d\transform.py", line 528, in Transform ApTs: typing.Union[np.ndarray, tuple[PositionVector]], TypeError: 'type' object is not subscriptable

cheabdullahjz commented 1 year ago

RuntimeError: Python version >= 3.9 required.

cheabdullahjz commented 1 year ago

Steps for solving this issue a) https://www.anaconda.com/download (Download new anaconda e.g.:3.11) b) python -m virtualenv .venv -p python3.9 c) .\env\Scripts\activate d) download the repository. e) unzipped the folder f) python setup.py install g) python (and test import urx)

(.venv) D:\URX_VENV\python-urx-master>python Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

import urx