BerkeleyAutomation/perception

Request for help for installing for Python2.7

gd1925 opened this issue · 2 comments

Hi all,

My system is Ubuntu 16.04 with Kinetic Ros for Python2.7 and I have been trying to install the perception module (0.0.10) on my system. On running
"pip install -e" and also trying "pip install /path/to/perception" I have been facing the following error:

Processing /home/user/Documents/catkin_ws/src/perception
Collecting numpy (from autolab-perception===0.0.10)
Using cached https://files.pythonhosted.org/packages/50/e1/9b0c184f04b8cf5f3c941ffa56fbcbe936888bdac9aa7ba6bae405ac752b/numpy-1.22.0.zip
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-build-G7RvnI/numpy/setup.py", line 59
raise RuntimeError(f'Cannot parse version {FULLVERSION}')
^
SyntaxError: invalid syntax

----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-G7RvnI/numpy/

I also tried to change the line
numpy to numpy==1.11.0 in the requires.txt file but I am getting the same error. Could someone please guide me on how to resolve this error? (I changed to 1.11.0 as I read that it was the last numpy version supporting Python2.7)
Thank you.

mjd3 commented

I'm not sure if this will be your only issue, as Python 2.7 has been sunset for over 2 years now. However, for this specific issue, you'll need to lock the version of numpy here in the setup.py file. Hope that helps!

Thank you so much for your reply Sir. I will make the change in setup.py and try again. Thank you.