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”)
request_headers={“Accept”: “application/json”},
# http_resp = DataHttp(self, “GetIP”, url=“”)
# TerraformOutput(self, “VNet”, value=http_resp.response_body)

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

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/”, line 118, in call
inst = super(JSIIMeta, cast(JSIIMeta, cls)).call(*args, **kwargs)
File “/home/test/Azure/imports/http/provider/”, 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/”, line 334, in create
response = self.provider.create(
File “/home/test/.local/share/virtualenvs/Azure-GQQ8MHFS/lib/python3.10/site-packages/jsii/_kernel/providers/”, 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/”, 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": "",

  "version": "~> 3.4.2"


and “cdktf get” finished successfully.