question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Projen python version default command fails

See original GitHub issue

Hello, guys, thank you for the awesome tool, the nodejs version works perfectly, however, I’m struggling with the Python binary. Simply installed it globally using pipx install projen and running projen, fails with the following error:

➜  ~ projen
Traceback (most recent call last):
  File "/Users/victor/.local/bin/projen", line 10, in <module>
    __jsii_assembly__.invokeBinScript("projen", "projen", sys.argv[1:])
  File "/Users/victor/.local/pipx/venvs/projen/lib/python3.10/site-packages/jsii/_runtime.py", line 52, in invokeBinScript
    response = _kernel.invokeBinScript(pkgname, script, args)
  File "/Users/victor/.local/pipx/venvs/projen/lib/python3.10/site-packages/jsii/_kernel/__init__.py", line 312, in invokeBinScript
    args=_make_reference_for_native(self, args),
  File "/Users/victor/.local/pipx/venvs/projen/lib/python3.10/site-packages/jsii/_kernel/__init__.py", line 204, in _make_reference_for_native
    kernel.create(d.__class__, d)
  File "/Users/victor/.local/pipx/venvs/projen/lib/python3.10/site-packages/jsii/_kernel/__init__.py", line 323, in create
    fqn=klass.__jsii_type__ or "Object",
AttributeError: type object 'tuple' has no attribute '__jsii_type__'

I tried py3.8 and py3.10, and encounter the same result. weird that there is no such issue yet, I’m the only one having this error? Thank you for your help.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:19 (17 by maintainers)

github_iconTop GitHub Comments

2reactions
mrgraincommented, Sep 30, 2022

And pipx run projen new awscdk-app-py also works! This is great. Good work everyone and especially @jmalins 🥳

1reaction
floydspacecommented, Sep 30, 2022

@jmalins thank you very much, I’m impressed. It works!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

API Reference | projen
AwsCdkDepsPy, Manages dependencies on the AWS CDK for Python projects. awscdk. ... __*Default*__: use the container's default command ...
Read more >
projen/API.md - UNPKG
361, * **projenCommand** (<code>string</code>) The shell command to use in order to run the projen CLI. __*Default*__: "npx projen".
Read more >
Migrating a CDK Construct to projen and jsii - Sebastian Hesse
The following commands will initialize your project with projen . It will create a file called .projenrc.js containing a default projen ...
Read more >
How to simplify project setup with Projen - Tidy Cloud AWS
Now when I run the command npx projen package.json file has new CDK dependencies in it, new versions, and new packages. The project...
Read more >
Index - AWS Prototyping SDK (PDK)
It additionally creates a CodeCommit repository and by default is configured to build ... Python npx projen new --from aws-prototyping-sdk pdk-pipeline-py.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found