pants.ini = ```[GLOBAL] pants_version: 1.9.0 [pyt...
# general
s
pants.ini =
Copy code
[GLOBAL]
pants_version: 1.9.0

[python-setup]
interpreter_constraints: ["CPython>=3.5"]

plugins: [
    'pantsbuild.pants.contrib.awslambda-python==%(pants_version)s'
  ]
h
AWS Lambda requires a more modern Pants version. Try 1.15.0.dev3 or 1.15.0.dev4
s
thx, giving that a try now
it install a bunch of stuff running pants bundle. but still getting 'MappingError: Failed to parse src/python/rei_countyrecordsfinder/BUILD: name 'python_awslambda' is not defined'
Copy code
python_requirements()

python_library(
    name='county-records-finder-lib',
    sources=rglobs('*.py'),
    dependencies = [
        ':requests',
        ':beautifulsoup4',
        ':nameparser',
        ':google-cloud-storage',
        ':google-cloud-translate',
        ':google-cloud-vision',
        ':python-dateutil',
        'src/python/lib:lib'
    ]
)

python_binary(
    name='county-records-finder-bin',
    dependencies = [
        'src/python/rei_countyrecordsfinder:county-records-finder-lib',
    ],
    source='main.py'
)

python_binary(
    name='county-records-finder-empty-bin',
    source='main.py'
)

python_awslambda(
    name='county-records-finder-app',
    binary=':county-records-finder-bin'
)
Copy code
[GLOBAL]
pants_version: 1.15.0.dev4

[python-setup]
interpreter_constraints: ["CPython>=3.5"]

plugins: [
    'pantsbuild.pants.contrib.awslambda-python==%(pants_version)s'
  ]
h
Hm, can you try running
./pants -V
and confirm it prints 1.15.0.dev4 please
Everything looks right with what you posted
s
1.15.0.dev4
is the output of ./pants -V
h
Oh it might be that you have plugins defined in
[python-setup]
section of your
pants.ini
instead of
[GLOBAL]
. Try moving those 3 lines up to the
[GLOBAL]
section and run
./pants
again
s
that looks better... it's still running but not getting the same error
getting other errors, but I could have broken the code... But I think this is solving the missing plugin issue. Thanks.
❤️ 2
yup, it compiles after adding a handler... I'll post up if I figure out the next step of getting running on google cloud functions.
👌 3