• 首页 首页 icon
  • 工具库 工具库 icon
    • IP查询 IP查询 icon
  • 内容库 内容库 icon
    • 快讯库 快讯库 icon
    • 精品库 精品库 icon
    • 问答库 问答库 icon
  • 更多 更多 icon
    • 服务条款 服务条款 icon

UserWarning: Usage of dash-separated ‘script-dir‘ will not be supported in future versions. 笔记

武飞扬头像
zhangrelay
帮助1

问题详细描述如下,通常出现在编译时候:

/usr/lib/python3/dist-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead

截图如下:

学新通

打开对应文件夹下setup.cfg:

学新通

按warn要求修改:

 学新通

  1.  
    [develop]
  2.  
    script-dir=$base/lib/f1tenth_gym_ros
  3.  
    [install]
  4.  
    install-scripts=$base/lib/f1tenth_gym_ros

 修改为:

  1.  
    [develop]
  2.  
    script_dir=$base/lib/f1tenth_gym_ros
  3.  
    [install]
  4.  
    install_scripts=$base/lib/f1tenth_gym_ros

重新编译,就没有警告了。

学新通


zhangrelay@LAPTOP-5REQ7K1L:~$ cd ros_ws/f1tenth_gym_ros/
zhangrelay@LAPTOP-5REQ7K1L:~/ros_ws/f1tenth_gym_ros$ ls
build  install  log  src
zhangrelay@LAPTOP-5REQ7K1L:~/ros_ws/f1tenth_gym_ros$ colcon build
Starting >>> f1tenth_gym_ros
/usr/lib/python3/dist-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'script-dir' will not be supported in future versions. Please use the underscore name 'script_dir' instead
  warnings.warn(
/usr/lib/python3/dist-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'install-scripts' will not be supported in future versions. Please use the underscore name 'install_scripts' instead
  warnings.warn(
running egg_info
writing ../build/f1tenth_gym_ros/f1tenth_gym_ros.egg-info/PKG-INFO
writing dependency_links to ../build/f1tenth_gym_ros/f1tenth_gym_ros.egg-info/dependency_links.txt
writing entry points to ../build/f1tenth_gym_ros/f1tenth_gym_ros.egg-info/entry_points.txt
writing requirements to ../build/f1tenth_gym_ros/f1tenth_gym_ros.egg-info/requires.txt
writing top-level names to ../build/f1tenth_gym_ros/f1tenth_gym_ros.egg-info/top_level.txt
reading manifest file '../build/f1tenth_gym_ros/f1tenth_gym_ros.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file '../build/f1tenth_gym_ros/f1tenth_gym_ros.egg-info/SOURCES.txt'
running build
running build_py
running install
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running install_lib
running install_data
running install_egg_info
removing '/home/zhangrelay/ros_ws/f1tenth_gym_ros/install/f1tenth_gym_ros/lib/python3.10/site-packages/f1tenth_gym_ros-0.0.0-py3.10.egg-info' (and everything under it)
Copying ../build/f1tenth_gym_ros/f1tenth_gym_ros.egg-info to /home/zhangrelay/ros_ws/f1tenth_gym_ros/install/f1tenth_gym_ros/lib/python3.10/site-packages/f1tenth_gym_ros-0.0.0-py3.10.egg-info
running install_scripts
Installing gym_bridge script to /home/zhangrelay/ros_ws/f1tenth_gym_ros/install/f1tenth_gym_ros/lib/f1tenth_gym_ros
writing list of installed files to '/home/zhangrelay/ros_ws/f1tenth_gym_ros/build/f1tenth_gym_ros/install.log'
Finished <<< f1tenth_gym_ros [1.11s]
zhangrelay@LAPTOP-5REQ7K1L:~/ros_ws/f1tenth_gym_ros$ colcon build
Starting >>> f1tenth_gym_ros
running egg_info
writing ../build/f1tenth_gym_ros/f1tenth_gym_ros.egg-info/PKG-INFO
writing dependency_links to ../build/f1tenth_gym_ros/f1tenth_gym_ros.egg-info/dependency_links.txt
writing entry points to ../build/f1tenth_gym_ros/f1tenth_gym_ros.egg-info/entry_points.txt
writing requirements to ../build/f1tenth_gym_ros/f1tenth_gym_ros.egg-info/requires.txt
writing top-level names to ../build/f1tenth_gym_ros/f1tenth_gym_ros.egg-info/top_level.txt
reading manifest file '../build/f1tenth_gym_ros/f1tenth_gym_ros.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file '../build/f1tenth_gym_ros/f1tenth_gym_ros.egg-info/SOURCES.txt'
running build
running build_py
running install
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running install_lib
running install_data
running install_egg_info
removing '/home/zhangrelay/ros_ws/f1tenth_gym_ros/install/f1tenth_gym_ros/lib/python3.10/site-packages/f1tenth_gym_ros-0.0.0-py3.10.egg-info' (and everything under it)
Copying ../build/f1tenth_gym_ros/f1tenth_gym_ros.egg-info to /home/zhangrelay/ros_ws/f1tenth_gym_ros/install/f1tenth_gym_ros/lib/python3.10/site-packages/f1tenth_gym_ros-0.0.0-py3.10.egg-info
running install_scripts
Installing gym_bridge script to /home/zhangrelay/ros_ws/f1tenth_gym_ros/install/f1tenth_gym_ros/lib/f1tenth_gym_ros
writing list of installed files to '/home/zhangrelay/ros_ws/f1tenth_gym_ros/build/f1tenth_gym_ros/install.log'
Finished <<< f1tenth_gym_ros [1.10s]
zhangrelay@LAPTOP-5REQ7K1L:~/ros_ws/f1tenth_gym_ros$


这篇好文章是转载于:学新通技术网

  • 版权申明: 本站部分内容来自互联网,仅供学习及演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,请提供相关证据及您的身份证明,我们将在收到邮件后48小时内删除。
  • 本站站名: 学新通技术网
  • 本文地址: /boutique/detail/tanhgfkhkh
系列文章
更多 icon
同类精品
更多 icon
继续加载