wanglu58 / webssh Goto Github PK
View Code? Open in Web Editor NEWDjango+websocket+paramiko操作Linux
Django+websocket+paramiko操作Linux
环境 win10
python 3.7
运行后点击登录 报错,是否是因为版本原因?
return await application(scope, receive, send) File "C:\Users\97281\AppData\Local\Programs\Python\Python37\lib\site-packages\channels\sessions.py", line 47, in __call__ return await self.inner(dict(scope, cookies=cookies), receive, send) File "C:\Users\97281\AppData\Local\Programs\Python\Python37\lib\site-packages\channels\sessions.py", line 172, in __call__ return await self.inner(self.scope, receive, self.send) File "C:\Users\97281\AppData\Local\Programs\Python\Python37\lib\site-packages\channels\auth.py", line 181, in __call__ return await super().__call__(scope, receive, send) File "C:\Users\97281\AppData\Local\Programs\Python\Python37\lib\site-packages\channels\middleware.py", line 26, in __call__ return await self.inner(scope, receive, send) File "C:\Users\97281\AppData\Local\Programs\Python\Python37\lib\site-packages\channels\routing.py", line 160, in __call__ send, File "C:\Users\97281\AppData\Local\Programs\Python\Python37\lib\site-packages\asgiref\compatibility.py", line 33, in new_application instance = application(scope) File "C:\Users\97281\AppData\Local\Programs\Python\Python37\lib\site-packages\channels\generic\websocket.py", line 23, in __init__ super().__init__(*args, **kwargs) TypeError: object.__init__() takes exactly one argument (the instance to initialize) WebSocket DISCONNECT /webssh/ [127.0.0.1:11349] HTTP GET /static/bootstrap/3.3.7/bootstrap.min.css.map 404 [0.07, 127.0.0.1:11344] HTTP GET /static/xterm/3.14.5/xterm.min.css.map 404 [0.10, 127.0.0.1:11343] HTTP GET / 200 [0.01, 127.0.0.1:11418] HTTP GET /static/xterm/3.14.5/xterm.min.css.map 404 [0.03, 127.0.0.1:11418] HTTP GET /static/bootstrap/3.3.7/bootstrap.min.css.map 404 [0.06, 127.0.0.1:11419] HTTP GET /static/favicon.ico 200 [0.10, 127.0.0.1:11420] WebSocket HANDSHAKING /webssh/ [127.0.0.1:11763] Exception inside application: object.__init__() takes exactly one argument (the instance to initialize) Traceback (most recent call last): File "C:\Users\97281\AppData\Local\Programs\Python\Python37\lib\site-packages\channels\routing.py", line 71, in __call__ return await application(scope, receive, send) File "C:\Users\97281\AppData\Local\Programs\Python\Python37\lib\site-packages\channels\sessions.py", line 47, in __call__ return await self.inner(dict(scope, cookies=cookies), receive, send) File "C:\Users\97281\AppData\Local\Programs\Python\Python37\lib\site-packages\channels\sessions.py", line 172, in __call__ return await self.inner(self.scope, receive, self.send) File "C:\Users\97281\AppData\Local\Programs\Python\Python37\lib\site-packages\channels\auth.py", line 181, in __call__ return await super().__call__(scope, receive, send) File "C:\Users\97281\AppData\Local\Programs\Python\Python37\lib\site-packages\channels\middleware.py", line 26, in __call__ return await self.inner(scope, receive, send) File "C:\Users\97281\AppData\Local\Programs\Python\Python37\lib\site-packages\channels\routing.py", line 160, in __call__ send, File "C:\Users\97281\AppData\Local\Programs\Python\Python37\lib\site-packages\asgiref\compatibility.py", line 33, in new_application instance = application(scope) File "C:\Users\97281\AppData\Local\Programs\Python\Python37\lib\site-packages\channels\generic\websocket.py", line 23, in __init__ super().__init__(*args, **kwargs) TypeError: object.__init__() takes exactly one argument (the instance to initialize) WebSocket DISCONNECT /webssh/ [127.0.0.1:11763]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.