How to use http provider with python CDKTF

We try to use http provider and even using example from doc return error:

from imports.http.data_http import DataHttp

class MyStack(TerraformStack):
def init(self, scope: Construct, id: str):
super().init(scope, id)
# http1 = HttpProvider(self, “HTTP1”)
DataHttp(
self,
“example_head”,
method=“HEAD”,
request_headers={“Accept”: “application/json”},
url=“https://checkpoint-api.hashicorp.com/v1/check/terraform”,
)
# http_resp = DataHttp(self, “GetIP”, url=“https://ifconfig.me/ip”)
# TerraformOutput(self, “VNet”, value=http_resp.response_body)

app = App()
stack = MyStack(app, “Test”)
app.synth()

Attempt to “cdktf synth” return error:

⠦ Synthesizing
[2024-03-29T15:18:53.823] [ERROR] default - jsii.errors.JavaScriptError:
TypeError: Cannot read properties of undefined (reading ‘HttpProvider’)
at Kernel._Kernel_findSymbol (/tmp/tmpjjrpv9ba/lib/program.js:10341:28)

……

…….

File “/home/test/.local/share/virtualenvs/Azure-GQQ8MHFS/lib/python3.10/site-packages/jsii/_runtime.py”, line 118, in call
inst = super(JSIIMeta, cast(JSIIMeta, cls)).call(*args, **kwargs)
File “/home/test/Azure/imports/http/provider/init.py”, line 50, in init
jsii.create(self.class, self, [scope, id, config])
File “/home/test/.local/share/virtualenvs/Azure-GQQ8MHFS/lib/python3.10/site-packages/jsii/_kernel/init.py”, line 334, in create
response = self.provider.create(
File “/home/test/.local/share/virtualenvs/Azure-GQQ8MHFS/lib/python3.10/site-packages/jsii/_kernel/providers/process.py”, line 365, in create
return self._process.send(request, CreateResponse)
File “/home/test/.local/share/virtualenvs/Azure-GQQ8MHFS/lib/python3.10/site-packages/jsii/_kernel/providers/process.py”, line 342, in send
raise RuntimeError(resp.error) from JavaScriptError(resp.stack)
ERROR: cdktf encountered an error while synthesizing

What could be a problem? (“cdktf.json” has
“terraformProviders”: [

{

  "name": "http",

  "source": "registry.terraform.io/hashicorp/http",

  "version": "~> 3.4.2"

}

],
and “cdktf get” finished successfully.