Coder Social home page Coder Social logo

cycletls_python's Issues

Hi, I use this and have some problems,it can't work

D:\python\python.exe D:/python/rs/cycletls_python-main/client.py
Traceback (most recent call last):
File "D:/python/rs/cycletls_python-main/client.py", line 1, in
from cycletls import CycleTLS
File "D:\python\rs\cycletls_python-main\cycletls_init_.py", line 1, in
from .api import CycleTLS
File "D:\python\rs\cycletls_python-main\cycletls\api.py", line 3, in
from .schema import Response, Request
File "D:\python\rs\cycletls_python-main\cycletls\schema.py", line 9, in
class Request(BaseModel):
File "D:\python\rs\cycletls_python-main\cycletls\schema.py", line 19, in Request
cookies: Optional[list[Cookie]] = None
TypeError: 'type' object is not subscriptable

This is the first problem, I tried to rewrite line 19 of schema.py file, delete [Cookie]
After re-run,
'.' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
Traceback (most recent call last):
File "D:\python\rs\cycletls_python-main\cycletls\api.py", line 25, in init
self.ws = create_connection("ws://localhost:8080")
File "D:\python\lib\site-packages\websocket_core.py", line 601, in create_connection
websock.connect(url, **options)
File "D:\python\lib\site-packages\websocket_core.py", line 245, in connect
options.pop('socket', None))
File "D:\python\lib\site-packages\websocket_http.py", line 130, in connect
sock = _open_socket(addrinfo_list, options.sockopt, options.timeout)
File "D:\python\lib\site-packages\websocket_http.py", line 206, in _open_socket
raise err
File "D:\python\lib\site-packages\websocket_http.py", line 185, in _open_socket
sock.connect(address)
ConnectionRefusedError: [WinError 10061] Unable to connect because the target computer actively refused.

I don't quite understand the contents of the bottom 24th to 33rd line in the api.py file, subprocess.Popen, I guess the error may be because the executed file does not seem to exist.Looking forward to your replies and updates.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.