我有一个初始化的 CDK 项目:
cdk init --language python
我使用(Windows 10)激活 .env
call ./.env/scripts/activate
我有 Anaconda 风格的 Python 3.6
我安装deps...
pip install -r requirements.txt
此时,所有cdk
相关的命令都会导致相同的错误:
C:\...\.env\lib\site-packages\aws_cdk\core\__init__.py", line 1554, in <module>
class DependableTrait(metaclass=jsii.JSIIAbstractClass, jsii_type="@aws-cdk/core.DependableTrait"):
TypeError: __new__() got an unexpected keyword argument 'jsii_type'
我可以从:
cdk ls
# or
cdk diff
# or
python -c "from aws_cdk import core"