Hello,
I at Step 1 of “Extractor-utils Library for Cognite Python SDK” in the Data Engineer Basics training, following the steps in the training video. I am getting the following error, which seems to be a version conflict. How can I resolve this?

Hello,
I at Step 1 of “Extractor-utils Library for Cognite Python SDK” in the Data Engineer Basics training, following the steps in the training video. I am getting the following error, which seems to be a version conflict. How can I resolve this?

Best answer by nithin.bodanapu
Hey
The issue that you are seeing is because of the Mypy saying that it is expecting the method run_extractor to have the following set of arguments in this order:
or
Currently the arguments of the method run_extractor are of the following type:
The problem is being caused by the type of the last argument which is of type `Event` but is expected to be CancellationToken
While we look into fixing this issue with `cogex init`, I wanted to provide the solution so you are unblocked by this:
In the file `csv_extractor/extractor,py`,
from cognite.extractorutils.threading import CancellationToken
def run_extractor(cognite: CogniteClient, states: AbstractStateStore, config: Config, stop_event: CancellationToken) -> None:
This should fix the problem of you being unable to push the code.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.