I try to install the plugin only after the following command i get two error i think:
Raspberry 2B
Wich python is really recommend? (I did all command from beginning and have allready 3.5 running if i'm correct)
virtualenv -p python3 .env
Error 1:
Code: Select all
(.env) pi@raspberrypi:~/domoticz/plugins/xiaomi-mirobot $ virtualenv -p python3 .env
Running virtualenv with interpreter /home/pi/domoticz/plugins/xiaomi-mirobot/.env/bin/python3
Please use the *system* python to run this script
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/virtualenv.py", line 2349, in <module>
main()
File "/usr/local/lib/python3.5/dist-packages/virtualenv.py", line 712, in main
symlink=options.symlink)
File "/usr/local/lib/python3.5/dist-packages/virtualenv.py", line 927, in create_environment
site_packages=site_packages, clear=clear, symlink=symlink))
File "/home/pi/domoticz/plugins/xiaomi-mirobot/.env/lib/python3.5/posixpath.py", line 357, in abspath
if not isabs(path):
File "/home/pi/domoticz/plugins/xiaomi-mirobot/.env/lib/python3.5/posixpath.py", line 64, in isabs
return s.startswith(sep)
AttributeError: 'NoneType' object has no attribute 'startswith'
I'm not sure if a both is really an error but the next command gives an error. (I think because of above failing)
Tried:
pip3 install -r pip_req.txt
And
pip3 install gevent msgpack-python python-miio==0.3.1
Can someone point me the good direction im not an linux expert
Error:
Code: Select all
(.env) pi@raspberrypi:~/domoticz/plugins/xiaomi-mirobot $ pip3 install gevent msgpack-python python-miio==0.3.1
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting gevent
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/gevent/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/gevent/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/gevent/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/gevent/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/gevent/
Could not fetch URL https://pypi.python.org/simple/gevent/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.python.org', port=443): Max retries exceeded with url: /simple/gevent/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)) - skipping
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/gevent/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/gevent/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/gevent/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/gevent/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)': /simple/gevent/
Could not fetch URL https://www.piwheels.hostedpi.com/simple/gevent/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='www.piwheels.hostedpi.com', port=443): Max retries exceeded with url: /simple/gevent/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.",)) - skipping
Could not find a version that satisfies the requirement gevent (from versions: )
No matching distribution found for gevent