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

install fails on OSX #50

Closed
gerkey opened this issue Jan 11, 2012 · 3 comments
Closed

install fails on OSX #50

gerkey opened this issue Jan 11, 2012 · 3 comments

Comments

@gerkey
Copy link
Contributor

gerkey commented Jan 11, 2012

On OSX (10.7.2, Python 2.7.1), 'make install' yields:

COMMAND=
+ '[' -n '' ']'
+ cd /Users/gerkey/code/catkin/src/catkin
+ /usr/bin/env PYTHONPATH=/Users/gerkey/code/catkin/src/catkin/python:/tmp/catkin/lib/python2.7/dist-packages:/Users/gerkey/code/catkin/src/build/gen/py /usr/bin/python /Users/gerkey/code/catkin/src/catkin/setup.py install --install-layout=deb --prefix=/tmp/catkin
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: option --install-layout not recognized
CMake Error at catkin/CMakeFiles/safe_execute_install.cmake:5 (message):
  Error executing process with arguments
Call Stack (most recent call first):
  catkin/cmake_install.cmake:106 (INCLUDE)
  cmake_install.cmake:32 (INCLUDE)


make: *** [install] Error 1

Removing the --install-layout=deb line from cmake/templates/python_distutils_install.sh.in gets further but results in a different error:

COMMAND=
+ '[' -n '' ']'
+ cd /Users/gerkey/code/catkin/src/genpy
+ /usr/bin/env PYTHONPATH=/Users/gerkey/code/catkin/src/genpy/src:/tmp/catkin/lib/python2.7/dist-packages:/Users/gerkey/code/catkin/src/build/gen/py /usr/bin/python /Users/gerkey/code/catkin/src/genpy/setup.py install --prefix=/tmp/catkin
running install
Checking .pth file support in /tmp/catkin/lib/python2.7/site-packages/
/usr/bin/python -E -c pass
TEST FAILED: /tmp/catkin/lib/python2.7/site-packages/ does NOT support .pth files
error: bad install directory or PYTHONPATH

You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from.  The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /tmp/catkin/lib/python2.7/site-packages/

and your PYTHONPATH environment variable currently contains:

    '/Users/gerkey/code/catkin/src/genpy/src:/tmp/catkin/lib/python2.7/dist-packages:/Users/gerkey/code/catkin/src/build/gen/py'

Here are some of your options for correcting the problem:

* You can choose a different installation directory, i.e., one that is
  on PYTHONPATH or supports .pth files

* You can add the installation directory to the PYTHONPATH environment
  variable.  (It must then also be on PYTHONPATH whenever you run
  Python and want to use the package(s) you are installing.)

* You can set up the installation directory to support ".pth" files by
  using one of the approaches described here:

  http://peak.telecommunity.com/EasyInstall.html#custom-installation-locations

Please make the appropriate changes for your system and try again.
CMake Error at genpy/CMakeFiles/safe_execute_install.cmake:5 (message):
  Error executing process with arguments
Call Stack (most recent call first):
  genpy/cmake_install.cmake:51 (INCLUDE)
  cmake_install.cmake:34 (INCLUDE)


make: *** [install] Error 1
@straszheim
Copy link

This is one for Ken, I think, not familar enough with setuptools to know
what the Right Thing To Do is.

Also, this install step writes a bunch of cruft to the source directory (a
directory 'build'... run svn status post install on linux to see it). Want
to make that go away as well. Also not clear to me what the right thing
there is.

On Wed, Jan 11, 2012 at 12:30 PM, gerkey <
reply@reply.github.com

wrote:

On OSX (10.7.2, Python 2.7.1), 'make install' yields:

