Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oVb69-00006o-Bs for psycopg@arkaria.postgresql.org; Tue, 06 Sep 2022 16:06:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oVb67-000584-WA for psycopg@arkaria.postgresql.org; Tue, 06 Sep 2022 16:06:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oVb67-000575-NB for psycopg@lists.postgresql.org; Tue, 06 Sep 2022 16:06:47 +0000 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1oVb60-0006xy-Sg for psycopg@lists.postgresql.org; Tue, 06 Sep 2022 16:06:47 +0000 Received: by mail-ej1-x62a.google.com with SMTP id kk26so24355914ejc.11 for ; Tue, 06 Sep 2022 09:06:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date; bh=Roo6gCq32KIK3PAyDOSFVzKxBbVrKi1QxXHjSkr6cf8=; b=ii29OEUIGipc/6SMgcYxCrutbHUdfpjjEGSkFlPzLgktHiG8MtFJC5SGvbdLdvo3y0 yV9Whzm8rjdWKtj5kVAXb9Wpj9tujwIBPc6PcbGwLphzUe7sxzQIXv3OgJEzCT/e/JmA ec4j2skw4ZubaNgadiusbiR3VjGTAtasjZpndlKXKipl/S5RiWOLYjg6pcN0rsTP2HGv EOpHNg7rciIADHKjtojtcBoXFg31JbrtA5vqW5/U6cKx2lHdheDEq73wKkQn4bey7I+L 53SbsSiODZtX9wPpVliExbJuuujkSYgdA0qjJ9THHIfxfUT4QCDXUxdp+Y5vudYgXz7+ qRlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date; bh=Roo6gCq32KIK3PAyDOSFVzKxBbVrKi1QxXHjSkr6cf8=; b=CaFi9n8s9u7ns2geQcN/jKY7G/v+x9AvmBDsmtdLpwxSH0oFiSMIIgZ4cxD6e7yHdL 4pft5uXFYpBAvTKabuECD0rW9MRHpdneuEl1MUzkUM/XmaKCIL99flcEjedBOVchKCOg nQIR6HVIZuKq8ZVO/Sij3IVgIxeNhZMag4JhFx1PmGceKMeUcT0XreSB7oPkre9qZf3c 4B7VpE6EH52cXFNQNYSeyiU9unovIJ9KVatVaI9E6awWXWUGAW3yLtiq6LZq6eNEWmW6 nfBmIpfeygeAzRbta3W/qt52AweRjFRTllOcR6kuvCGKmLMrAY7rsCFFdgH2/DRGbbXW q2KA== X-Gm-Message-State: ACgBeo1UGGZ5+HxdSCDmlwmtlQz1QeBiYxlnroFf8eYwIZyw8gBUoIHo IWVgz//NlRF/welcuozlq8OxD3c19Z08BnJkA4YDDqsG7hSE3g== X-Google-Smtp-Source: AA6agR4eY4Xv0Sk0B8clvNTNOMD2YKuf9v2AdyiRQ1vDX6MhnPjaZlWCAK4a91Gi+ruZaKrXY9S+KyAis3rwOhF3F68= X-Received: by 2002:a17:906:9752:b0:738:364a:4ac with SMTP id o18-20020a170906975200b00738364a04acmr40262090ejy.759.1662480399361; Tue, 06 Sep 2022 09:06:39 -0700 (PDT) MIME-Version: 1.0 From: Gil Sousa Date: Tue, 6 Sep 2022 17:06:28 +0100 Message-ID: Subject: ImportError: symbol not found in flat namespace '_PQbackendPID' To: psycopg@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000a66c4a05e8046124" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000a66c4a05e8046124 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi all, I am trying to use psycopg2 for the very first time, though I am stumbling with an error when trying to import the module: =E2=9C=97 python3.9 radars_import.py Traceback (most recent call last): File "/Users/gilsousa/Documents/git Projects/ReportGen/radars_import.py", line 2, in import psycopg2 File "/Users/gilsousa/Library/Python/3.9/lib/python/site-packages/psycopg2/__ini= t__.py", line 51, in from psycopg2._psycopg import ( # noqa ImportError: dlopen(/Users/gilsousa/Library/Python/3.9/lib/python/site-packages/psycopg2= /_ psycopg.cpython-39-darwin.so, 0x0002): symbol not found in flat namespace '_PQbackendPID' I made sure that I have the packages installed, both psycopg2 and psycopg2-binary. I even tried to uninstall both and just try one at a time, also didn't work. How can I fix this problem? Thank you, Gil Sousa www.gilsousa.eu --000000000000a66c4a05e8046124 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi all,

I am trying to use p= sycopg2 for the very first time, though I am stumbling with an error when t= rying to import the module:

=E2=9C=97 python3.9 ra= dars_import.py =C2=A0 =C2=A0
Traceback (most recent call last):
=C2= =A0 File "/Users/gilsousa/Documents/git Projects/ReportGen/radars_impo= rt.py", line 2, in <module>
=C2=A0 =C2=A0 import psycopg2
= =C2=A0 File "/Users/gilsousa/Library/Python/3.9/lib/python/site-packag= es/psycopg2/__init__.py", line 51, in <module>
=C2=A0 =C2=A0 = from psycopg2._psycopg import ( =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 # noqa
ImportError: dlopen(/Users/gilsousa/L= ibrary/Python/3.9/lib/python/site-packages/psycopg2/_psycopg.cpython-39-darwin.so, 0x0002): symbol= not found in flat namespace '_PQbackendPID'

I ma= de sure that I have the packages installed, both=C2=A0psycopg2 and=C2=A0psy= copg2-binary. I even tried to uninstall both and just try one at a time, al= so didn't work.

How can I fix this=C2=A0proble= m?

Thank you,

<= /div>
--000000000000a66c4a05e8046124--