Re: Error: pg_config executable not found. (psycopg2 for postgres in docker not successfully installed)

2022-11-03 Thread Adeyemi Deji
Also, i tried psycopg2-binary ànd still add the same error issue but when i updated the Dokerfile, things got normal. On Mon, 31 Oct 2022, 19:51 'Kasper Laudrup' via Django users, < django-users@googlegroups.com> wrote: > On 31/10/2022 19.32, Adeyemi Deji wrote: > > >

Re: Error: pg_config executable not found. (psycopg2 for postgres in docker not successfully installed)

2022-11-01 Thread Adeyemi Deji
.com> wrote: > On 31/10/2022 19.32, Adeyemi Deji wrote: > > > > Hello, fam! > > > > Found a solution to the problem. Updated the Dockerfile. Check below > > > > Great to hear you figured it out and thanks for sharing. Out of > curiosity, any reason why y

Re: Error: pg_config executable not found. (psycopg2 for postgres in docker not successfully installed)

2022-10-31 Thread 'Kasper Laudrup' via Django users
On 31/10/2022 19.32, Adeyemi Deji wrote: Hello, fam! Found a solution to the problem. Updated the Dockerfile. Check below Great to hear you figured it out and thanks for sharing. Out of curiosity, any reason why you chose to build the psycopg2 package from source instead of using a

Re: Error: pg_config executable not found. (psycopg2 for postgres in docker not successfully installed)

2022-10-31 Thread Adeyemi Deji
ll libpq-dev gcc COPY ./requirements.txt . RUN pip install -r requirements.txt COPY . . On Saturday, October 29, 2022 at 1:12:22 PM UTC+1 Kasper Laudrup wrote: > On 28/10/2022 12.35, Adeyemi Deji wrote: > > > > I have tried this command in Dockerfile: RUN pip install --user > &

Re: Error: pg_config executable not found. (psycopg2 for postgres in docker not successfully installed)

2022-10-29 Thread 'Kasper Laudrup' via Django users
On 28/10/2022 12.35, Adeyemi Deji wrote: I have tried this command in Dockerfile: RUN pip install --user psycopg2==2.9.5 I got the command on StackOverflow but still didn't resolve the issue. Seems like you need the postgresql development package or similar to build psycopg2 from s

Error: pg_config executable not found. (psycopg2 for postgres in docker not successfully installed)

2022-10-28 Thread Adeyemi Deji
Hello Fam! I'm currently going through djangoforprofessional tutorial and I've been trying to resolve an error related to installing psycopg2 for postgres in a docker container. After setting up Dockerfile, requirements.txt, and docker-compose.yml which is shown below, I entered th

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 D

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 >

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, Kas

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

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 i

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

Error on import psycopg2

2021-09-15 Thread 'Maryam Yousaf' via Django users
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"

psycopg 2 saying No module named 'psycopg2._psycopg'

2020-11-22 Thread Israel Adeyeye
Please I need help buddies, I have been battling with installing psycopg2 on my virtual env. I am sure i have installed it because i receive this message whenever i want to install again: Requirement already satisfied: psycopg2 in c:\users\lenovo\envs\easynet\lib\site-packages (2.8.6) but

Re: Error loading psycopg2 module: No module named 'psycopg2'

2020-03-31 Thread Mike Dewhirst
On 1/04/2020 11:56 am, Mike Dewhirst wrote: On 1/04/2020 10:53 am, Umar Abdulsattar wrote: Hello fellows currently i am learning django and try to build and single webpage and also try to connect with postgresql but using adopter psycopg2 i face some problems like i find this error  "

Re: Error loading psycopg2 module: No module named 'psycopg2'

2020-03-31 Thread Mike Dewhirst
On 1/04/2020 10:53 am, Umar Abdulsattar wrote: Hello fellows currently i am learning django and try to build and single webpage and also try to connect with postgresql but using adopter psycopg2 i face some problems like i find this error  " File "C:\Program Files (x86)\Python37-3

Error loading psycopg2 module: No module named 'psycopg2'

2020-03-31 Thread Umar Abdulsattar
Hello fellows currently i am learning django and try to build and single webpage and also try to connect with postgresql but using adopter psycopg2 i face some problems like i find this error " File "C:\Program Files (x86)\Python37-32\lib\site-packages\django\db\backends\postgres

Re: Problem trying to use postgresql and psycopg2 in a django project

