Comments (4)
Fixed, please try try
from unifiedmessagerelay.
难道咱俩用的版本不一样?
图片储存的貌似也变了
[CTBMain.utils][DEBUG] (utils.py:460): qq -> tg: [{'data': {'file': '39F2F3683FD4DD4A448DA4684C313ACF.jpg', 'url': 'https://gchat.qpic.cn/gchatpic_new/1203120914/701311009-2792625372-39F2F3683FD4DD4A448DA4684C313ACF/0?vuin=2776926981&term=2'}, 'type': 'image'}]
[CTBMain.cq_utils][DEBUG] (cq_utils.py:185): downloading file to /home/metal/coolq/data/image/39F2F3683FD4DD4A448DA4684C313ACF.jpg
[CTBMain.cq_utils][ERROR] (cq_utils.py:190): {'image': '39F2F3683FD4DD4A448DA4684C313ACF.jpg', 'url': 'https://gchat.qpic.cn/gchatpic_new/1203120914/701311009-2792625372-39F2F3683FD4DD4A448DA4684C313ACF/0?vuin=2776926981&term=2'}
Traceback (most recent call last):
File "/home/user/coolq-telegram-bot/main/cq_utils.py", line 187, in cq_download_pic
urlretrieve(cq_image['url'], path)
File "/usr/lib/python3.6/urllib/request.py", line 258, in urlretrieve
tfp = open(filename, 'wb')
FileNotFoundError: [Errno 2] No such file or directory: '/home/metal/coolq/data/image/39F2F3683FD4DD4A448DA4684C313ACF.jpg'
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/bottle.py", line 862, in _handle
return route.call(**args)
File "/usr/local/lib/python3.6/dist-packages/bottle.py", line 1740, in wrapper
rv = callback(*a, **ka)
File "/home/user/coolq-telegram-bot/cqhttp/__init__.py", line 118, in _handle
result = handler(request.json)
File "/home/user/coolq-telegram-bot/cqhttp/__init__.py", line 63, in wrapper
return func(*args, **kwargs)
File "/home/user/coolq-telegram-bot/plugins/_1100_text_forward.py", line 640, in handle_forward
qq_user=context['user_id'])
File "/home/user/coolq-telegram-bot/main/utils.py", line 484, in send_from_qq_to_tg
pic = open(image_path, 'rb')
TypeError: expected str, bytes or os.PathLike object, not NoneType
127.0.0.1 - - [26/Mar/2018 02:44:33] "POST / HTTP/1.1" 500 741
没这个文件/home/metal/coolq/data/image/39F2F3683FD4DD4A448DA4684C313ACF.jpg
文件是
root@b666662e13af:/home/user/coolq-telegram-bot# cat ../coolq/data/image/39F2F3683FD4DD4A448DA4684C313ACF.jpg.cqimg
[image]
md5=39F2F3683FD4DD4A448DA4684C313ACF
width=719
height=572
size=148169
url=https://gchat.qpic.cn/gchatpic_new/1203120914/701311009-2792625372-39F2F3683FD4DD4A448DA4684C313ACF/0?vuin=2776926981&term=2
addtime=1521985944
from unifiedmessagerelay.
用 docker 的话,路径 CQ_ROOT 不用改,用默认的就好,即 '/home/user/coolq/'
from unifiedmessagerelay.
原来是这样。。谢谢
from unifiedmessagerelay.
Related Issues (20)
- 希望加入联系人互转 HOT 4
- Update Licence HOT 12
- debian 7 wheezy下同时转发多个群聊出现unhandled exception HOT 4
- QQ能到TG,TG不能到QQ HOT 6
- docker 方案部署时报错 HOT 3
- [WARNING](daemon.py:128): Could not reach Coolq-http-api, keep waiting... HOT 13
- Code to delete @usernames and links of forwarder messages?? HOT 1
- Telegram 群组中发送的图片不能被转发到 QQ 群 HOT 3
- 转发的消息中机器人自动添加的冒号在 Android Pie 下无法显示 HOT 8
- 关键词的功能如何使用 HOT 4
- QQ无法转发到TG HOT 1
- 双边无法传输图片 HOT 1
- Readme rot HOT 1
- 建议加个单向模式 HOT 4
- tg到qq: 无法转发群组中机器人发的消息channel_post HOT 11
- Telegram 转发到 QQ 参数错误 -20 HOT 9
- 希望增加多Topology参数的支持 HOT 6
- [FR]有支持XMPP和IRC协议的计划吗? HOT 1
- [Enhancement]Docker部署 HOT 1
- [help wanted]mirai2tg 无法运行 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unifiedmessagerelay.