UserWarning: .python-eggs is writable by group/others and vulnerable to attack when used with get_r

chmod g+rwx,o+rwx ~/Python-eggs/

chmod g-w,o-w ~/Python-eggs/


ll ~/.python-eggs
total 12
drwxr-xr-x  3 silva silva 4096  8月 11 16:38 ./
drwxr-xr-x 89 silva silva 4096 11月  4 09:24 ../
drwxrwxrwx  2 silva silva 4096  8月 11 16:38 MySQL_python-1.2.5-py2.7-linux-x86_64.egg-tmp/

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
python detect.py /usr/lib/python3/dist-packages/pkg_resources/__init__.py:1235: UserWarning: /home/ucar/.cache/Python-Eggs is writable by group/others and vulnerable to attack when used with get_resource_filename. Consider a more secure location (set with .set_extraction_path or the PYTHON_EGG_CACHE environment variable). warnings.warn(msg, UserWarning) Downloading https://ultralytics.com/assets/Arial.ttf to /home/ucar/.config/Ultralytics/Arial.ttf... Traceback (most recent call last): File "/home/ucar/yolov3-9.6.0/utils/plots.py", line 58, in check_font return ImageFont.truetype(str(font) if font.exists() else font.name, size) File "/usr/local/lib/python3.6/dist-packages/PIL/ImageFont.py", line 655, in truetype return freetype(font) File "/usr/local/lib/python3.6/dist-packages/PIL/ImageFont.py", line 652, in freetype return FreeTypeFont(font, size, index, encoding, layout_engine) File "/usr/local/lib/python3.6/dist-packages/PIL/ImageFont.py", line 194, in __init__ font, size, index, encoding, layout_engine=layout_engine OSError: cannot open resource During handling of the above exception, another exception occurred: Traceback (most recent call last): File "detect.py", line 30, in <module> from models.common import DetectMultiBackend File "/home/ucar/yolov3-9.6.0/models/common.py", line 25, in <module> from utils.plots import Annotator, colors, save_one_box File "/home/ucar/yolov3-9.6.0/utils/plots.py", line 70, in <module> class Annotator: File "/home/ucar/yolov3-9.6.0/utils/plots.py", line 72, in Annotator check_font() # download TTF if necessary File "/home/ucar/yolov3-9.6.0/utils/plots.py", line 64, in check_font return ImageFont.truetype(str(font), size) File "/usr/local/lib/python3.6/dist-packages/PIL/ImageFont.py", line 655, in truetype return freetype(font) File "/usr/local/lib/python3.6/dist-packages/PIL/ImageFont.py", line 652, in freetype return FreeTypeFont(font, size, index, encoding, layout_engine) File "/usr/local/lib/python3.6/dist-packages/PIL/ImageFont.py", line 194, in __init__ font, size, index, encoding, layout_engine=layout_engine OSError: cannot open resource
06-06
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值