Comments (3)
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 --helperror: 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 PYTHONPATHYou 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 filesYou 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.
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:
and one more patch
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.
Patch for genpy (assumes patch above):
from catkin.
Related Issues (20)
- How to support poetry / pyproject.toml? HOT 4
- cmake: XMLRPC not found HOT 6
- `distutils`: Deprecation warning HOT 3
- catkin_python_setup() breaks message generation in melodic in install space HOT 4
- "catkin config --source-space " failed HOT 1
- documentation link for setup.py (catkin_python_setup) is 404 HOT 3
- <build_type> does not default to catkin if a false condition is present HOT 4
- <built_type> doesn't work anymore with multiple tags HOT 3
- UnicodeEncodeError: 'cp932' codec can't encode character '\u25c1' in position 594: illegal multibyte sequence
- Catkin init detect symbolic link as source HOT 2
- how to clean some package in melodic or noetic HOT 1
- How to install catkin on ros2 HOT 5
- build_type conditions are ignored
- circular dependency when using test_depend HOT 1
- UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc7 in position 19725: invalid continuation byte
- catkin_install_python does not insert shebang line HOT 1
- When using catkin to build third party cmake packages only it does not generate the setup.bash
- Deleting CMakeCache.txt from build space results in incorrect passing of --cmake-args
- Absolute path bug when cross compiling
- Externally provided 3rd-parties (googletest, Boost, etc.) installation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from catkin.