You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
cdktf & Language Versions
cdktf-cli@0.2.0
cdktf@0.2.0 (Python)
Python 3.9.1
google-beta@3.60.0
Affected Resource(s)
google-beta provider when used with Python bindings
Debug Output
(Don't know of any relevant debug info)
Expected Behavior
google-beta provider can be generated by cdktf and imported as Python module
Actual Behavior
Python spits out errors relating to invalid docstrings
$ cdktf --version
0.2.0
$ mkdir tmp &&cd tmp
$ cdktf init --template python --project-name gh-report --project-description=. --local
# add google-beta@3.60.0 to provider list
$ sed -i.bak 's/"terraformProviders": \[\]/"terraformProviders":["google-beta@3.60.0"]/' cdktf.json
# this seems to be a separate bug? for me, this has to be removed for `cdktf get` to complete
$ sed -i.bak '5,7d' cdktf.json
$ cdktf get
$ pipenv run python
Python 3.9.1 (default, Jan 30 2021, 15:51:05)
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or "license"for more information.
>>> import imports.google_beta
<big stack trace, seen above>
Important Factoids
This is fixable by deleting the following lines (all broken docstrings):
sed -i.bak -e '205618d;205960d;206126,206136d;206145,206147d;206235d;206262,206265d' imports/google_beta/__init__.py
I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Community Note
cdktf & Language Versions
Affected Resource(s)
google-beta provider when used with Python bindings
Debug Output
(Don't know of any relevant debug info)
Expected Behavior
google-beta provider can be generated by cdktf and imported as Python module
Actual Behavior
Python spits out errors relating to invalid docstrings
Steps to Reproduce
Important Factoids
This is fixable by deleting the following lines (all broken docstrings):
sed -i.bak -e '205618d;205960d;206126,206136d;206145,206147d;206235d;206262,206265d' imports/google_beta/__init__.py
References
The text was updated successfully, but these errors were encountered: