https://pulumi.com logo
Docs
Join the conversationJoin Slack
Channels
announcements
automation-api
aws
azure
blog-posts
built-with-pulumi
cloudengineering
cloudengineering-support
content-share
contribex
contribute
docs
dotnet
finops
general
getting-started
gitlab
golang
google-cloud
hackathon-03-19-2020
hacktoberfest
install
java
jobs
kubernetes
learn-pulumi-events
linen
localstack
multi-language-hackathon
office-hours
oracle-cloud-infrastructure
plugin-framework
pulumi-cdk
pulumi-crosscode
pulumi-deployments
pulumi-kubernetes-operator
pulumi-service
pulumiverse
python
registry
status
testingtesting123
testingtesting321
typescript
welcome
workshops
yaml
Powered by Linen
python
  • i

    incalculable-sundown-82514

    02/07/2019, 9:56 PM
    oh, ok! hmm.
  • l

    little-river-49422

    02/07/2019, 9:56 PM
    and I see that nonetype none when anything happens
  • l

    little-river-49422

    02/07/2019, 9:57 PM
    i could use your container to test my code
  • l

    little-river-49422

    02/07/2019, 9:58 PM
    but not today, its 01.00 already, lawl
  • i

    incalculable-sundown-82514

    02/07/2019, 9:58 PM
    before you leave, can I get you to run a test Python program? 😄
  • i

    incalculable-sundown-82514

    02/07/2019, 9:58 PM
    import traceback
    
    try:
        nameerror
    except Exception:
        traceback.print_exc()
    if you could run this and paste what it prints, that would be awesome
  • l

    little-river-49422

    02/07/2019, 9:59 PM
    run as > save to file do
    python file
    ?
  • i

    incalculable-sundown-82514

    02/07/2019, 9:59 PM
    yep!
  • l

    little-river-49422

    02/07/2019, 9:59 PM
    Traceback (most recent call last):
      File "lol.py", line 4, in <module>
        nameerror
    NameError: name 'nameerror' is not defined
  • l

    little-river-49422

    02/07/2019, 9:59 PM
    > python
    Python 3.6.8 (tags/v3.6.8:3c6b436a57, Dec 23 2018, 23:31:17) [MSC v.1916 32 bit (Intel)] on win32
  • i

    incalculable-sundown-82514

    02/07/2019, 9:59 PM
    huh, thanks. this is bizarre.
  • l

    little-river-49422

    02/07/2019, 10:00 PM
    might be my setup?
  • i

    incalculable-sundown-82514

    02/07/2019, 10:00 PM
    I suspect there’s something wrong with Python here, since the code that is printing out
    NoneType: None
    is not ours but straight from the Python standard library
  • l

    little-river-49422

    02/07/2019, 10:00 PM
    tried without venv, same
  • i

    incalculable-sundown-82514

    02/07/2019, 10:00 PM
    but I’ll have to look further
  • l

    little-river-49422

    02/07/2019, 10:10 PM
    ugh, its weirdly fails in your container:
    Traceback (most recent call last):
          File "/usr/bin/pulumi-language-python-exec", line 14, in <module>
            import pulumi
          File "/usr/local/lib/python3.5/dist-packages/pulumi/__init__.py", line 25, in <module>
            from .asset import (
          File "/usr/local/lib/python3.5/dist-packages/pulumi/asset.py", line 34
            path: str
                ^
        SyntaxError: invalid syntax
    
        error: an unhandled error occurred: Program exited with non-zero exit code: 1
  • l

    little-river-49422

    02/07/2019, 10:10 PM
    not your sample code, my code
  • i

    incalculable-sundown-82514

    02/07/2019, 10:13 PM
    OK, we need to update the version of Python in that container. I’ll open an issue for that
  • i

    incalculable-sundown-82514

    02/07/2019, 10:13 PM
    We require Python 3.6 and above (hence the syntax error, that’s some new syntax that Python 3.6 added)
  • l

    little-river-49422

    02/07/2019, 10:14 PM
    oh, ok
  • l

    little-river-49422

    02/07/2019, 10:14 PM
    lol
  • l

    little-river-49422

    02/07/2019, 10:14 PM
    i guess today is "I find all the bugs" day
  • i

    incalculable-sundown-82514

    02/07/2019, 10:14 PM
    😛
  • i

    incalculable-sundown-82514

    02/07/2019, 10:15 PM
    thank you!
  • i

    incalculable-sundown-82514

    02/07/2019, 10:15 PM
    opened https://github.com/pulumi/pulumi/issues/2435
  • l

    little-river-49422

    02/07/2019, 10:17 PM
    ok, thanks folks, can you just ping here the fixed version of pulumi, so I can test tomorrow?
  • i

    incalculable-sundown-82514

    02/07/2019, 10:17 PM
    will do!
  • l

    little-river-49422

    02/07/2019, 10:17 PM
    thanks! night time for me
  • l

    little-river-49422

    02/07/2019, 10:17 PM
    later, best of luck
  • i

    incalculable-sundown-82514

    02/07/2019, 10:18 PM
    thanks for sticking with us 🙂
Powered by Linen
Title
i

incalculable-sundown-82514

02/07/2019, 10:18 PM
thanks for sticking with us 🙂
View count: 1