Git Product home page Git Product logo

Comments (3)

straszheim avatar straszheim commented on July 4, 2024

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 <
[email protected]

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

from catkin.

kwc avatar kwc commented on July 4, 2024

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

from catkin.

kwc avatar kwc commented on July 4, 2024

Patch for genpy (assumes patch above):

kwc/genpy@1fa9fe9

from catkin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.