Skip to content
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

Fix rosdep installation for jsk_perception with pip #1883

Merged

Conversation

Projects
None yet
2 participants
@wkentaro
Copy link
Member

commented Sep 21, 2016

No description provided.

@k-okada

This comment has been minimized.

Copy link
Member

commented Sep 21, 2016

if this PR add leveldb to package depends, please put this somewhere else, 3 lines away from pip package, because during bloom-release, that patched to remove pip depend to release as apt.

another solution is something like this, which I tried at somewhere, but did not work well,

<!-- do not change following lines, they are modified during bloom-release with patch command 


-->
<run_depend>hogehog-pip<run_depend>
...
...
<!--


do not ... -->

The reason we need 3 blank space is

@wkentaro

This comment has been minimized.

Copy link
Member Author

commented Sep 21, 2016

The reason we need 3 blank space is

3 blank lines are enough for applying patch stably?

@k-okada

This comment has been minimized.

Copy link
Member

commented Sep 21, 2016

I think so, please read -C section of man diff

2016年9月21日水曜日、Kentaro Wada<notifications@github.com
javascript:_e(%7B%7D,'cvml','notifications@github.com');>さんは書きました:

The reason we need 3 blank space is

3 blank lines are enough for applying patch stably?


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#1883 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAeG3P7eEhJ8mVoJTkf4NGdw48rTPo-9ks5qsQBigaJpZM4KCUcp
.

◉ Kei Okada

@wkentaro

This comment has been minimized.

Copy link
Member Author

commented Sep 21, 2016

Ok, I will change it according to the result of #1874 (comment).
Could you please check it?

@k-okada

This comment has been minimized.

Copy link
Member

commented Oct 1, 2016

do we still need to manually install

 2120  sudo apt-get install libhdf5-dev  
 2121  sudo apt-get install libleveldb-dev  # for plyvel

and even if we put these entry to package.xml, are you sure they are install before starting pip install fcn?

@k-okada

This comment has been minimized.

Copy link
Member

commented Oct 1, 2016

related -> #1874

@wkentaro wkentaro force-pushed the wkentaro:jsk_perception-pip-installation branch from f9a6d90 to 4ac1c86 Oct 10, 2016

@k-okada k-okada merged commit 878b94c into jsk-ros-pkg:master Oct 27, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@wkentaro wkentaro deleted the wkentaro:jsk_perception-pip-installation branch Oct 27, 2016

@k-okada

This comment has been minimized.

Copy link
Member

commented Oct 27, 2016

k-okada@p40-yoga:~/catkin_ws/ws_rosdep/rosdep$ pip show setuptools 
---
Metadata-Version: 2.0
Name: setuptools
Version: 28.6.1
Summary: Easily download, build, install, upgrade, and uninstall Python packages
Home-page: https://github.com/pypa/setuptools
Author: Python Packaging Authority
Author-email: distutils-sig@python.org
Installer: pip
License: UNKNOWN
Location: /usr/local/lib/python2.7/dist-packages
Requires: 
Classifiers:
  Development Status :: 5 - Production/Stable
  Intended Audience :: Developers
  License :: OSI Approved :: MIT License
  Operating System :: OS Independent
  Programming Language :: Python :: 2.6
  Programming Language :: Python :: 2.7
  Programming Language :: Python :: 3
  Programming Language :: Python :: 3.3
  Programming Language :: Python :: 3.4
  Programming Language :: Python :: 3.5
  Topic :: Software Development :: Libraries :: Python Modules
  Topic :: System :: Archiving :: Packaging
  Topic :: System :: Systems Administration
  Topic :: Utilities
Entry-points:
  [console_scripts]
  easy_install = setuptools.command.easy_install:main
  easy_install-3.5 = setuptools.command.easy_install:main
  [distutils.commands]
  alias = setuptools.command.alias:alias
  bdist_egg = setuptools.command.bdist_egg:bdist_egg
  bdist_rpm = setuptools.command.bdist_rpm:bdist_rpm
  bdist_wininst = setuptools.command.bdist_wininst:bdist_wininst
  build_ext = setuptools.command.build_ext:build_ext
  build_py = setuptools.command.build_py:build_py
  develop = setuptools.command.develop:develop
  easy_install = setuptools.command.easy_install:easy_install
  egg_info = setuptools.command.egg_info:egg_info
  install = setuptools.command.install:install
  install_egg_info = setuptools.command.install_egg_info:install_egg_info
  install_lib = setuptools.command.install_lib:install_lib
  install_scripts = setuptools.command.install_scripts:install_scripts
  register = setuptools.command.register:register
  rotate = setuptools.command.rotate:rotate
  saveopts = setuptools.command.saveopts:saveopts
  sdist = setuptools.command.sdist:sdist
  setopt = setuptools.command.setopt:setopt
  test = setuptools.command.test:test
  upload = setuptools.command.upload:upload
  upload_docs = setuptools.command.upload_docs:upload_docs
  [distutils.setup_keywords]
  convert_2to3_doctests = setuptools.dist:assert_string_list
  dependency_links = setuptools.dist:assert_string_list
  eager_resources = setuptools.dist:assert_string_list
  entry_points = setuptools.dist:check_entry_points
  exclude_package_data = setuptools.dist:check_package_data
  extras_require = setuptools.dist:check_extras
  include_package_data = setuptools.dist:assert_bool
  install_requires = setuptools.dist:check_requirements
  namespace_packages = setuptools.dist:check_nsp
  package_data = setuptools.dist:check_package_data
  packages = setuptools.dist:check_packages
  python_requires = setuptools.dist:check_specifier
  setup_requires = setuptools.dist:check_requirements
  test_loader = setuptools.dist:check_importable
  test_runner = setuptools.dist:check_importable
  test_suite = setuptools.dist:check_test_suite
  tests_require = setuptools.dist:check_requirements
  use_2to3 = setuptools.dist:assert_bool
  use_2to3_exclude_fixers = setuptools.dist:assert_string_list
  use_2to3_fixers = setuptools.dist:assert_string_list
  zip_safe = setuptools.dist:assert_bool
  [egg_info.writers]
  PKG-INFO = setuptools.command.egg_info:write_pkg_info
  dependency_links.txt = setuptools.command.egg_info:overwrite_arg
  depends.txt = setuptools.command.egg_info:warn_depends_obsolete
  eager_resources.txt = setuptools.command.egg_info:overwrite_arg
  entry_points.txt = setuptools.command.egg_info:write_entries
  namespace_packages.txt = setuptools.command.egg_info:overwrite_arg
  requires.txt = setuptools.command.egg_info:write_requirements
  top_level.txt = setuptools.command.egg_info:write_toplevel_names
  [setuptools.installation]
  eggsecutable = setuptools.command.easy_install:bootstrap
k-okada@p40-yoga:~/catkin_ws/ws_rosdep/rosdep$ sudo -H pip install -U chainer
Collecting chainer
  Using cached chainer-1.17.0.tar.gz
    Complete output from command python setup.py egg_info:
    running egg_info
    creating pip-egg-info/chainer.egg-info
    writing requirements to pip-egg-info/chainer.egg-info/requires.txt
    writing pip-egg-info/chainer.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/chainer.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/chainer.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/chainer.egg-info/SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found

    Executing cythonize
    Options: {'profile': False, 'annotate': False, 'linetrace': False, 'no_cuda': False}
    **************************************************
    *** WARNING: nvcc not in path.
    *** WARNING: Please set path to nvcc.
    **************************************************
    Include directories: []
    Library directories: []
    creating /tmp/tmpIfxM6i/tmp
    creating /tmp/tmpIfxM6i/tmp/tmpIfxM6i
    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -c /tmp/tmpIfxM6i/a.cpp -o /tmp/tmpIfxM6i/tmp/tmpIfxM6i/a.o
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    /tmp/tmpIfxM6i/a.cpp:1:23: fatal error: cublas_v2.h: No such file or directory
     #include <cublas_v2.h>
                           ^
    compilation terminated.
    **************************************************
    *** WARNING: Include files not found: ['cublas_v2.h', 'cuda.h', 'cuda_profiler_api.h', 'cuda_runtime.h', 'curand.h', 'nvToolsExt.h']
    *** WARNING: Skip installing cuda support
    *** WARNING: Check your CPATH environment variable
    **************************************************
    Include directories: []
    Library directories: []
    creating /tmp/tmpWnIo9n/tmp
    creating /tmp/tmpWnIo9n/tmp/tmpWnIo9n
    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -c /tmp/tmpWnIo9n/a.cpp -o /tmp/tmpWnIo9n/tmp/tmpWnIo9n/a.o
    cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
    /tmp/tmpWnIo9n/a.cpp:1:19: fatal error: cudnn.h: No such file or directory
     #include <cudnn.h>
                       ^
    compilation terminated.
    **************************************************
    *** WARNING: Include files not found: ['cudnn.h']
    *** WARNING: Skip installing cudnn support
    *** WARNING: Check your CPATH environment variable
    **************************************************
    cython path:/usr/local/lib/python2.7/dist-packages
    error: Command '/usr/bin/python' failed:

      command: /usr/bin/python /usr/local/lib/python2.7/dist-packages/cython.py --version
      return code: 2
      output:

    /usr/bin/python: can't open file '/usr/local/lib/python2.7/dist-packages/cython.py': [Errno 2] No such file or directory


    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-CaXFyr/chainer/
k-okada@p40-yoga:~/catkin_ws/ws_rosdep/rosdep$ pip show cython
---
Metadata-Version: 1.1
Name: Cython
Version: 0.24.1
Summary: The Cython compiler for writing C extensions for the Python language.
Home-page: http://cython.org/
Author: Robert Bradshaw, Stefan Behnel, Dag Seljebotn, Greg Ewing, et al.
Author-email: cython-devel@python.org
License: Apache
Location: /usr/local/lib/python2.7/dist-packages
Requires: 
Classifiers:
  Development Status :: 5 - Production/Stable
  Intended Audience :: Developers
  License :: OSI Approved :: Apache Software License
  Operating System :: OS Independent
  Programming Language :: Python
  Programming Language :: Python :: 2
  Programming Language :: Python :: 3
  Programming Language :: C
  Programming Language :: Cython
  Topic :: Software Development :: Code Generators
  Topic :: Software Development :: Compilers
  Topic :: Software Development :: Libraries :: Python Modules
Entry-points:
  [console_scripts]
  cython = Cython.Compiler.Main:setuptools_main
  cygdb = Cython.Debugger.Cygdb:main
  cythonize = Cython.Build.Cythonize:main
@k-okada

This comment has been minimized.

Copy link
Member

commented Oct 27, 2016

need to upgrade cython-pip ...

k-okada@p40-yoga:~/catkin_ws/ws_rosdep/rosdep$ sudo pip install -U cython
The directory '/home/k-okada/.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/k-okada/.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/requests/packages/urllib3/util/ssl_.py:318: 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.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: 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.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
Collecting cython
  Downloading Cython-0.25.1-cp27-cp27mu-manylinux1_x86_64.whl (6.4MB)
    100% |████████████████████████████████| 6.4MB 254kB/s 
Installing collected packages: cython
  Found existing installation: Cython 0.24.1
    Uninstalling Cython-0.24.1:
      Successfully uninstalled Cython-0.24.1
Successfully installed cython-0.25.1
k-okada@p40-yoga:~/catkin_ws/ws_rosdep/rosdep$ ls -al /usr/local/lib/python2.7/dist-packages/cython.py
-rw-r--r-- 1 root staff 520 10月 27 23:11 /usr/local/lib/python2.7/dist-packages/cython.py
k-okada@p40-yoga:~/catkin_ws/ws_rosdep/rosdep$ sudo -H pip install -U chainer
Collecting chainer
  Using cached chainer-1.17.0.tar.gz
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: 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.org/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: 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.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
Requirement already up-to-date: filelock in /usr/local/lib/python2.7/dist-packages (from chainer)
Requirement already up-to-date: nose in /usr/local/lib/python2.7/dist-packages (from chainer)
Collecting numpy>=1.9.0 (from chainer)
  Downloading numpy-1.11.2-cp27-cp27mu-manylinux1_x86_64.whl (15.3MB)
    100% |████████████████████████████████| 15.3MB 107kB/s 
Requirement already up-to-date: protobuf in /usr/local/lib/python2.7/dist-packages (from chainer)
Requirement already up-to-date: six>=1.9.0 in /usr/local/lib/python2.7/dist-packages (from chainer)
Requirement already up-to-date: setuptools in /usr/local/lib/python2.7/dist-packages (from protobuf->chainer)
Building wheels for collected packages: chainer
  Running setup.py bdist_wheel for chainer ... done
  Stored in directory: /root/.cache/pip/wheels/5c/7d/fe/6b190977facebb25183701285107538caea16d12e299db41b9
Successfully built chainer
Installing collected packages: numpy, chainer
  Found existing installation: numpy 1.11.1
    Uninstalling numpy-1.11.1:
      Successfully uninstalled numpy-1.11.1
Successfully installed chainer-1.17.0 numpy-1.11.2
@k-okada

This comment has been minimized.

Copy link
Member

commented on jsk_perception/package.xml in 4ac1c86 Feb 8, 2017

need to update to python-chainer-pip ? @wkentaro

This comment has been minimized.

Copy link
Member

replied Feb 8, 2017

This comment has been minimized.

Copy link
Member Author

replied Feb 8, 2017

Sent #2014

@k-okada

This comment has been minimized.

Copy link
Member

commented on jsk_perception/package.xml in 4ac1c86 Feb 8, 2017

python-dlib-pip ?

This comment has been minimized.

Copy link
Member Author

replied Feb 8, 2017

I don't find that key at this time..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.