Re: Error on import psycopg2

2021-09-19 Thread Felix Orinda
pip install psycopg2-binary
Should work for you. Give me feedback on whether it has worked or not

On Sep 17, 2021 21:18, "Aashish Kumar"  wrote:

install this package 

pip install psycopg2-binary

It works perfectly

On Wed, 15 Sep 2021 at 9:40 PM, 'Maryam Yousaf' via Django users <
django-users@googlegroups.com> wrote:

> Hello,
>
> I need psycopg2 for postgres database in django. While installing it, I am
> getting below error. I tried everything on internet but it still there.
> Kindly help me out.
>
> Error:
> "File
> "/Users/maryam.yousaf/Documents/venv/lib/python3.8/site-packages/psycopg2/__init__.py",
> line 51, in 
> from psycopg2._psycopg import ( # noqa
> ImportError:
> dlopen(/Users/maryam.yousaf/Documents/venv/lib/python3.8/site-packages/psycopg2/_
> psycopg.cpython-38-darwin.so, 2): Symbol not found: _PQbackendPID
>   Referenced from:
> /Users/maryam.yousaf/Documents/venv/lib/python3.8/site-packages/psycopg2/_
> psycopg.cpython-38-darwin.so
>   Expected in: flat namespace
>  in
> /Users/maryam.yousaf/Documents/venv/lib/python3.8/site-packages/psycopg2/_
> psycopg.cpython-38-darwin.so"
>
> Regards,
> Maryam.
>
>
> --
> This email and any files transmitted with it contain confidential
> information and/or privileged or personal advice. This email is intended
> for the addressee(s) stated above only. If you are not the addressee of the
> email please do not copy or forward it or otherwise use it or any part of
> it in any form whatsoever. If you have received this email in error please
> notify the sender and remove the e-mail from your system. Thank you.
>
> This is an email from the company Just Eat Takeaway.com N.V., a public
> limited liability company with corporate seat in Amsterdam, the
> Netherlands, and address at Oosterdoksstraat 80, 1011 DK Amsterdam
> ,
> registered with the Dutch Chamber of Commerce with number 08142836 and
> where the context requires, includes its subsidiaries and associated
> undertakings.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a1ed0079-ee5f-4da1-977c-a02ee5600d6dn%40googlegroups.com
> 
> .
>
-- 
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CACTAcrxJJ-9qqyYW%3DHmXurZypRi6Ve82QjTudOZW2gy40-yVww%40mail.gmail.com

.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKh5HMsBxjsHJH%3DkbM5pP%3DUKzaFeyPgZdbeHnyLCns7p-1VRsw%40mail.gmail.com.


Re: Error on import psycopg2

2021-09-17 Thread Aashish Kumar
install this package 

pip install psycopg2-binary

It works perfectly

On Wed, 15 Sep 2021 at 9:40 PM, 'Maryam Yousaf' via Django users <
django-users@googlegroups.com> wrote:

> Hello,
>
> I need psycopg2 for postgres database in django. While installing it, I am
> getting below error. I tried everything on internet but it still there.
> Kindly help me out.
>
> Error:
> "File
> "/Users/maryam.yousaf/Documents/venv/lib/python3.8/site-packages/psycopg2/__init__.py",
> line 51, in 
> from psycopg2._psycopg import ( # noqa
> ImportError:
> dlopen(/Users/maryam.yousaf/Documents/venv/lib/python3.8/site-packages/psycopg2/_
> psycopg.cpython-38-darwin.so, 2): Symbol not found: _PQbackendPID
>   Referenced from:
> /Users/maryam.yousaf/Documents/venv/lib/python3.8/site-packages/psycopg2/_
> psycopg.cpython-38-darwin.so
>   Expected in: flat namespace
>  in
> /Users/maryam.yousaf/Documents/venv/lib/python3.8/site-packages/psycopg2/_
> psycopg.cpython-38-darwin.so"
>
> Regards,
> Maryam.
>
>
> --
> This email and any files transmitted with it contain confidential
> information and/or privileged or personal advice. This email is intended
> for the addressee(s) stated above only. If you are not the addressee of the
> email please do not copy or forward it or otherwise use it or any part of
> it in any form whatsoever. If you have received this email in error please
> notify the sender and remove the e-mail from your system. Thank you.
>
> This is an email from the company Just Eat Takeaway.com N.V., a public
> limited liability company with corporate seat in Amsterdam, the
> Netherlands, and address at Oosterdoksstraat 80, 1011 DK Amsterdam
> ,
> registered with the Dutch Chamber of Commerce with number 08142836 and
> where the context requires, includes its subsidiaries and associated
> undertakings.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a1ed0079-ee5f-4da1-977c-a02ee5600d6dn%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACTAcrxJJ-9qqyYW%3DHmXurZypRi6Ve82QjTudOZW2gy40-yVww%40mail.gmail.com.


Re: Error on import psycopg2

2021-09-17 Thread 'Maryam Yousaf' via Django users
Thank you all. It was resolved by making new virtual environment and
installing it again

On Fri, Sep 17, 2021, 6:47 PM Vinay Bagare  wrote:

> Try
>
> >> psycopg2-binary
>
> Best,
> Vinay Bagare
>
> Sent from my iPhone
>
> > On Sep 15, 2021, at 12:15 PM, Kasper Laudrup 
> wrote:
> >
> > On 15/09/2021 16.40, 'Maryam Yousaf' via Django users wrote:
> >> Hello,
> >> I need psycopg2 for postgres database in django. While installing it, I
> am getting below error. I tried everything on internet but it still there.
> Kindly help me out.
> >>
> >
> > Did you try this:
> >
> >
> https://stackoverflow.com/questions/65059310/apple-m1-install-psycopg2-package-symbol-not-found-pqbackendpid
> >
> > I don't know much about MacOSX, but I would assume you have an
> unsupported version of Postgres installed.
> >
> > Kind regards,
> >
> > Kasper Laudrup
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Django users" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to django-users+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d667e7fa-57a7-ee16-0390-6834e0f0f006%40stacktrace.dk
> .
> > 
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/1C0852B7-F4BE-4A54-AB01-033F4A2EB5E6%40gmail.com
> .
>

-- 



This email and any files transmitted with it contain confidential 
information and/or privileged or personal advice. This email is intended 
for the addressee(s) stated above only. If you are not the addressee of the 
email please do not copy or forward it or otherwise use it or any part of 
it in any form whatsoever. If you have received this email in error please 
notify the sender and remove the e-mail from your system. Thank you.


This 
is an email from the company Just Eat Takeaway.com N.V., a public limited 
liability company with corporate seat in Amsterdam, the Netherlands, and 
address at Oosterdoksstraat 80, 1011 DK Amsterdam, registered with the 
Dutch Chamber of Commerce with number 08142836 and where the context 
requires, includes its subsidiaries and associated undertakings.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAACfofs8zmKDT30DC0QOKUro0CY0_kQsTuqD_4DgSBFvHou8Hw%40mail.gmail.com.


Re: Error on import psycopg2

2021-09-17 Thread Vinay Bagare
Try 

>> psycopg2-binary

Best,
Vinay Bagare

Sent from my iPhone

> On Sep 15, 2021, at 12:15 PM, Kasper Laudrup  wrote:
> 
> On 15/09/2021 16.40, 'Maryam Yousaf' via Django users wrote:
>> Hello,
>> I need psycopg2 for postgres database in django. While installing it, I am 
>> getting below error. I tried everything on internet but it still there. 
>> Kindly help me out.
>> 
> 
> Did you try this:
> 
> https://stackoverflow.com/questions/65059310/apple-m1-install-psycopg2-package-symbol-not-found-pqbackendpid
> 
> I don't know much about MacOSX, but I would assume you have an unsupported 
> version of Postgres installed.
> 
> Kind regards,
> 
> Kasper Laudrup
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/d667e7fa-57a7-ee16-0390-6834e0f0f006%40stacktrace.dk.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1C0852B7-F4BE-4A54-AB01-033F4A2EB5E6%40gmail.com.


Re: Error on import psycopg2

2021-09-15 Thread FIRDOUS BHAT
Try installing this package,

pip install psycopg2-binary

On Wed, Sep 15, 2021 at 10:45 PM Kasper Laudrup 
wrote:

> On 15/09/2021 16.40, 'Maryam Yousaf' via Django users wrote:
> > Hello,
> >
> > I need psycopg2 for postgres database in django. While installing it, I
> > am getting below error. I tried everything on internet but it still
> > there. Kindly help me out.
> >
>
> Did you try this:
>
>
> https://stackoverflow.com/questions/65059310/apple-m1-install-psycopg2-package-symbol-not-found-pqbackendpid
>
> I don't know much about MacOSX, but I would assume you have an
> unsupported version of Postgres installed.
>
> Kind regards,
>
> Kasper Laudrup
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d667e7fa-57a7-ee16-0390-6834e0f0f006%40stacktrace.dk
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFB6YJrWD-Thhida0%2B1fzgzox6ca_CPSPoLgEzTveE8009VwVg%40mail.gmail.com.


Re: Error on import psycopg2

2021-09-15 Thread Kasper Laudrup

On 15/09/2021 16.40, 'Maryam Yousaf' via Django users wrote:

Hello,

I need psycopg2 for postgres database in django. While installing it, I 
am getting below error. I tried everything on internet but it still 
there. Kindly help me out.




Did you try this:

https://stackoverflow.com/questions/65059310/apple-m1-install-psycopg2-package-symbol-not-found-pqbackendpid

I don't know much about MacOSX, but I would assume you have an 
unsupported version of Postgres installed.


Kind regards,

Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d667e7fa-57a7-ee16-0390-6834e0f0f006%40stacktrace.dk.


OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature