[2021-12-07T15:07:46.413] [ERROR] default - Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
⠴ synthesizing…
[2021-12-07T15:08:43.910] [ERROR] default - Traceback (most recent call last):
File “E:\cdktf-python\projects-python\main.py”, line 56, in
MyStack(app, “projects-python”)
File “C:\Users\Mohammedbanabila.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii_runtime.py”, line 86, in call
inst = super().call(*args, **kwargs)
File “E:\cdktf-python\projects-python\main.py”, line 18, in init
TerraformVariable(self ,“regions” , type=str , default=“us-east-1”)
File “C:\Users\Mohammedbanabila.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii_runtime.py”, line 86, in call
inst = super().call(*args, **kwargs)
File “C:\Users\Mohammedbanabila.virtualenvs\projects-python-M_MdHqee\lib\site-packages\cdktf_init_.py”, line 9062, in init
[2021-12-07T15:08:43.916] [ERROR] default - jsii.create(self.class, self, [scope, id, config])
File “C:\Users\Mohammedbanabila.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii_kernel_init_.py”, line 293, in create
args=make_reference_for_native(self, args),
File "C:\Users\Mohammedbanabila.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii_kernel_init.py", line 159, in _make_reference_for_native
return [make_reference_for_native(kernel, i) for i in d]
File "C:\Users\Mohammedbanabila.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii_kernel_init.py", line 159, in
return [make_reference_for_native(kernel, i) for i in d]
File "C:\Users\Mohammedbanabila.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii_kernel_init.py", line 176, in make_reference_for_native
“data”: {
File "C:\Users\Mohammedbanabila.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii_kernel_init.py", line 177, in
jsii_name: make_reference_for_native(
File "C:\Users\Mohammedbanabila.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii_kernel_init.py", line 199, in make_reference_for_native
kernel.create(d.class, d)
File "C:\Users\Mohammedbanabila.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii_kernel_init.py", line 292, in create
fqn=klass.jsii_type or “Object”,
AttributeError: type object ‘type’ has no attribute ‘jsii_type’
cdktf encountered an error while synthesizing
Synth command: pipenv run python main.py
Error: non-zero exit code 1
Command output on stderr:
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
Traceback (most recent call last):
File "E:\cdktf-python\projects-python\main.py", line 56, in <module>
MyStack(app, "projects-python")
File "C:\Users\Mohammedbanabila\.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii\_runtime.py", line 86, in __call__
inst = super().__call__(*args, **kwargs)
File "E:\cdktf-python\projects-python\main.py", line 18, in __init__
TerraformVariable(self ,"regions" , type=str , default="us-east-1")
File "C:\Users\Mohammedbanabila\.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii\_runtime.py", line 86, in __call__
inst = super().__call__(*args, **kwargs)
File "C:\Users\Mohammedbanabila\.virtualenvs\projects-python-M_MdHqee\lib\site-packages\cdktf\__init__.py", line 9062, in __init__
jsii.create(self.__class__, self, [scope, id, config])
File "C:\Users\Mohammedbanabila\.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii\_kernel\__init__.py", line 293, in create
args=_make_reference_for_native(self, args),
File "C:\Users\Mohammedbanabila\.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii\_kernel\__init__.py", line 159, in _make_reference_for_native
return [_make_reference_for_native(kernel, i) for i in d]
File "C:\Users\Mohammedbanabila\.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii\_kernel\__init__.py", line 159, in <listcomp>
return [_make_reference_for_native(kernel, i) for i in d]
File "C:\Users\Mohammedbanabila\.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii\_kernel\__init__.py", line 176, in _make_reference_for_native
"data": {
File "C:\Users\Mohammedbanabila\.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii\_kernel\__init__.py", line 177, in <dictcomp>
jsii_name: _make_reference_for_native(
File "C:\Users\Mohammedbanabila\.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii\_kernel\__init__.py", line 199, in _make_reference_f kernel.create(d.__class__, d)
File "C:\Users\Mohammedbanabila\.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii\_kernel\__init__.py", line 292, in create
fqn=klass.__jsii_type__ or "Object",
AttributeError: type object 'type' has no attribute '__jsii_type__'
⠧ synthesizing…
((projects-python) ) PS E:\cdktf-python\projects-python> pipenv shell
or any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
Launching subshell in virtual environment…
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Try the new cross-platform PowerShell Install PowerShell on Windows, Linux, and macOS - PowerShell | Microsoft Docs
PS E:\cdktf-python\projects-python> cdktf synth
⠹ synthesizing…
[2021-12-07T15:10:15.816] [ERROR] default - Traceback (most recent call last):
File “E:\cdktf-python\projects-python\main.py”, line 56, in
[2021-12-07T15:10:15.820] [ERROR] default - MyStack(app, “projects-python”)
File “C:\Users\Mohammedbanabila.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii_runtime.py”, line 86, in call
inst = super().call(*args, **kwargs)
File “E:\cdktf-python\projects-python\main.py”, line 18, in init
TerraformVariable(self ,“regions” , type=str , default=“us-east-1”)
File “C:\Users\Mohammedbanabila.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii_runtime.py”, line 86, in call
inst = super().call(*args, **kwargs)
File “C:\Users\Mohammedbanabila.virtualenvs\projects-python-M_MdHqee\lib\site-packages\cdktf_init_.py”, line 9062, in init
jsii.create(self.class, self, [scope, id, config])
File “C:\Users\Mohammedbanabila.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii_kernel_init_.py”, line 293, in create
args=make_reference_for_native(self, args),
File "C:\Users\Mohammedbanabila.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii_kernel_init.py", line 159, in _make_reference_for_native
[2021-12-07T15:10:15.825] [ERROR] default - return [make_reference_for_native(kernel, i) for i in d]
File "C:\Users\Mohammedbanabila.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii_kernel_init.py", line 159, in
return [make_reference_for_native(kernel, i) for i in d]
File "C:\Users\Mohammedbanabila.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii_kernel_init.py", line 176, in make_reference_for_native
“data”: {
File "C:\Users\Mohammedbanabila.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii_kernel_init.py", line 177, in
jsii_name: make_reference_for_native(
File "C:\Users\Mohammedbanabila.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii_kernel_init.py", line 199, in make_reference_for_native
kernel.create(d.class, d)
File "C:\Users\Mohammedbanabila.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii_kernel_init.py", line 292, in create
fqn=klass.jsii_type or “Object”,
AttributeError: type object ‘type’ has no attribute ‘jsii_type’
⠹ synthesizing…
cdktf encountered an error while synthesizing
Synth command: pipenv run python main.py
Error: non-zero exit code 1
Command output on stderr:
Traceback (most recent call last):
File "E:\cdktf-python\projects-python\main.py", line 56, in <module>
MyStack(app, "projects-python")
File "C:\Users\Mohammedbanabila\.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii\_runtime.py", line 86, in __call__
inst = super().__call__(*args, **kwargs)
File "E:\cdktf-python\projects-python\main.py", line 18, in __init__
TerraformVariable(self ,"regions" , type=str , default="us-east-1")
File "C:\Users\Mohammedbanabila\.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii\_runtime.py", line 86, in __call__
inst = super().__call__(*args, **kwargs)
File "C:\Users\Mohammedbanabila\.virtualenvs\projects-python-M_MdHqee\lib\site-packages\cdktf\__init__.py", line 9062, in __init__
jsii.create(self.__class__, self, [scope, id, config])
File "C:\Users\Mohammedbanabila\.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii\_kernel\__init__.py", line 293, in create
args=_make_reference_for_native(self, args),
File "C:\Users\Mohammedbanabila\.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii\_kernel\__init__.py", line 159, in _make_reference_for_native
return [_make_reference_for_native(kernel, i) for i in d]
File "C:\Users\Mohammedbanabila\.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii\_kernel\__init__.py", line 159, in <listcomp>
return [_make_reference_for_native(kernel, i) for i in d]
File "C:\Users\Mohammedbanabila\.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii\_kernel\__init__.py", line 176, in _make_reference_for_native
"data": {
File "C:\Users\Mohammedbanabila\.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii\_kernel\__init__.py", line 177, in <dictcomp>
jsii_name: _make_reference_for_native(
File "C:\Users\Mohammedbanabila\.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii\_kernel\__init__.py", line 199, in _make_reference_for_native
kernel.create(d.__class__, d)
File "C:\Users\Mohammedbanabila\.virtualenvs\projects-python-M_MdHqee\lib\site-packages\jsii\_kernel\__init__.py", line 292, in create
fqn=klass.__jsii_type__ or "Object",
AttributeError: type object 'type' has no attribute '__jsii_type__'
it require to imports.aws.jsii import all or package for support in pipenv and is there a way around it ?