You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am seeing a strange conflict with the Python setuptools package when PRERELEASE is set to true. I re-ran the test on an old branch that was working in the past, and am seeing the error where it did not occur before.
It looks like it is finding a version of setuptools in /usr/local/lib/python3.10. This is probably conflicting with the distribution version of setuptools installed using apt install python3-setuptools.
Here is the relevant log section:
2024-08-01T06:27:01.8118366Z -- Running setup.py in /tmp/ws/build_isolated/robotraconteur/out/Python3
2024-08-01T06:27:01.8119379Z running install
2024-08-01T06:27:01.8120724Z /usr/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
2024-08-01T06:27:01.8121926Z !!
2024-08-01T06:27:01.8122111Z
2024-08-01T06:27:01.8122329Z ********************************************************************************
2024-08-01T06:27:01.8122926Z Please avoid running ``setup.py`` directly.
2024-08-01T06:27:01.8123524Z Instead, use pypa/build, pypa/installer or other
2024-08-01T06:27:01.8124100Z standards-based tools.
2024-08-01T06:27:01.8124362Z
2024-08-01T06:27:01.8124897Z See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
2024-08-01T06:27:01.8125689Z ********************************************************************************
2024-08-01T06:27:01.8126151Z
2024-08-01T06:27:01.8126263Z !!
2024-08-01T06:27:01.8126591Z self.initialize_options()
2024-08-01T06:27:01.8127070Z Traceback (most recent call last):
2024-08-01T06:27:01.8127926Z File "/tmp/ws/build_isolated/robotraconteur/out/Python3/setup.py", line 17, in <module>
2024-08-01T06:27:01.8128920Z setup(name='RobotRaconteur',
2024-08-01T06:27:01.8129850Z File "/usr/local/lib/python3.10/dist-packages/setuptools/__init__.py", line 108, in setup
2024-08-01T06:27:01.8130718Z return distutils.core.setup(**attrs)
2024-08-01T06:27:01.8131735Z File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 184, in setup
2024-08-01T06:27:01.8132712Z return run_commands(dist)
2024-08-01T06:27:01.8133800Z File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 200, in run_commands
2024-08-01T06:27:01.8134828Z dist.run_commands()
2024-08-01T06:27:01.8135890Z File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 970, in run_commands
2024-08-01T06:27:01.8136940Z self.run_command(cmd)
2024-08-01T06:27:01.8137931Z File "/usr/local/lib/python3.10/dist-packages/setuptools/dist.py", line 945, in run_command
2024-08-01T06:27:01.8138898Z super().run_command(command)
2024-08-01T06:27:01.8140020Z File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
2024-08-01T06:27:01.8141066Z cmd_obj.ensure_finalized()
2024-08-01T06:27:01.8142224Z File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
2024-08-01T06:27:01.8143291Z self.finalize_options()
2024-08-01T06:27:01.8144460Z File "/usr/local/lib/python3.10/dist-packages/setuptools/command/install.py", line 62, in finalize_options
2024-08-01T06:27:01.8145561Z super().finalize_options()
2024-08-01T06:27:01.8146804Z File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/command/install.py", line 407, in finalize_options
2024-08-01T06:27:01.8148099Z 'dist_fullname': self.distribution.get_fullname(),
2024-08-01T06:27:01.8149365Z File "/usr/local/lib/python3.10/dist-packages/setuptools/_core_metadata.py", line 266, in get_fullname
2024-08-01T06:27:01.8150570Z return _distribution_fullname(self.get_name(), self.get_version())
2024-08-01T06:27:01.8151932Z File "/usr/local/lib/python3.10/dist-packages/setuptools/_core_metadata.py", line 284, in _distribution_fullname
2024-08-01T06:27:01.8153164Z canonicalize_version(version, strip_trailing_zero=False),
2024-08-01T06:27:01.8154778Z TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'
2024-08-01T06:27:01.8155757Z CMake Error at RobotRaconteurPython3/python3_install.cmake:16 (message):
2024-08-01T06:27:01.8156388Z Python install failed
2024-08-01T06:27:01.8156755Z Call Stack (most recent call first):
2024-08-01T06:27:01.8157273Z RobotRaconteurPython3/cmake_install.cmake:46 (include)
2024-08-01T06:27:01.8158086Z cmake_install.cmake:65 (include)
2024-08-01T06:27:01.8158338Z
2024-08-01T06:27:01.8158342Z
2024-08-01T06:27:01.8158490Z ---
2024-08-01T06:27:01.8158897Z --- stderr: robotraconteur
2024-08-01T06:27:01.8159247Z RobotRaconteur Python Package Version 1.2.0
2024-08-01T06:27:01.8159624Z CMake Warning:
2024-08-01T06:27:01.8160051Z Manually-specified variables were not used by the project:
2024-08-01T06:27:01.8160409Z
2024-08-01T06:27:01.8160510Z CATKIN_SKIP_TESTING
2024-08-01T06:27:01.8160696Z
2024-08-01T06:27:01.8160700Z
2024-08-01T06:27:01.8161668Z /tmp/ws/src/robotraconteur/generated_src/Python3/swigwordsize64/RobotRaconteurPythonPYTHON_wrap.cxx: In function ‘PyObject* PyInit__RobotRaconteurPython()’:
2024-08-01T06:27:01.8163913Z /tmp/ws/src/robotraconteur/generated_src/Python3/swigwordsize64/RobotRaconteurPythonPYTHON_wrap.cxx:982:64: warning: ‘void PyEval_InitThreads()’ is deprecated [-Wdeprecated-declarations]
2024-08-01T06:27:01.8165233Z 982 | # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
2024-08-01T06:27:01.8165770Z | ~~~~~~~~~~~~~~~~~~^~
2024-08-01T06:27:01.8167050Z /tmp/ws/src/robotraconteur/generated_src/Python3/swigwordsize64/RobotRaconteurPythonPYTHON_wrap.cxx:208690:3: note: in expansion of macro ‘SWIG_PYTHON_INITIALIZE_THREADS’
2024-08-01T06:27:01.8168179Z 208690 | SWIG_PYTHON_INITIALIZE_THREADS;
2024-08-01T06:27:01.8168547Z | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-08-01T06:27:01.8168989Z In file included from /usr/include/python3.10/Python.h:130,
2024-08-01T06:27:01.8169763Z from /tmp/ws/src/robotraconteur/generated_src/Python3/swigwordsize64/RobotRaconteurPythonPYTHON_wrap.cxx:180:
2024-08-01T06:27:01.8170529Z /usr/include/python3.10/ceval.h:122:37: note: declared here
2024-08-01T06:27:01.8171046Z 122 | Py_DEPRECATED(3.9) PyAPI_FUNC(void) PyEval_InitThreads(void);
2024-08-01T06:27:01.8171508Z | ^~~~~~~~~~~~~~~~~~
2024-08-01T06:27:01.8172399Z /usr/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
2024-08-01T06:27:01.8173117Z !!
2024-08-01T06:27:01.8173234Z
2024-08-01T06:27:01.8173381Z ********************************************************************************
2024-08-01T06:27:01.8173799Z Please avoid running ``setup.py`` directly.
2024-08-01T06:27:01.8174212Z Instead, use pypa/build, pypa/installer or other
2024-08-01T06:27:01.8174621Z standards-based tools.
2024-08-01T06:27:01.8174809Z
2024-08-01T06:27:01.8175190Z See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
2024-08-01T06:27:01.8175763Z ********************************************************************************
2024-08-01T06:27:01.8176036Z
2024-08-01T06:27:01.8176109Z !!
2024-08-01T06:27:01.8176310Z self.initialize_options()
2024-08-01T06:27:01.8176595Z Traceback (most recent call last):
2024-08-01T06:27:01.8177119Z File "/tmp/ws/build_isolated/robotraconteur/out/Python3/setup.py", line 17, in <module>
2024-08-01T06:27:01.8177685Z setup(name='RobotRaconteur',
2024-08-01T06:27:01.8178312Z File "/usr/local/lib/python3.10/dist-packages/setuptools/__init__.py", line 108, in setup
2024-08-01T06:27:01.8178867Z return distutils.core.setup(**attrs)
2024-08-01T06:27:01.8179517Z File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 184, in setup
2024-08-01T06:27:01.8180117Z return run_commands(dist)
2024-08-01T06:27:01.8180745Z File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/core.py", line 200, in run_commands
2024-08-01T06:27:02.9250191Z dist.run_commands()
2024-08-01T06:27:02.9251812Z File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 970, in run_commands
2024-08-01T06:27:02.9252910Z self.run_command(cmd)
2024-08-01T06:27:02.9253850Z File "/usr/local/lib/python3.10/dist-packages/setuptools/dist.py", line 945, in run_command
2024-08-01T06:27:02.9254785Z super().run_command(command)
2024-08-01T06:27:02.9255670Z File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/dist.py", line 988, in run_command
2024-08-01T06:27:02.9256283Z cmd_obj.ensure_finalized()
2024-08-01T06:27:02.9256949Z File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized
2024-08-01T06:27:02.9257560Z self.finalize_options()
2024-08-01T06:27:02.9258276Z File "/usr/local/lib/python3.10/dist-packages/setuptools/command/install.py", line 62, in finalize_options
2024-08-01T06:27:02.9258917Z super().finalize_options()
2024-08-01T06:27:02.9259637Z File "/usr/local/lib/python3.10/dist-packages/setuptools/_distutils/command/install.py", line 407, in finalize_options
2024-08-01T06:27:02.9260400Z 'dist_fullname': self.distribution.get_fullname(),
2024-08-01T06:27:02.9261126Z File "/usr/local/lib/python3.10/dist-packages/setuptools/_core_metadata.py", line 266, in get_fullname
2024-08-01T06:27:02.9261849Z return _distribution_fullname(self.get_name(), self.get_version())
2024-08-01T06:27:02.9262688Z File "/usr/local/lib/python3.10/dist-packages/setuptools/_core_metadata.py", line 284, in _distribution_fullname
2024-08-01T06:27:02.9263406Z canonicalize_version(version, strip_trailing_zero=False),
2024-08-01T06:27:02.9264076Z TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'
2024-08-01T06:27:02.9264765Z CMake Error at RobotRaconteurPython3/python3_install.cmake:16 (message):
2024-08-01T06:27:02.9265226Z Python install failed
2024-08-01T06:27:02.9265509Z Call Stack (most recent call first):
2024-08-01T06:27:02.9265908Z RobotRaconteurPython3/cmake_install.cmake:46 (include)
2024-08-01T06:27:02.9266304Z cmake_install.cmake:65 (include)
The text was updated successfully, but these errors were encountered:
I am seeing a strange conflict with the Python
setuptools
package whenPRERELEASE
is set to true. I re-ran the test on an old branch that was working in the past, and am seeing the error where it did not occur before.It looks like it is finding a version of setuptools in
/usr/local/lib/python3.10
. This is probably conflicting with the distribution version of setuptools installed usingapt install python3-setuptools
.Here is the relevant log section:
The text was updated successfully, but these errors were encountered: