-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation: testresources, tornado, setup.py #234
Comments
We should probably update to a newer base image for the VM, but in the meantime you can probably work around it installing an older version of tornado - edit that script and change As Seb probably already told you, you're the first person to try this outside our team, so this is all valuable feedback on what doesn't work. @tsaoyu where were we getting the raspi SD card images from? Can we get VM images from the same source? |
I have seen you have tried the docker image too, I would recommend using that instead of virtual box, it is easier to set up, specially to have a share folder between your computer and the virtual environment. |
@takluyver @Nanoseb thanks for the reply. I used Additionally, I encountered two more errors after running the installation script - in which the packages pigpio and python-pigpio are not located (in bold at the bottom): Reading package lists... Done Also, @Nanoseb, could you elaborate on what you mean for using the docker image instead of the virtual box? Currently, I have tried launching the ROS simulator nodes from the docker image, which I access within my virtual machine, but the ROS nodes fail. Any ideas would be appreciated :) |
Looking at that setup script, I think it's maybe only meant to run on the raspberry pi - it installs a number of packages for interfacing with hardware (like pigpio, pi_ina219, i2c_tools, spidev...). We should make that clearer in the naming and/or description. The whole setup scripts folder probably needs tidying up - there are several scripts that haven't been touched in a couple of years and are probably outdated. And it's not clear what is meant to run where, or in what order. What failures do you see when you try to launch the simulator in the docker container? Sorry if you already posted this elsewhere - I get a lot of emails and github notifications. :-) |
Sorry I am not sure I follow, you are using the docker image inside a virtual machine?
As Thomas said, this setup script is meant to be run directly on the boat because it installs some hardware components like pigpio to talk to the servos for example, we will try to tidy up this folder so that it is more clear. |
@takluyver are you mention this? |
Thanks, that was what I was thinking of. It looks like they also have a VM image, but there are no obvious details on what versions of things it has. https://downloads.ubiquityrobotics.com/vm.html |
#234 Setup_ALL.sh is an interactive script to install everyting on the pi or on a workstation
Running |
Hi Soton team,
During the installation step on the sailing-robot wiki (https://github.com/Maritime-Robotics-Student-Society/sailing-robot/wiki/Virtual-Machine-for-Windows-Mac-users), under the Post installation setup section, where the instructions say:
~/sailing-robot/utilities/setup_scripts/Install_needed_packages.sh
I get the following errors in my terminal (in bold):
Reading package lists... Done
Building dependency tree
Reading state information... Done
bc is already the newest version.
gpsd-clients is already the newest version.
i2c-tools is already the newest version.
libgeos-dev is already the newest version.
python-scipy is already the newest version.
vim is already the newest version.
python-pip is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 296 not upgraded.
Installing Python packages...
The directory '/home/bryanz/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/bryanz/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
/usr/local/lib/python2.7/dist-packages/pip/vendor/urllib3/util/ssl.py:339: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/vendor/urllib3/util/ssl.py:137: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecurePlatformWarning
Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages (10.0.1)
launchpadlib 1.10.2 requires testresources, which is not installed.
matplotlib 1.3.1 requires tornado, which is not installed.
The directory '/home/bryanz/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/bryanz/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting Latlon
/usr/local/lib/python2.7/dist-packages/pip/vendor/urllib3/util/ssl.py:339: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/vendor/urllib3/util/ssl.py:137: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecurePlatformWarning
/usr/local/lib/python2.7/dist-packages/pip/vendor/urllib3/util/ssl.py:137: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecurePlatformWarning
Downloading https://files.pythonhosted.org/packages/cf/f0/5c23d9431a69cf27d139e9ae09db7f0f032c88192384dad3f8d7e0c860e8/LatLon-1.0.2-py2-none-any.whl
Collecting shapely
Downloading https://files.pythonhosted.org/packages/a5/cf/0d51a15861d944da8463d8c1aecf39cfc6852ea9ecd092046824e9b237b3/Shapely-1.6.4.post1-cp27-cp27mu-manylinux1_x86_64.whl (1.5MB)
100% |████████████████████████████████| 1.5MB 6.7MB/s
Collecting pyproj
Downloading https://files.pythonhosted.org/packages/29/72/5c1888c4948a0c7b736d10e0f0f69966e7c0874a660222ed0a2c2c6daa9f/pyproj-1.9.5.1.tar.gz (4.4MB)
100% |████████████████████████████████| 4.4MB 1.6MB/s
Collecting pynmea2
Downloading https://files.pythonhosted.org/packages/7c/82/f734e75dbb0aecbd9ea20489f364fdac9f124f17c4d4e26d2ab160c8ff58/pynmea2-1.12.0.tar.gz
Collecting spidev
Downloading https://files.pythonhosted.org/packages/36/83/73748b6e1819b57d8e1df8090200195cdae33aaa22a49a91ded16785eedd/spidev-3.2.tar.gz
Collecting tornado
Downloading https://files.pythonhosted.org/packages/cf/d1/3be271ae5eba9fb59df63c9891fdc7d8044b999e8ac145994cdbfd2ae66a/tornado-5.0.2.tar.gz (506kB)
100% |████████████████████████████████| 512kB 9.5MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-IuomJA/tornado/setup.py", line 146, in
raise ImportError("Tornado requires an up-to-date SSL module. This means "
ImportError: Tornado requires an up-to-date SSL module. This means Python 2.7.9+ or 3.4+ (although some distributions have backported the necessary changes to older versions).
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-IuomJA/tornado/
So far, I have tried
pip install --user launchpadlib==1.10.2
, as well as updating to Python 3.6.x, and then re-running the installation instruction, but I still get the same errors.Any help would be much appreciated. Thank you!
The text was updated successfully, but these errors were encountered: