UzJu / Cloud-Bucket-Leak-Detection-Tools

六大云存储,泄露利用检测工具
MIT License
1.03k stars 134 forks source link

腾讯云COS模块运作不起来,老是说缺少urlparse #8

Closed Gametasd closed 2 years ago

Gametasd commented 2 years ago

在requirements安装完之后 图片 一直不起来,自己也尝试修改了一下,也还是运作不起来,很奇怪

Gametasd commented 2 years ago

我也安装了cos-python-sdk-v5模块

Gametasd commented 2 years ago

requirements是正常安装完的

Gametasd commented 2 years ago

换了qcloud3就可以了

Gametasd commented 2 years ago

师傅,这个的话,我修好了,qcloud支持的是py2的emmm,所以我去github上找了一位老哥开源的支持py3的qcloud然后把import改一下就ok了,华为云的obs可能需要还需要安装一下esdk-obs-python库才可以正常使用

liao545 commented 2 years ago

师傅,这个的话,我修好了,qcloud支持的是py2的emmm,所以我去github上找了一位老哥开源的支持py3的qcloud然后把import改一下就ok了,华为云的obs可能需要还需要安装一下esdk-obs-python库才可以正常使用 师傅怎么改的,麻烦教教我

liao545 commented 2 years ago

我也找到了,感谢提示

UzJu commented 2 years ago

不好意思 最近有些忙 没怎么看Github 感谢您的提问与分享。

UzJu commented 2 years ago

师傅可以试试pip3 install cos-python-sdk-v5 目前测试是可以解决的

z7701858 commented 2 years ago

师傅可以试试pip3 install cos-python-sdk-v5 目前测试是可以解决的

Collecting qcloud-cos
  Using cached qcloud_cos-3.3.6.tar.gz (10 kB)
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-mujijnzd/qcloud-cos/setup.py'"'"'; __file__='"'"'/tmp/pip-install-mujijnzd/qcloud-cos/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-mujijnzd/qcloud-cos/pip-egg-info
         cwd: /tmp/pip-install-mujijnzd/qcloud-cos/
    Complete output (1 lines):
    Sorry, only python 2.6 or 2.7 is supported
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

大佬看看?

UzJu commented 2 years ago

@z7701858 python版本是多少

PolarPeak commented 2 years ago

我3.9.8也是同样报错,直接把Cloud-Bucket-Leak-Detection-Tools-0.4.0\core\tencent\cos.py单独拿出来用了

UzJu commented 2 years ago

@PolarPeak 这个我再检查一下