Skip to content
This repository was archived by the owner on Nov 20, 2023. It is now read-only.

Common Problems

YinMo edited this page Jun 24, 2022 · 3 revisions

Common Problems

Here are some as well solutions to that problems

Module cannot be installed

CHRLINE uses multiple third-party modules, which means you must install all modules to use this library

  • If you are using pip install CHRLINE then you should get all supported modules
  • If you are cloning the Github branch, make sure you are using setup.py correctly

When installing these third-party modules, you are most likely to encounter these problems:

  1. Cannot compile module, missing C++ environment

    Some modules are being compiled using c++, so you must make sure to install that environment

    You should be able to find it here: https://visualstudio.microsoft.com/visual-cpp-build-tools/

  2. Httpx

    Make sure you install httpx[http2], not httpx

E2EE Keys missing

The E2EE private key is only stored on the main device. If you want to use E2EE in this library, you must exchange the E2EE Key with the main device through a login method such as Qrocde or Email.

If you are using the primary token (start with mid), you may be able to use registerE2EESelfKey() to generate the E2EE Key to get the fix

gevent monkey patch

refs to https://github.com/gevent/gevent/issues/1016

try import CHRLINE after others http Modules (eg. requests)

PyTest

refs to https://youtrack.jetbrains.com/issue/PY-41054/PyTest-doesnt-work-in-Debug-mode-due-to-un-acquired-lock-Runtime-Error

Enabling Settings | Build, Execution, Deployment | Python Debugger | Gevent compatible helped

from @betteray