start-jsk / jsk_apc

Other
36 stars 35 forks source link

Update and fix travis #2711

Closed knorth55 closed 4 years ago

knorth55 commented 4 years ago
pazeshun commented 4 years ago

In kinetic, travis failed because https://github.com/locusrobotics/catkin_virtualenv/pull/49 is not released to kinetic. I made a release request -> https://github.com/locusrobotics/catkin_virtualenv/pull/49#issuecomment-607247372

pazeshun commented 4 years ago

In indigo, I found the following error that I don't know. I'll do further investigation:

Errors << instance_occlsegm:make /home/travis/ros/ws_jsk_apc/logs/instance_occlsegm/build.make.000.log

DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support

/home/travis/ros/ws_jsk_apc/build/instance_occlsegm/venv/local/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py:380: SNIMissingWarning: An HTTPS request has been made, but the SNI (Server 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,

/home/travis/ros/ws_jsk_apc/build/instance_occlsegm/venv/local/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py:139: 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,

/home/travis/ros/ws_jsk_apc/build/instance_occlsegm/venv/local/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py:139: 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,

ERROR: Exception:

Traceback (most recent call last):

  File "/home/travis/ros/ws_jsk_apc/build/instance_occlsegm/venv/local/lib/python2.7/site-packages/pip/_internal/cli/base_command.py", line 186, in _main

    status = self.run(options, args)

  File "/home/travis/ros/ws_jsk_apc/build/instance_occlsegm/venv/local/lib/python2.7/site-packages/pip/_internal/commands/install.py", line 331, in run

    resolver.resolve(requirement_set)

  File "/home/travis/ros/ws_jsk_apc/build/instance_occlsegm/venv/local/lib/python2.7/site-packages/pip/_internal/legacy_resolve.py", line 177, in resolve

    discovered_reqs.extend(self._resolve_one(requirement_set, req))

  File "/home/travis/ros/ws_jsk_apc/build/instance_occlsegm/venv/local/lib/python2.7/site-packages/pip/_internal/legacy_resolve.py", line 333, in _resolve_one

    abstract_dist = self._get_abstract_dist_for(req_to_install)

  File "/home/travis/ros/ws_jsk_apc/build/instance_occlsegm/venv/local/lib/python2.7/site-packages/pip/_internal/legacy_resolve.py", line 282, in _get_abstract_dist_for

    abstract_dist = self.preparer.prepare_linked_requirement(req)

  File "/home/travis/ros/ws_jsk_apc/build/instance_occlsegm/venv/local/lib/python2.7/site-packages/pip/_internal/operations/prepare.py", line 516, in prepare_linked_requirement

    req, self.req_tracker, self.finder, self.build_isolation,

  File "/home/travis/ros/ws_jsk_apc/build/instance_occlsegm/venv/local/lib/python2.7/site-packages/pip/_internal/operations/prepare.py", line 95, in _get_prepared_distribution

    abstract_dist.prepare_distribution_metadata(finder, build_isolation)

  File "/home/travis/ros/ws_jsk_apc/build/instance_occlsegm/venv/local/lib/python2.7/site-packages/pip/_internal/distributions/sdist.py", line 38, in prepare_distribution_metadata

    self._setup_isolation(finder)

  File "/home/travis/ros/ws_jsk_apc/build/instance_occlsegm/venv/local/lib/python2.7/site-packages/pip/_internal/distributions/sdist.py", line 96, in _setup_isolation

    reqs = backend.get_requires_for_build_wheel()

  File "/home/travis/ros/ws_jsk_apc/build/instance_occlsegm/venv/local/lib/python2.7/site-packages/pip/_vendor/pep517/wrappers.py", line 152, in get_requires_for_build_wheel

    'config_settings': config_settings

  File "/home/travis/ros/ws_jsk_apc/build/instance_occlsegm/venv/local/lib/python2.7/site-packages/pip/_vendor/pep517/wrappers.py", line 255, in _call_hook

    raise BackendUnavailable(data.get('traceback', ''))

BackendUnavailable

Traceback (most recent call last):

  File "/opt/ros/indigo/share/catkin_virtualenv/cmake/build_venv.py", line 74, in <module>

    deploy.install_dependencies()

  File "/opt/ros/indigo/lib/python2.7/dist-packages/dh_virtualenv/deployment.py", line 181, in install_dependencies

    subprocess.check_call(self.pip('-r', requirements_path))

  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call

    raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError: Command '['/home/travis/ros/ws_jsk_apc/build/instance_occlsegm/venv/bin/python', '/home/travis/ros/ws_jsk_apc/build/instance_occlsegm/venv/bin/pip', 'install', '--log=/tmp/tmpIbpLOI', '-r', '/home/travis/ros/ws_jsk_apc/build/instance_occlsegm/generated_requirements.txt']' returned non-zero exit status 2

make[2]: *** [venv] Error 1

make[1]: *** [CMakeFiles/instance_occlsegm_generate_virtualenv.dir/all] Error 2

make: *** [all] Error 2

cd /home/travis/ros/ws_jsk_apc/build/instance_occlsegm; catkin build --get-env instance_occlsegm | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -

...............................................................................

Failed << instance_occlsegm:make                    [ Exited with code 2 ]
knorth55 commented 4 years ago

Or we can drop Indigo and add Melodic.

knorth55 commented 4 years ago

I tried melodic docker build locally, but it fails because of this: https://github.com/jsk-ros-pkg/jsk_visualization/issues/764

knorth55 commented 4 years ago

I disable melodic test now. I will reenable it later.

knorth55 commented 4 years ago

@pazeshun build passed in indigo without catkin_virtualenv