Hi, there, when i run the gradle task `:airbyte-in...
# contributing-to-airbyte
w
Hi, there, when i run the gradle task
:airbyte-integrations:connectors:source-postgres-singer:installReqs
, I will always get the error (#shown as the followed log file), that will led to the fail of the gradle build process. Is that cause of the version of Python or something? Thanks.
u
Hello! I've seen that too and sorted it out by installing
Copy code
postgresql python-dev
packages (depending on your OS)... Not sure if it's the best approach to these errors though https://stackoverflow.com/questions/11618898/pg-config-executable-not-found
u
Thx! After a long time installing postgresql, it worked for me to solved
pg_config executable not found.
problem. But I met another error, I will try on to fix it.
u
The error is
Copy code
> Task :airbyte-integrations:connectors:source-postgres-singer:checkPython FAILED
         dyld: Library not loaded: @executable_path/../.Python
           Referenced from: /Users/airbyte/airbyte-integrations/connectors/source-postgres-singer/.venv/bin/python
           Reason: image not found

FAILURE: Build failed with an exception.
u
Seems many people are running into this are related to OSX (are you on a mac right?)
u
Yes, I am running this on Mac
u
I followed this method, but it not worked for me.
u
seems to be more around python installation than aws related?
u
Funny, people are just reinstalling a bunch of things in order to fix this here in different ways... it's really unclear https://stackoverflow.com/questions/17703510/dyld-library-not-loaded-reason-image-not-found
u
Yes, I think so, It’s a question about python more than awscli.
u
The
dyld: Library not loaded: @executable_path/../.Python
error just fixed!
u
u
Nice!
u
Here is the way how I fix it: • check what’s the
/Users/airbyte airbyte integrations/connectors/source - postgres - singer /. Venv/bin/python
corresponding link, I found it pointed to the python3.7 (#sorry forgot to get a screenshot), but no installation python3.7 on my computer • install python3.7 and add python3.7 to path • Be sure to manually delete all
.venv
folders in the project, because
./gradlew clean
will not clear
.venv
files, which will cause
.venv/bin
to still link to a python path that did not exist before, and it will still report an error • Rerun
./gradlew clean build
, which will rebuilds the Python venv folder, and the problem will be solved
u
But I just come into another error 😂
u
which is
Copy code
ld: library not found for -lssl
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for psycopg2
Failed to build psycopg2
u
https://github.com/airbytehq/airbyte/issues/707 @Winar does the workaround specified in this issue fix the latest exception?
u
Yes!! That workaround works for me! I had spent such a long time to fix this without any progress. Thanks for find and sharing the link! @s Also thanks for @Chris (deprecated profile)’s help! 🎁