Example if one try to use python 3.6.5
located in pyenv
environment
./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release -DSETUPTOOLS_DEB_LAYOUT=OFF -DPYTHON_EXECUTABLE=/home/user/.pyenv/versions/3.6.5/bin/python3.6m -DPYTHON_INCLUDE_DIR=/home/user/.pyenv/versions/3.6.5/include/python3.6m -DPYTHON_LIBRARY=/home/user/.pyenv/versions/3.6.5/lib/libpython3.6m.so
./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release -DSETUPTOOLS_DEB_LAYOUT=OFF -DPYTHON_EXECUTABLE=~/.pyenv/versions/ros/bin/python3 -DPYTHON_INCLUDE_DIRS=~/.pyenv/versions/3.6.9/include/python3.6m
wget ftp://ftp.calculate-linux.org/calculate/source/sip/sip-4.19.22.tar.gz
python configure.py
make
make install
python_oculus
ros_comm/roslz4
rospack
qt_gui_cpp
Possibly due to using pyenv and everything, default_sip_dir == home/zulfaqar/.pyenv/versions/ros/share/sip
, which is not a folder. I edited sipconfig.py
to point to a proper folder, i.e. /usr/share/sip
std_msgs
error
pip install pyyaml
pip install empy
(!!! do not install em
source)
jsk_recognition_utils
compile error as follows
SyntaxError: Non-ASCII character '\xe3' in file test-enc.py on line 1,
but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
Append # coding: utf-8
in jsk_recognition/jsk_recognition_utils/python/jsk_recognition_utils/CMakeLists.txt
as follows
COMMAND python$ENV{ROS_PYTHON_VERSION} -c "#coding: utf-8; import sys, numpy; sys.stdout.write(numpy.get_include())"
Clone https://github.com/jsk-ros-pkg/jsk_3rdparty
and compile
Source
This error occured when compiling assimp_devel
package. However, the culprit is download_checkmd5.py
in ros/rosbuild/core/rosbuild/bin
. This is due to urllib
written in the file uses Python 2
syntax. In Python 3
, urllib
module is separated, thus it wont work.
A workaround is to edit download_checkmd5.py
and add the following
import urllib.request
data = urllib.request.urlretrieve("http://...")