COMMAND=

  • '[' -n '' ']'

  • cd /Users/gerkey/code/catkin/src/catkin

  • /usr/bin/env
    PYTHONPATH=/Users/gerkey/code/catkin/src/catkin/python:/tmp/catkin/lib/python2.7/dist-packages:/Users/gerkey/code/catkin/src/build/gen/py
    /usr/bin/python /Users/gerkey/code/catkin/src/catkin/setup.py install
    --install-layout=deb --prefix=/tmp/catkin
    usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
    or: setup.py --help [cmd1 cmd2 ...]
    or: setup.py --help-commands
    or: setup.py cmd --help

    error: option --install-layout not recognized
    CMake Error at catkin/CMakeFiles/safe_execute_install.cmake:5 (message):
    Error executing process with arguments
    Call Stack (most recent call first):
    catkin/cmake_install.cmake:106 (INCLUDE)
    cmake_install.cmake:32 (INCLUDE)

    make: *** [install] Error 1

Removing the --install-layout=deb line from cmake/templates/
python_distutils_install.sh.in gets further but results in a different
error:

COMMAND=

  • '[' -n '' ']'

  • cd /Users/gerkey/code/catkin/src/genpy

  • /usr/bin/env
    PYTHONPATH=/Users/gerkey/code/catkin/src/genpy/src:/tmp/catkin/lib/python2.7/dist-packages:/Users/gerkey/code/catkin/src/build/gen/py
    /usr/bin/python /Users/gerkey/code/catkin/src/genpy/setup.py install
    --prefix=/tmp/catkin
    running install
    Checking .pth file support in /tmp/catkin/lib/python2.7/site-packages/
    /usr/bin/python -E -c pass
    TEST FAILED: /tmp/catkin/lib/python2.7/site-packages/ does NOT support
    .pth files
    error: bad install directory or PYTHONPATH

    You are attempting to install a package to a directory that is not
    on PYTHONPATH and which Python does not read ".pth" files from. The
    installation directory you specified (via --install-dir, --prefix, or
    the distutils default setting) was:

    /tmp/catkin/lib/python2.7/site-packages/

    and your PYTHONPATH environment variable currently contains:

    '/Users/gerkey/code/catkin/src/genpy/src:/tmp/catkin/lib/python2.7/dist-packages:/Users/gerkey/code/catkin/src/build/gen/py'

    Here are some of your options for correcting the problem:

  • You can choose a different installation directory, i.e., one that is
    on PYTHONPATH or supports .pth files

  • You can add the installation directory to the PYTHONPATH environment
    variable. (It must then also be on PYTHONPATH whenever you run
    Python and want to use the package(s) you are installing.)

  • You can set up the installation directory to support ".pth" files by
    using one of the approaches described here:

http://peak.telecommunity.com/EasyInstall.html#custom-installation-locations

Please make the appropriate changes for your system and try again.
CMake Error at genpy/CMakeFiles/safe_execute_install.cmake:5 (message):
Error executing process with arguments
Call Stack (most recent call first):
genpy/cmake_install.cmake:51 (INCLUDE)
cmake_install.cmake:34 (INCLUDE)

make: *** [install] Error 1


Reply to this email directly or view it on GitHub:
https://github.com/willowgarage/catkin/issues/50

kwc pushed a commit to kwc/catkin that referenced this issue Jan 14, 2012
@kwc
Copy link
Member

kwc commented Jan 14, 2012

The gist of the issue is that deb-layout uses dist-packages; the rest of the universe uses site-packages. The option isn't even available on OS X setuptools.

A first pass at fixing this is here:

kwc@0dd683d

and one more patch

kwc@a996cb6

The patch is not as clean or correct as I would like, so I won't issue a pull request on it. genpy-extras.cmake also needs to be patched.

I have tested on OSX and Ubuntu, and Brian has tested on his OS X setup. The current patch lets you install, but still has vestigial dist-packages stuff.

Troy: can you hack the patch into acceptable shape?

Separate "issue": catkin has two copies of rules.python_distutils.em

@kwc
Copy link
Member

kwc commented Jan 14, 2012

Patch for genpy (assumes patch above):

kwc/genpy@1fa9fe9

@kwc kwc closed this as completed Jan 16, 2012
cwecht pushed a commit to cwecht/catkin that referenced this issue Mar 20, 2018
Most importantly this should fix ros#41. Before the ROS integration was built
unoptimized which caused performance issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants