-
Notifications
You must be signed in to change notification settings - Fork 7
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the issue
The upgrade guide for Architect says ARC_CLOUDFORMATION
is deprecated, but the Python tooling still uses it (and without guarding): https://github.com/architect/functions-python/blob/796e7661afa069c3a2f7bc609fd0c0af512244cb/arc/__init__.py
Steps to reproduce
Steps to reproduce the behavior:
- Follow the getting started guide on arc.codes
- Try to run a Python function/endpoint that uses
arc.reflect()
- The route fails with (something like):
Traceback (most recent call last):
File "", line 1, in
File "/Users/sean/src/fwiki/fwiki/src/http/get-index/index.py", line 6, in handler
return {'body': json.dumps(arc.reflect())}
File "/Users/sean/src/fwiki/fwiki/src/http/get-index/vendor/arc/__init__.py", line 5, in reflect
path = '/' + os.environ['ARC_CLOUDFORMATION']
File "/nix/store/gxnjdv4v6z21n2g5hp4cnnlcysaqcv83-python3-3.9.12/lib/python3.9/os.py", line 679, in __getitem__
raise KeyError(key) from None
KeyError: 'ARC_CLOUDFORMATION'
Expected behavior
The Python functions to be more in sync with the Architect docs (I'm not sure how to trick .reflect()
into working right now, at all).
Additional context
(I don't think this is particularly relevant here, but): This is Python 3.9 via pipenv dependencies installed with nix.
lllama and pgchamberlin
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working