GithubHelp home page GithubHelp logo

Comments (10)

dirk-thomas avatar dirk-thomas commented on June 29, 2024

The Debian package doesn't seem to contain any of the Python modules (at least on amd64):

$ dpkg -L ros-r2b2-topic-monitor 
/.
/opt
/opt/ros
/opt/ros/r2b2
/opt/ros/r2b2/lib
/opt/ros/r2b2/lib/python3.5
/opt/ros/r2b2/lib/python3.5/site-packages
/opt/ros/r2b2/lib/python3.5/site-packages/topic_monitor-0.0.0.egg-info
/opt/ros/r2b2/lib/python3.5/site-packages/topic_monitor-0.0.0.egg-info/PKG-INFO
/opt/ros/r2b2/lib/python3.5/site-packages/topic_monitor-0.0.0.egg-info/dependency_links.txt
/opt/ros/r2b2/lib/python3.5/site-packages/topic_monitor-0.0.0.egg-info/entry_points.txt
/opt/ros/r2b2/lib/python3.5/site-packages/topic_monitor-0.0.0.egg-info/requires.txt
/opt/ros/r2b2/lib/python3.5/site-packages/topic_monitor-0.0.0.egg-info/top_level.txt
/opt/ros/r2b2/lib/topic_monitor
/opt/ros/r2b2/lib/topic_monitor/data_publisher
/opt/ros/r2b2/lib/topic_monitor/launch_depth_demo
/opt/ros/r2b2/lib/topic_monitor/launch_fragmentation_demo
/opt/ros/r2b2/lib/topic_monitor/launch_reliability_demo
/opt/ros/r2b2/lib/topic_monitor/topic_monitor
/opt/ros/r2b2/share
/opt/ros/r2b2/share/ament_index
/opt/ros/r2b2/share/ament_index/resource_index
/opt/ros/r2b2/share/ament_index/resource_index/packages
/opt/ros/r2b2/share/ament_index/resource_index/packages/topic_monitor
/opt/ros/r2b2/share/topic_monitor
/opt/ros/r2b2/share/topic_monitor/package.xml
/usr
/usr/share
/usr/share/doc
/usr/share/doc/ros-r2b2-topic-monitor
/usr/share/doc/ros-r2b2-topic-monitor/changelog.Debian.gz

from demos.

clalancette avatar clalancette commented on June 29, 2024

Yeah, the file list looks the same on ARM64.

from demos.

nuclearsandwich avatar nuclearsandwich commented on June 29, 2024

Examining the build output now. Looks like it isn't building properly. Now to determine why.

from demos.

nuclearsandwich avatar nuclearsandwich commented on June 29, 2024

dh_clean/setup.py clean can't find ament_python even during binarydeb time.

01:21:00 dh clean -v --buildsystem=pybuild --with python3
01:21:00    dh_testdir -O-v -O--buildsystem=pybuild
01:21:00    debian/rules override_dh_auto_clean
01:21:00 make[1]: Entering directory '/tmp/binarydeb/ros-r2b2-topic-monitor-0.0.0'
01:21:00 # We don't have ament_python in the iamge that creates sourcedebs
01:21:00 # So for now we need to give a pass to dh_auto_clean invoking setup.py clean.
01:21:00 dh_auto_clean || true
01:21:00 	pybuild --clean -i python{version} -p 3.5 --dir .
01:21:00 I: pybuild base:184: python3.5 setup.py clean 
01:21:00 Traceback (most recent call last):
01:21:00   File "setup.py", line 1, in <module>
01:21:00     from ament_python.data_files import get_data_files
01:21:00 ImportError: No module named 'ament_python'
01:21:00 E: pybuild pybuild:274: clean: plugin distutils failed with: exit code=1: python3.5 setup.py clean 
01:21:00 dh_auto_clean: pybuild --clean -i python{version} -p 3.5 --dir . returned exit code 13

There's not much output about building the package, but setup.py build is invoked

01:21:01  debian/rules build
01:21:01 dh build -v --buildsystem=pybuild --with python3
01:21:01    dh_testdir -O-v -O--buildsystem=pybuild
01:21:01    dh_update_autotools_config -O-v -O--buildsystem=pybuild
01:21:01    debian/rules override_dh_auto_configure
01:21:01 make[1]: Entering directory '/tmp/binarydeb/ros-r2b2-topic-monitor-0.0.0'
01:21:01 # In case we're installing to a non-standard location, look for a setup.sh
01:21:01 # in the install tree that was dropped by catkin, and source it.  It will
01:21:01 # set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
01:21:01 if [ -f "/opt/ros/r2b2/setup.sh" ]; then . "/opt/ros/r2b2/setup.sh"; fi && \
01:21:01 dh_auto_configure 
01:21:01 	pybuild --configure -i python{version} -p 3.5 --dir .
01:21:02 I: pybuild base:184: python3.5 setup.py config 
01:21:02 running config
01:21:02 make[1]: Leaving directory '/tmp/binarydeb/ros-r2b2-topic-monitor-0.0.0'
01:21:02    debian/rules override_dh_auto_build
01:21:02 make[1]: Entering directory '/tmp/binarydeb/ros-r2b2-topic-monitor-0.0.0'
01:21:02 # In case we're installing to a non-standard location, look for a setup.sh
01:21:02 # in the install tree that was dropped by catkin, and source it.  It will
01:21:02 # set things like CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
01:21:02 if [ -f "/opt/ros/r2b2/setup.sh" ]; then . "/opt/ros/r2b2/setup.sh"; fi && \
01:21:02 dh_auto_build
01:21:03 	pybuild --build -i python{version} -p 3.5 --dir .
01:21:03 I: pybuild base:184: /usr/bin/python3 setup.py build 
01:21:03 running build
01:21:03 make[1]: Leaving directory '/tmp/binarydeb/ros-r2b2-topic-monitor-0.0.0'

from demos.

nuclearsandwich avatar nuclearsandwich commented on June 29, 2024

Currently making changes to bloom to deal with ros2/rosdistro#9. I've figured out why ament_python wasn't being found but I'm not sure how or if that would affect the later build.

from demos.

dirk-thomas avatar dirk-thomas commented on June 29, 2024

The Debian package of topic_monitor does contain its scripts in the libexec folder. So ament_python seems to do its job correctly.

from demos.

nuclearsandwich avatar nuclearsandwich commented on June 29, 2024

The only python file that isn't a script or launch file (which are registered as entrypoints and installed) is the empty file here correct?

from demos.

nuclearsandwich avatar nuclearsandwich commented on June 29, 2024

Sure enough when building the tarball at source time we see this output.

12:31:39 dpkg-source: warning: newly created empty file 'topic_monitor/__init__.py' will not be represented in diff
12:31:39 dpkg-source: warning: newly created empty file 'topic_monitor/launch_files/__init__.py' will not be represented in diff
12:31:39 dpkg-source: warning: newly created empty file 'topic_monitor/scripts/__init__.py' will not be represented in diff

Deleting the tarball and rebuilding the sourcedebs should resolve the issue. The root cause is the confluence of not cranking version numbers and debian's packaging system treating new empty files as irrelevant.

from demos.

nuclearsandwich avatar nuclearsandwich commented on June 29, 2024

Purging the upstream tarball does indeed resolve the issue. The package currently building on the farm is busted due to the bloom changes around ros2/rosdistro#9 but freshest of fresh packages are blossoming as I write this 🌸

from demos.

dirk-thomas avatar dirk-thomas commented on June 29, 2024

Resolved in the latest Debian package (0.0.0-10).

from demos.

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.