简体   繁体   English

Windows错误10061-Django通道

[英]Windows Error 10061 - Django Channels

There is a problem when using Django Channels In some Windows 10 machines. 在某些Windows 10计算机中使用Django通道时存在问题。 Basically i can not connect to the Socket [Error 10061] and python gives me out an error 基本上我无法连接到套接字[Error 10061],python给了我一个错误

ERROR - server - Exception inside application: Multiple exceptions: [Errno 10061] Connect call failed ('::1', 6379), [Errno 10061] Connect call failed ('127. 0.0.1', 6379)

I know it's Windows/OS level problem. 我知道这是Windows / OS级别的问题。 I have already turned off all firewalls etc. Still cant connect to the socket 我已经关闭了所有防火墙等。仍然无法连接到套接字

Example repo: https://github.com/andrewgodwin/channels-examples 回购示例: https : //github.com/andrewgodwin/channels-examples

I have fixed the problem, however still don't know the root cause. 我已经解决了问题,但是仍然不知道根本原因。

My solution was: 我的解决方案是:

1) Install Redis windows build https://github.com/rgl/redis/downloads 1)安装Redis Windows构建https://github.com/rgl/redis/downloads

2) Reboot PC 2)重新启动电脑

3) pip install pypiwin32 3)点安装pypiwin32

4) run project 4)运行项目

Even works after turning on all firewalls 在打开所有防火墙后甚至可以工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM