https://linen.dev logo
u

[DEPRECATED] Marcos Marx

08/11/2021, 4:23 PM
I'm running
./gradlew airbyte-integrations:bases:base-normalization:build
and it's failing on Flake step trying to validate the venv libs?
Copy code
Task :airbyte-integrations:bases:base-normalization:flakeCheck FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':airbyte-integrations:bases:base-normalization:flakeCheck'.
> Python call failed: .venv/bin/python -m flake8 . --config /home/marcos/code/airbyte/tools/python/.flake8
Copy code
./venv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py:4991:5: E731 do not assign a lambda expression, use a def
         ./venv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py:5026:21: E741 ambiguous variable name 'l'
         ./venv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py:5074:15: E741 ambiguous variable name 'l'
         ./venv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py:5216:15: E741 ambiguous variable name 'l'
         ./venv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py:5569:28: E741 ambiguous variable name 'l'
         ./venv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py:5570:12: E741 ambiguous variable name 'l'
         ./venv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py:5578:27: E741 ambiguous variable name 'l'
         ./venv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py:5585:26: E741 ambiguous variable name 'l'
         ./venv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py:5586:12: E741 ambiguous variable name 'l'
         ./venv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py:5655:1: E302 expected 2 blank lines, found 1
         ./venv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py:5870:23: E741 ambiguous variable name 'l'
         ./venv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py:5894:23: E741 ambiguous variable name 'l'
         ./venv/lib/python3.7/site-packages/pkg_resources/_vendor/pyparsing.py:5916:26: E741 ambiguous variable name 'l'
         ./venv/lib/python3.7/site-packages/pkg_resources/_vendor/appdirs.py:572:9: F401 'win32com.shell' imported but unused
         ./venv/lib/python3.7/site-packages/pkg_resources/_vendor/appdirs.py:577:13: F401 'ctypes.windll' imported but unused
         ./venv/lib/python3.7/site-packages/pkg_resources/_vendor/appdirs.py:582:17: F401 'com.sun.jna' imported but unused
u

user

08/11/2021, 5:17 PM
I just ran and didn't get these flake errors, it shouldn't be flake checking libraries in venv though surely
u

user

08/11/2021, 5:18 PM
Yep, Probably something weird on my local setup. On CI the code didnt throws an error when building
u

user

08/11/2021, 5:22 PM
hmmm, where's your .venv?
u

user

08/11/2021, 5:31 PM
I removed .venv and venv folders in normalization module and was able to run 😛
u

user

08/11/2021, 5:31 PM
thanks for the tip
u

[DEPRECATED] Marcos Marx

08/11/2021, 5:31 PM
Awesome 😄
u

user

08/11/2021, 5:47 PM
I think have seen this exception before. Did not remember how I bypassed it. It is helpful to know that removing
.venv
is a valid solution. Thanks.
u

user

08/11/2021, 5:56 PM
Liren probably because you and I ran normalization tests using Pycharm outside the root folder.
4 Views