2019-11-20 Thread Yoo
Hey, I think for OSX (Mac) or anything using the Darwin OS (basically apple) has to use psycopg2’s binary. Just install psycopg2-binary and it should work. On Wednesday, November 20, 2019 at 6:50:01 AM UTC-5, tramites xpress drive wrote: > Hi, I Have been trying to setup my djang

Problem trying to use postgresql and psycopg2 in a django project

2019-11-20 Thread tramites xpress drive
*Hi, I Have been trying to setup my django 2 developement environment and to connect it to postgresql but whern I change the parameters in settings.py on the sections of DATABASES to use POSTGRES and Psycopg2 I Receive the following error* eztve) Indiras-MBP-16a3:ezt Sindira$ python

Re: I am new in Django. Getting below errors when i am trying to install psycopg2. Please help me.....

2019-10-10 Thread Peter van der Does
Literally the first search result on google: https://www.google.com/search?q=psycopg2+ld%3A+library+not+found+for+lssl Google and Stack Overflow is my workflow. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

I am new in Django. Getting below errors when i am trying to install psycopg2. Please help me.....

2019-10-10 Thread shailendra singh
ook-Air:ioadigital shailendra$ pip install psycopg2 Collecting psycopg2 Using cached https://files.pythonhosted.org/packages/5c/1c/6997288da181277a0c29bc39a5f9143ff20b8c99f2a7d059cfb55163e165/psycopg2-2.8.3.tar.gz Installing collected packages: psycopg2 Running setup.py install for psycopg2

Re: Django + PostgreSQL Installation (pipenv install psycopg2)

2019-04-11 Thread Junaid Burke
Thanks Sandip and Danny, below commend worked for me. pipenv install psycopg2-binary Thanks > On Apr 11, 2019, at 2:08 AM, Sandip Nath wrote: > > Try the command: > pipenv install psycopg2-binary > > -- > You received this message because you are subscribed to the Goo

Django + PostgreSQL Installation (pipenv install psycopg2)

2019-04-10 Thread Sandip Nath
Try the command: pipenv install psycopg2-binary -- 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 post to

Django + PostgreSQL Installation (pipenv install psycopg2)

2019-04-10 Thread Danny Blaker
https://github.com/psycopg/psycopg2/issues/699 Try updating pip too :) -- 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-user

Django + PostgreSQL Installation (pipenv install psycopg2)

2019-04-10 Thread Danny Blaker
https://www.google.com/url?sa=t&source=web&rct=j&url=https://stackoverflow.com/questions/11618898/pg-config-executable-not-found&ved=2ahUKEwitxePlncfhAhVDwIsBHeQbBTEQjjgwAHoECAkQAg&usg=AOvVaw1ujp9GSEZRKKrkOSHWdMiD -- You received this message because you are subscribed to the Google Groups "Djan

psycopg2.DataError: invalid input syntax

2019-04-03 Thread omar ahmed
i am getting this error : psycopg2.DataError: invalid input syntax what is the solution ? -- 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-user

RE: psycopg2 Substr SQL generator bug?

2018-10-09 Thread Matthew Pava
lat=True) From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Jakob Karstens Sent: Tuesday, October 9, 2018 11:58 AM To: Django users Subject: Re: psycopg2 Substr SQL generator bug? Unfortunately, using the `output_field` keyword argument leads to the same error: &

Re: psycopg2 Substr SQL generator bug?

2018-10-09 Thread Jakob Karstens
sers/jakobkarstens/confir/virt/lib/python3.6/site-packages/django/db/backends/utils.py" , line 85, in _execute return self.cursor.execute(sql, params) psycopg2.ProgrammingError: function replace(double precision, unknown, unknown) does not exist LINE 1: ...nces"."webs

RE: psycopg2 Substr SQL generator bug?

2018-10-09 Thread Matthew Pava
Jakob Karstens Sent: Tuesday, October 9, 2018 11:43 AM To: Django users Subject: Re: psycopg2 Substr SQL generator bug? Thanks Matthew, I'll submit a ticket. Unfortunately, ExtractYear does not return a string, so it seems like I would still need to explicitly cast the ye

Re: psycopg2 Substr SQL generator bug?

