Skip to content

Conversation

@dirk-thomas
Copy link
Member

Resolve regression introduced in #30. Fixes #31.

@dirk-thomas dirk-thomas added the bug Something isn't working label Mar 6, 2020
@dirk-thomas dirk-thomas self-assigned this Mar 6, 2020
@dirk-thomas dirk-thomas added this to the 0.2.5 milestone Mar 6, 2020
Copy link

@zmichaels11 zmichaels11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will change the exception to a log.
Does this allow a python module to still build?

@dirk-thomas
Copy link
Member Author

This will change the exception to a log.

Can you please clarify what kind of "log" you are referring to?

Before the build fails with an AttributeError for me (see referenced issue). With the patch the package builds as expected and I don't see any messages indicating problems.

Does this allow a python module to still build?

I don't know what you mean with this. Before the package build was not even attempted since the metadata couldn't be processed correctly. After the build is invoked and passes.

@zmichaels11
Copy link

zmichaels11 commented Mar 6, 2020

Confirmed this does build the package.

ubuntu@hostname:~/ws$ colcon build --event-handlers console_direct+
Starting >>> test-py-module
running egg_info                             
writing /home/ubuntu/ws/build/test-py-module/test_py_module.egg-info/PKG-INFO
writing dependency_links to /home/ubuntu/ws/build/test-py-module/test_py_module.egg-info/dependency_links.txt
writing requirements to /home/ubuntu/ws/build/test-py-module/test_py_module.egg-info/requires.txt
writing top-level names to /home/ubuntu/ws/build/test-py-module/test_py_module.egg-info/top_level.txt
reading manifest file '/home/ubuntu/ws/build/test-py-module/test_py_module.egg-info/SOURCES.txt'
writing manifest file '/home/ubuntu/ws/build/test-py-module/test_py_module.egg-info/SOURCES.txt'
running build
running build_py
running install
running install_lib
running install_egg_info
removing '/home/ubuntu/ws/install/test-py-module/lib/python3.6/site-packages/test_py_module-0.1-py3.6.egg-info' (and everything under it)
Copying /home/ubuntu/ws/build/test-py-module/test_py_module.egg-info to /home/ubuntu/ws/install/test-py-module/lib/python3.6/site-packages/test_py_module-0.1-py3.6.egg-info
running install_scripts
writing list of installed files to '/home/ubuntu/ws/build/test-py-module/install.log'
Finished <<< test-py-module [0.71s]          

Summary: 1 package finished [1.32s]

Expected output:

ubuntu@hostname:~/ws$ colcon build --event-handlers console_direct+
Starting >>> test-py-module
running egg_info                             
creating /home/ubuntu/ws/build/test-py-module/test_py_module.egg-info
writing /home/ubuntu/ws/build/test-py-module/test_py_module.egg-info/PKG-INFO
writing dependency_links to /home/ubuntu/ws/build/test-py-module/test_py_module.egg-info/dependency_links.txt
writing requirements to /home/ubuntu/ws/build/test-py-module/test_py_module.egg-info/requires.txt
writing top-level names to /home/ubuntu/ws/build/test-py-module/test_py_module.egg-info/top_level.txt
writing manifest file '/home/ubuntu/ws/build/test-py-module/test_py_module.egg-info/SOURCES.txt'
reading manifest file '/home/ubuntu/ws/build/test-py-module/test_py_module.egg-info/SOURCES.txt'
writing manifest file '/home/ubuntu/ws/build/test-py-module/test_py_module.egg-info/SOURCES.txt'
running build
running build_py
creating /home/ubuntu/ws/build/test-py-module/build
creating /home/ubuntu/ws/build/test-py-module/build/lib
creating /home/ubuntu/ws/build/test-py-module/build/lib/test_py_module
copying test_py_module/__init__.py -> /home/ubuntu/ws/build/test-py-module/build/lib/test_py_module
copying test_py_module/run_annoy.py -> /home/ubuntu/ws/build/test-py-module/build/lib/test_py_module
running install
running install_lib
creating /home/ubuntu/ws/install/test-py-module/lib/python3.6/site-packages/test_py_module
copying /home/ubuntu/ws/build/test-py-module/build/lib/test_py_module/__init__.py -> /home/ubuntu/ws/install/test-py-module/lib/python3.6/site-packages/test_py_module
copying /home/ubuntu/ws/build/test-py-module/build/lib/test_py_module/run_annoy.py -> /home/ubuntu/ws/install/test-py-module/lib/python3.6/site-packages/test_py_module
byte-compiling /home/ubuntu/ws/install/test-py-module/lib/python3.6/site-packages/test_py_module/__init__.py to __init__.cpython-36.pyc
byte-compiling /home/ubuntu/ws/install/test-py-module/lib/python3.6/site-packages/test_py_module/run_annoy.py to run_annoy.cpython-36.pyc
running install_egg_info
Copying /home/ubuntu/ws/build/test-py-module/test_py_module.egg-info to /home/ubuntu/ws/install/test-py-module/lib/python3.6/site-packages/test_py_module-0.1-py3.6.egg-info
running install_scripts
writing list of installed files to '/home/ubuntu/ws/build/test-py-module/install.log'
Finished <<< test-py-module [0.64s]          

Summary: 1 package finished [1.03s]

@dirk-thomas dirk-thomas merged commit fa3ee4b into master Mar 6, 2020
@delete-merged-branch delete-merged-branch bot deleted the dirk-thomas/fix-attribute-error branch March 6, 2020 17:16
@zmichaels11
Copy link

@dirk-thomas I updated the previous comment with the output from version 0.23 (installed via apt) and it looks like it did more in the previous version.

@dirk-thomas
Copy link
Member Author

dirk-thomas commented Mar 6, 2020

I do get the same output as before - the one you mentioned as expected output - with this patch. Are you sure you performed both builds from a clean - not previously built - workspace?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Development

Successfully merging this pull request may close these issues.

colcon build failing on python modules

3 participants