fishros / install

一键安装程序,欢迎大家提交代码和小鱼一起一键安装停止浪费生命
https://fishros.github.io/install/
1.6k stars 207 forks source link

AttributeError: module 'tools.tool_install_ros' has no attribute 'Tool' #73

Closed RuiHuangNUS closed 2 months ago

RuiHuangNUS commented 2 months ago

Type the number in [] to choose a function:1 Run CMD Task:[wget http://mirror.fishros.com/install/tools/tool_install_ros.py -O /tmp/fishinstall/tools/tool_install_ros.py --no-check-certificate] [/][1.60s] --2024-09-04 21:27:23-- http://mirror.fishros.com/install/tools/tool[\][1.61s] 正在解析主机 mirror.fishros.com (mirror.fishros.com)... 47.119.165.16[|][1.61s] 正在连接 mirror.fishros.com (mirror.fishros.com)|47.119.165.169|:80..[-][1.61s] CMD Result:code:8

Run CMD Task:[wget http://mirror.fishros.com/install/tools/tool_config_rosenv.py -O /tmp/fishinstall/tools/tool_config_rosenv.py --no-check-certificate] [/][3.41s] --2024-09-04 21:27:25-- http://mirror.fishros.com/install/tools/tool[\][3.49s] 正在解析主机 mirror.fishros.com (mirror.fishros.com)... 47.119.165.16[|][3.49s] 正在连接 mirror.fishros.com (mirror.fishros.com)|47.119.165.169|:80..[-][3.49s] CMD Result:success

Run CMD Task:[wget http://mirror.fishros.com/install/tools/tool_config_system_source.py -O /tmp/fishinstall/tools/tool_config_system_source.py --no-check-certificate] [/][0.50s] --2024-09-04 21:27:28-- http://mirror.fishros.com/install/tools/tool[\][0.59s] 正在解析主机 mirror.fishros.com (mirror.fishros.com)... 47.119.165.16[|][0.59s] 正在连接 mirror.fishros.com (mirror.fishros.com)|47.119.165.169|:80..[-][0.59s] CMD Result:success

Traceback (most recent call last): File "/tmp/fishinstall/install.py", line 125, in main() File "/tmp/fishinstall/install.py", line 117, in main run_tool_file(tools[code]['tool'].replace(url_prefix,'').replace("/",".")) File "/tmp/fishinstall/tools/base.py", line 1408, in run_tool_file tool = importlib.import_module(file.replace(".py","")).Tool() AttributeError: module 'tools.tool_install_ros' has no attribute 'Tool'

fishros commented 2 months ago

尝试重新运行下试试,偶然的下载失败应该

RuiHuangNUS commented 2 months ago

我在境外,这几天都不行。之前还成功过。

fishros commented 2 months ago

这个网址触发关键词了估计,我给你提供一个新的命令

sudo apt install git -y && git clone https://github.com/fishros/install.git && cd install && export FISHROS_URL="" && sudo -E python3 install.py

RuiHuangNUS commented 2 months ago

Traceback (most recent call last): File "install.py", line 125, in main() File "install.py", line 117, in main run_tool_file(tools[code]['tool'].replace(url_prefix,'').replace("/",".")) File "/home/ruihuang/install/tools/base.py", line 1408, in run_tool_file tool = importlib.import_module(file.replace(".py","")).Tool() File "/usr/lib/python3.8/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 973, in _find_and_load_unlocked ModuleNotFoundError: No module named 'toolstool_install_ros'

fishros commented 2 months ago

正在修复

fishros commented 2 months ago

已经修复,请尝试

rm -rf install && sudo apt install git -y && git clone https://github.com/fishros/install.git && cd install && sudo python3 install.py

RuiHuangNUS commented 2 months ago

成功了,感谢!