2018-10-09 Thread Jakob Karstens
'year')) Traceback (most recent call last): File "/Users/jakobkarstens/confir/virt/lib/python3.6/site-packages/django/db/backends/utils.py" , line 85, in _execute return self.cursor.execute(sql, params) psycopg2.ProgrammingError: function replace(double precision, unkno

RE: psycopg2 Substr SQL generator bug?

2018-10-09 Thread Matthew Pava
[mailto:django-users@googlegroups.com] On Behalf Of Jakob Karstens Sent: Tuesday, October 9, 2018 1:47 AM To: Django users Subject: psycopg2 Substr SQL generator bug? I have a model named `Conference` which has two fields: a DateField `start_date` and a URLField `website`. I want to filter th

Re: Can't use psycopg2 2.7b1 with django

2017-02-13 Thread notsqrt
go-cms > is using it, for example). Not sure about "packaging". Do you want to > create a Trac ticket for this issue? Probably the same technique could also > be used in other places. > > On Friday, February 10, 2017 at 5:58:29 AM UTC-5, not...@gmail.com wrote: >>

Re: Can't use psycopg2 2.7b1 with django

2017-02-10 Thread Tim Graham
9 AM UTC-5, not...@gmail.com wrote: > > Hi ! > > psycopg2 is preparing a new release, and currently the git project uses PEP > 440 <https://www.python.org/dev/peps/pep-0440/>-compatible version > numbers : 2.7b1, 2.7b2.dev0 (see > https://github.com/psycopg/psyco

Re: Can't use psycopg2 2.7b1 with django

2017-02-10 Thread notsqrt
packaging is a dependency of setuptools (previously included in its vendor libs), so very probably installed everywhere ! Le vendredi 10 février 2017 11:58:29 UTC+1, not...@gmail.com a écrit : > > Hi ! > > psycopg2 is preparing a new release, and currently the git project uses PEP

Can't use psycopg2 2.7b1 with django

2017-02-10 Thread notsqrt
Hi ! psycopg2 is preparing a new release, and currently the git project uses PEP 440 <https://www.python.org/dev/peps/pep-0440/>-compatible version numbers : 2.7b1, 2.7b2.dev0 (see https://github.com/psycopg/psycopg2/blob/master/setup.py#L67) In https://github.com/django/django/blob/

Re: Custom Database Connector Based on psycopg2 for External Postgres DB

2016-06-09 Thread Michal Petrucha
ke > to adopt what already exists in the Postgres connector > (django.db.backends.postgresql_psycopg2 I believe). Ideally, my hope is > that I'd just override the psycopg2 call to the Postgres DB with my own > call to my REST API, since the SQL query is the same. But I'm

Custom Database Connector Based on psycopg2 for External Postgres DB

2016-06-09 Thread Brandon
ector (django.db.backends.postgresql_psycopg2 I believe). Ideally, my hope is that I'd just override the psycopg2 call to the Postgres DB with my own call to my REST API, since the SQL query is the same. But I'm having trouble figuring out where this can go and if it can be this simple. Any help or

InterfaceError: connection already closed from psycopg2 when running Django Tests

2015-08-11 Thread TheBeardedTemplar
I'm trying to implement testing on a fairly large Django site, and I'm encountering a psycopg2 error when running all the tests at once using `python manage.py test`. If I specify each app name individually, it works fine (some tests fail, but all for legitimate reasons), however

Re: How to install psycopg2 using Pip?

2014-11-21 Thread Kat R
This was helpful. Thank you. :) On Thursday, March 24, 2011 11:49:05 AM UTC-4, Shawn Milochik wrote: > > This actually has nothing to do with Python -- I'm talking about your > PATH, not your PYTHONPATH. > > Short version: Type 'which pg_config' at the command line. If it is > found, then it's on

Re: connecting django to postgres on Windows7- issue with install of psycopg2

2014-11-06 Thread jogaserbia
In case anyone comes across this same issue. What I did was to navigate to the Scripts folder in the virtual environment where I want it. Then, I ran this command: (virtualenvironment) C:\(path to environment where I want psycopg2)\Scripts>python easy_install.exe c:\psycop g2-2.5.4.

connecting django to postgres on Windows7- issue with install of psycopg2

2014-11-06 Thread jogaserbia
Hi All, I am trying use postgres with Django for the first time. I successfully downloaded psycopg2 through this site: http://www.stickpeople.com/projects/python/win-psycopg/ It is in my main site-libraries. However, when I try to run the same command in my virtual environment (when the

Re: Problems with psycopg2 on Windows 7 64 bit

2014-09-27 Thread Mike Dewhirst
;sntz=1&usg=AFQjCNGss5TWliAyF_rFvd5Lc6WD_zz7ng>) installs for the global instance of Python, not the virtualenv. I copied the psycopg folder and the "egg-info" file to the virtualenv and the "No module named..." error disappeared. Another solution is to download the

Re: Problems with psycopg2 on Windows 7 64 bit

2014-09-27 Thread Daniel Grace
I got around this particular problem. The Windows installer for psycopg (at http://www.stickpeople.com/projects/python/win-psycopg/ ) installs f

Problems with psycopg2 on Windows 7 64 bit

2014-09-27 Thread Daniel Grace
I have installed Python 3.4, Django 1.7, Postgresql 9.3 and psycopg2-2.5.4 (using the Windows installer at http://www.stickpeople.com/projects/python/win-psycopg/) When I try a syncdb command from my virtualenv I get the following error: (landy) C:\landy\cresta>python manage.py syn

Re: Error installing psycopg2-2.5.4 on Windows 7

2014-09-27 Thread Daniel Grace
I solved this. I was using the wrong version of psycopg2, I needed the 64 bit version. On Saturday, 27 September 2014 14:35:43 UTC+1, Daniel Grace wrote: > > Hi, > I have Python 3.4, Django 1.7 and Postgresql 9.3 installed. I get the > following error when installing pscyopg2-2.5.

Error installing psycopg2-2.5.4 on Windows 7

2014-09-27 Thread Daniel Grace
Hi, I have Python 3.4, Django 1.7 and Postgresql 9.3 installed. I get the following error when installing pscyopg2-2.5.4 on Windows 7: Python version 3.4 required, which was not found in the registry. Any ideas? Thanks. -- You received this message because you are subscribed to the Google Gr

Re: psycopg2

2014-07-25 Thread Henrique Oliveira
Thanks Mario, it worked 2014-07-24 21:56 GMT-03:00 Mario Gudelj : > In > http://stackoverflow.com/questions/20789063/get-fatal-error-when-install-psycopg2 > OP mentions that "Just installed python 3.4 and assumed python3-dev would > suffice. Nope. Had to do python3.4-dev. "

Re: psycopg2

2014-07-24 Thread Mario Gudelj
In http://stackoverflow.com/questions/20789063/get-fatal-error-when-install-psycopg2 OP mentions that "Just installed python 3.4 and assumed python3-dev would suffice. Nope. Had to do python3.4-dev. " Perhaps you need to do the same thing... On 25 July 2014 10:29, Henrique Olive

Re: psycopg2

2014-07-24 Thread Henrique Oliveira
>> >> >> >> >> >> *Hi All,I am trying to install psycopg2 but I am getting this error:*I >> already installed python3-dev and libpq-dev Any idea?* >> >> Downloading/unpacking psycopg2 >> Downloading psycopg2-2.5.3.tar.gz (690kB): 690kB dow

Re: psycopg2

2014-07-24 Thread Mario Gudelj
Install this first: sudo apt-get install python-dev Then try installing that package again. On 25 July 2014 09:55, Henrique Oliveira wrote: > > > > > > *Hi All,I am trying to install psycopg2 but I am getting this error:*I > already installed python3-dev

psycopg2

2014-07-24 Thread Henrique Oliveira
*Hi All,I am trying to install psycopg2 but I am getting this error:*I already installed python3-dev and libpq-devAny idea?* Downloading/unpacking psycopg2 Downloading psycopg2-2.5.3.tar.gz (690kB): 690kB downloaded Running setup.py (path:/opt/d/build/psycopg2/setup.py) egg_info for

Re: How to install psycopg2 using Pip?

2014-06-16 Thread Bill Freeman
ove. All this can be found using google. On Thu, Jun 12, 2014 at 6:26 AM, Sugatang Itlog wrote: > Hi - When installing psycopg2 and errors like ... > > Error: pg_config executable not found > > do the following > > [root@localhost ~]# which -a pg_config > /usr/bin/whic

Re: How to install psycopg2 using Pip?

2014-06-12 Thread Sugatang Itlog
Hi - When installing psycopg2 and errors like ... Error: pg_config executable not found do the following [root@localhost ~]# which -a pg_config /usr/bin/which: no pg_config in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) [root@localhost ~]# find / -iname

Re: How to install psycopg2 using Pip?

2014-06-12 Thread Sugatang Itlog
Hi - If you get errors like this when install via pip install psycopg2 ... Error: pg_config executable not found. do the the following ... [root@localhost ~]# which -a pg_config /usr/bin/which: no pg_config in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) [root

Re: How to install psycopg2 using Pip?

2014-06-11 Thread Sugatang Itlog
Hi - If you get errors like this when install via pip install psycopg2 ... Error: pg_config executable not found. do the the following ... [root@localhost ~]# which -a adrian /usr/bin/which: no pg_config in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin) [root

RE: How to install psycopg2 using Pip?

2014-06-04 Thread Ilya Kazakevich
Hello, To be installed, psycopg2 needs to know where PostgreSQL headers (.h files) and libraries (.a files) are situated. Header files are required by compiler while libraries are required by linker. PostgreSQL provides special tool named "pg_config" that tells everyone where Pos

Re: How to install psycopg2 using Pip?

2014-06-04 Thread Dow Street
My understanding is that psycopg2 looks for some postgres files during the install. If you have postgres already installed on the same box, you should be able to resolve this problem by adding the postgres folder to your PATH environment variable before running 'pip install psycopg2&#

Re: How to install psycopg2 using Pip?

2014-06-04 Thread Fabio Caritas Barrionuevo da Luz
a virtual environment. Now I > need to instal "psycopg2" in my virtual environment, but I have not > successfully installed. > > My steps: > > [quote] > pip install > > http://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.4.tar.gz#md5=24f4368e2cfdc

Re: How to install psycopg2 using Pip?

2014-06-03 Thread Adrian Miguel
with the option: >> >> >> >> python setup.py build_ext --pg-config /path/to/pg_config build ... >> >> >> >> or with the pg_config option in 'setup.cfg'. >> >> >> Command python

Re: PostgreSQL on windows 7 (psycopg2 install problem)

2014-02-12 Thread Maksym Sokolsky
You can install to virtualenv localy like this: "easy_install http://www.stickpeople.com/projects/python/win-psycopg/psycopg2-2.4.win32-pyx.x-pg9.0.3-release.exe"; - thanks to @ig0774 <http://stackoverflow.com/users/274466/ig0774> from http://stackoverflow.com/a/5383266 On

Re: ImproperlyConfigured: Error loading psycopg2 module: No module named _psycopg

2014-01-17 Thread Начаров Михаил
You're welcome! You can also take a look to another python web-server. Especially if you want to have for example two sites with different version of python on the same server. When I wrote my first django-app on py3, I faced the same problem. 17.01.2014 15:34, Timothy W. Cook пишет: On F

Re: ImproperlyConfigured: Error loading psycopg2 module: No module named _psycopg

2014-01-17 Thread Timothy W. Cook
On Fri, Jan 17, 2014 at 1:52 AM, Начаров Михаил wrote: > Hi Timothy, > > Note that your mod_wsgi module compiled for using python2.7. So what you > need now is install(compile&install) mod_wsgi for python3 instead of the > same module compiled for python2.7. > On Debian you can do it by this comm

Re: ImproperlyConfigured: Error loading psycopg2 module: No module named _psycopg

2014-01-16 Thread Начаров Михаил
Hi Timothy, Note that your mod_wsgi module compiled for using python2.7. So what you need now is install(compile&install) mod_wsgi for python3 instead of the same module compiled for python2.7. On Debian you can do it by this command: $ sudo apt-get install libapache2-mod-wsgi-py3 16.01

ImproperlyConfigured: Error loading psycopg2 module: No module named _psycopg

2014-01-16 Thread Timothy W. Cook
This question is also on Stackoverflow http://goo.gl/LinMue but I thought somene here may have an idea. I have a Django 1.5, Python 2.7 site running under Apache with mod_wsgi on a CentOS 6.4 server. I have rebuilt this site using Django 1.6 and Python 3.3. Deploying it to the same server and c

Re: Psycopg2 on Mac OS X (Snow Leopard)

2013-11-10 Thread Tom Lockhart
/9.3/lib/libssl.1.0.0.dylib > /usr/lib/libssl.1.0.0.dylib > sudo ln -s /Library/PostgreSQL/9.3/lib/libcrypto.1.0.0.dylib > /usr/lib/libcrypto.1.0.0.dylib > (It may also have been possible to place these symbolic links in > /Library/Python/2.6/site-packages/psycopg2/ , next to _p

Re: Psycopg2 on Mac OS X (Snow Leopard)

2013-11-10 Thread Matthias Fripp
QL/9.3/lib/libssl.1.0.0.dylib /usr/lib/libssl.1.0.0.dylib sudo ln -s /Library/PostgreSQL/9.3/lib/libcrypto.1.0.0.dylib /usr/lib/libcrypto.1.0.0.dylib (It may also have been possible to place these symbolic links in /Library/Python/2.6/site-packages/psycopg2/ , next to _psycopg.so .) The disadvantag

Re: psycopg2._psycopg.cursor missing cursor.fetchnone/cursor.fetchall

2013-11-02 Thread Vernon D. Cole
One problem you are having is a typographical error: The cursor method is "Fetch One" not "Fetch None". On Friday, November 1, 2013 8:46:17 AM UTC+1, hjr1 wrote: > > Hi all. > > I am trying to use django.db.connection with psycog2 (postgres). I can run > something like cursor=connection.curs

psycopg2._psycopg.cursor missing cursor.fetchnone/cursor.fetchall

2013-11-01 Thread hjr1
Hi all. I am trying to use django.db.connection with psycog2 (postgres). I can run something like cursor=connection.cursor(); cursor.execute("SELECT * FROM app_mymodel") … but it looks like psyog2 is missing cursor.fetchnone/cursor.fetchall. A bit surprised on this as it is documented clear

Re: Psycopg2 on Mac OS X (Snow Leopard)

2013-10-28 Thread Skip Montanaro
> I just had this exact same problem and it took me a while to find the > solution. > > On OSx there is a separate library path variable for .dylib library files. I > added the following to my .bashrc (or.bash_env or however you set up your > shell environment). > > export > DYLD_LIBRARY_PATH="/usr

Re: Psycopg2 on Mac OS X (Snow Leopard)

2013-10-28 Thread Adam Portier
t initially) on Heroku. I'm at the point > where I have my basic structure laid out and am proceeding to model > definition. Heroku's default database is PostgreSQL, which I'm > comfortable with, and seems to be installed properly there. The > locally built psycopg2 module

Re: Psycopg2 on Mac OS X (Snow Leopard)

2013-10-28 Thread Tom Lockhart
On 2013-10-27, at 7:46 AM, Doug Snyder wrote: > I don't have a very specific answer for your question. I just started doing > my django dev on OSX coming from Ubuntu > My understanding is that Home Brew is a better solution than Mac Ports, I > have heard some people being very critical of Mac

Re: Psycopg2 on Mac OS X (Snow Leopard)

2013-10-27 Thread Skip Montanaro
Thanks for the response. I only mentioned MacPorts to demonstrate that when psycopg2 was built, pip couldn't have found libssl 1.x there. I routinely build my own Python instances. The venv version of Python is a 2.7.5+ version built from hg. Skip -- You received this message because yo

Re: Psycopg2 on Mac OS X (Snow Leopard)

2013-10-27 Thread Doug Snyder
inition. Heroku's default database is PostgreSQL, which I'm > comfortable with, and seems to be installed properly there. The > locally built psycopg2 module (2.5.1) is missing libssl, however: > > (venv)topten% python manage.py shell > ImportError: > dlopen(/Users/skip/heroku/

Psycopg2 on Mac OS X (Snow Leopard)

2013-10-27 Thread Skip Montanaro
ith, and seems to be installed properly there. The locally built psycopg2 module (2.5.1) is missing libssl, however: (venv)topten% python manage.py shell ImportError: dlopen(/Users/skip/heroku/topten/venv/lib/python2.7/site-packages/psycopg2/_psycopg.so, 2): Library not loaded: libssl.1.0.0.dyl

Re: Ubuntu, Postgres, and psycopg2.

2013-10-17 Thread Matthias Müller
You need the python header as well: sudo apt-get install python-dev -- Viele Grüße / Best Regards Matthias Müller 2013/10/17 Nigel Legg > Thanks Thomas, that worked, so some progress, but now when I do sudo pip > psycopg2, I get an error: Python.h not found - > In file included fro

Re: Ubuntu, Postgres, and psycopg2.

2013-10-17 Thread Thomas Orozco
You're missing: sudo apt-get install python-dev On Thu, Oct 17, 2013 at 11:31 AM, Nigel Legg wrote: > Thanks Thomas, that worked, so some progress, but now when I do sudo pip > psycopg2, I get an error: Python.h not found - > In file included from psycopg/psycopgmodule.c:27:

Re: Ubuntu, Postgres, and psycopg2.

2013-10-17 Thread Nigel Legg
Thanks Thomas, that worked, so some progress, but now when I do sudo pip psycopg2, I get an error: Python.h not found - In file included from psycopg/psycopgmodule.c:27:0: ./psycopg/psycopg.h:30:20: fatal error: Python.h: no such file or directory. Should I be downloading and building the source

Re: Ubuntu, Postgres, and psycopg2.

2013-10-17 Thread Thomas Orozco
You need the Postgres client C headers to build psycopg2. Before running pip install psycopg2, run: sudo apt-get install libpq-dev On Thu, Oct 17, 2013 at 10:51 AM, Nigel Legg wrote: > I am not sure whether this is really a postgres issue or a python / Django > issue - please let me k

Ubuntu, Postgres, and psycopg2.

2013-10-17 Thread Nigel Legg
it says 2.7.4). I followed the instructions on configuring Postgres from http://blog.iiilx.com/programming/how-to-install-postgres-on-ubuntu-for-django/, up to the point of adding a line to the pg_hba.conf file - Ubuntu would not let me write to this. When I tried to install psycopg2 (pip

Re: connecting problems to a DB using psycopg2

2013-05-08 Thread noodlygod
Hello, I'm not really an expert and everyone's configuration is different so rather than address your problem directly I'll provide a guide for how I got Postgres/Django to work together on Windows. 1. Download the Postgres installer found here

Re: Postgres/psycopg2 setup error

2013-05-06 Thread Shawn Milochik
I see you posted the question on StackOverflow as well. A quick search turned up the same problem there, with a solution that allegedly works: http://stackoverflow.com/questions/14863723/psycopg2-import-error-due-to-failure-to-load-libraries -- You received this message because you are

Postgres/psycopg2 setup error

2013-05-06 Thread Craig Cannon
Trying to setup postgres with the postgres mac app and hit this error, which I haven't been able to solve. Any thoughts? ImportError: dlopen(/Users/Craig/pyenv/mysite/lib/python2.7/site-packages/psycopg2/_psycopg.so, 2): Library not loaded: @executable_path/../lib/libssl.1.0.0.

Re: PostgreSQL on windows 7 (psycopg2 install problem)

2013-04-14 Thread Mustafa Tulu
t on Windows, I could never figure that out :-), and installing the .exe > files and using --system-site-packages seems to work fine for most things > .. it should be fairly rare that you require two different versions of > something like psycopg2 for different projects, so it should not be

Re: PostgreSQL on windows 7 (psycopg2 install problem)

2013-04-14 Thread Avraham Serour
I usually try to compile the packages on my win7 machine, just so I can use pip install inside my virtualenv. psycopg2 was the only one so far that I couldn't, eventually I installed the pre compiled binaries on my root python installation and then copied the files/folder necessary for psy

Re: PostgreSQL on windows 7 (psycopg2 install problem)

2013-04-14 Thread Sanjay Bhangar
uire two different versions of something like psycopg2 for different projects, so it should not be problematic to have it installed system-wide .. All the best, Sanjay On Sun, Apr 14, 2013 at 10:17 PM, Serdar Dalgic wrote: > On Sun, Apr 14, 2013 at 5:45 PM, Mustafa Tulu > wrote: >

Re: PostgreSQL on windows 7 (psycopg2 install problem)

2013-04-14 Thread Serdar Dalgic
Make sure you have python-dev and libpq-dev packages installed on your environment. After that, try "pip install psycopg2" -- - Serdar Dalgıç FLOSS Developer, Life & Nature Hacker twitter: https://twitter.com/serdaroncode -- You received this message because you are subscribed

PostgreSQL on windows 7 (psycopg2 install problem)

2013-04-14 Thread Mustafa Tulu
Hi All, I am very new on the subject. Trying to run a postgresql backend with django. (sqllite3 is said to cause problems) My google searches do not reveal useful links on how to do it. I met problems with "pip install psycopg2". When I try to install the package into my virtualenv

Re: python 3.3/3.4 psycopg2 assertion failure on syncdb

2013-04-09 Thread Demian Brecht
> Assertion failed: (PyBytes_Check(((typecastObject*)cast)->name)), > function _pq_fetch_tuples, file psycopg/pqpath.c, line 1138. > Abort trap: 6 Oops. I had built psycopg2 against 3.4, which is where this error comes up. Built against 3.3, everything works as expected. I need slee

python 3.3/3.4 psycopg2 assertion failure on syncdb

2013-04-09 Thread Demian Brecht
Before I spend too much time digging into this, I'm wondering if anyone else has run into this. I have both 3.3 (from binaries) and 3.4 (from source) installed on OSX 10.8.3 (running postgre 9.2.2.0). I haven't set up any models for my app yet, but upon running syncdb, I'm getting: Assertion faile

Re: psycopg2.OperationalError: fe_sendauth: no password supplied

2013-01-01 Thread Bill Freeman
On Tue, Jan 1, 2013 at 12:30 PM, hu mingchun wrote: > add localhost to host field in settings.py > > 在 2009年6月24日星期三UTC+8上午10时09分25秒,Chris Haynes写道: >> >> I've just installed postgresql and psycopg2. I supplied a password in >> the postgres install, but don

Re: psycopg2.OperationalError: fe_sendauth: no password supplied

2013-01-01 Thread hu mingchun
add localhost to host field in settings.py 在 2009年6月24日星期三UTC+8上午10时09分25秒,Chris Haynes写道: > > I've just installed postgresql and psycopg2. I supplied a password in > the postgres install, but don't know how to supply it to psycopg2: > > ~/s/sd$ manage.py syncdb >

Re: psycopg2

2012-11-18 Thread Mike Dewhirst
the trace back and it says 'exceptions.ImportError'. On Windows, cay you not easy_install psycopg2? When I did, it seems that it was done correctly. Please help!!! 2012年11月18日日曜日 2時11分23秒 UTC+9 ovnicraft: On Sat, Nov 17, 2012 at 11:07 AM, Jun Tanaka > wrote: I

Re: psycopg2

2012-11-17 Thread Jun Tanaka
Thank you for your advise. I used the trace back and it says 'exceptions.ImportError'. On Windows, cay you not easy_install psycopg2? When I did, it seems that it was done correctly. Please help!!! 2012年11月18日日曜日 2時11分23秒 UTC+9 ovnicraft: > > > > > On Sat, Nov

Re: psycopg2

2012-11-17 Thread Ovnicraft
On Sat, Nov 17, 2012 at 11:07 AM, Jun Tanaka wrote: > I run a django program with psycopg2 on Mac and then it works fine. Now, I > am trying to run the same program on Windows. Then "ImportError: No module > named psycopg2.extensions" shows up. I installed the same version of

psycopg2

2012-11-17 Thread Jun Tanaka
I run a django program with psycopg2 on Mac and then it works fine. Now, I am trying to run the same program on Windows. Then "ImportError: No module named psycopg2.extensions" shows up. I installed the same version of django, postgres, psycopg2. Please give me a help. -- Yo

Re: psycopg2.DataError

2012-10-30 Thread Tom Evans
On Tue, Oct 30, 2012 at 6:06 AM, jondbaker wrote: > When I run 'python manage.py validate' the following error is returned: > > psycopg2.DataError: invalid value for parameter "TimeZone": "UTC" > > settings.py > TIME_ZONE = 'America/Denver'

psycopg2.DataError

2012-10-29 Thread jondbaker
When I run 'python manage.py validate' the following error is returned: *psycopg2.DataError: invalid value for parameter "TimeZone": "UTC"* * * settings.py TIME_ZONE = 'America/Denver' USE_TZ = True I'm using Django 1.4.2 with Postgres 9.1/PostGIS on

Re: How to install psycopg2 using Pip?

2012-07-23 Thread Mehrdad Majzoobi
---- > Command python setup.py egg_info failed with error code 1 in > /tmp/pip-build/psycopg2 > > ### > > I tried adding pg_config path to the setup.cfg file and build it using the > source files I downloaded from their website and I get the followin

Re: How to install psycopg2 using Pip?

2012-07-23 Thread Mehrdad Majzoobi
code 1 in /tmp/pip-build/psycopg2 ### I tried adding pg_config path to the setup.cfg file and build it using the source files I downloaded from their website and I get the following error message! Error: Unable to find 'pg_config' file in '/usr/pgsql-9.1/bin/&#x

Re: Installing psycopg2 for PostGreSQL as django backend using virtualenv

2012-07-15 Thread Doug S
http://initd.org/psycopg/install/ > I have installed python-dev, libpq-dev and > also postgresql-server-dev-9.1 > I workon my virtualenv and use its pip installation to install psycopg2: > (env) $ sudo pip install psycopg2 > It appears to install successfully: > Successfully

  1   2   3   4   >