Giter Site home page Giter Site logo

zpsycopgda's Introduction

ZPsycopgDA -- psycopg2 Zope adapter

This is the PostgreSQL adapter for Zope 2 and 3 based on psycopg2.

As of version 2.4.6, ZPsycopgDA has the same content of the ZPsycopgDA module included in Psycopg 2.4.6. Future psycopg2 versions will likely not include ZPsycopgDA, which should be installed separately.

Prerequisites

ZPsycopgDA depends on the psycopg2 module version at least 2.4. Don't use versions 2.4.2 or 2.4.3: they are not compatible with ZPsycopgDA. Install the latest version available.

Installation

Unfortunately I'm no Zope expert, so these installation instructions are quite approximative. Please contact us if you want to improve them.

  • Make sure to have your Zope lib directory in the $PYTHONPATH. If some command fails with:

    [...]
    File "[...]/ZPsycopgDA/db.py", line 18, in <module>
      from Shared.DC.ZRDB.TM import TM
    ImportError: No module named Shared.DC.ZRDB.TM
    

    you are probably missing it.

  • Download the ZPsycopgDA package, unpack it and copy the ZPsycopgDA directory into the Products directory of your Zope instance.

  • Alternatively run easy_install ZPsycopgDA or pip install ZPsycopgDA, then symlink or copy the ZPsycopgDA directory from the installed location to the Products directory of your Zope instance.

zpsycopgda's People

Contributors

dvarrazzo avatar dwt avatar feneric avatar fogzot avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

zpsycopgda's Issues

Connection pooling leads to confused transaction isolation levels

There is an issue with this DA which leads to several Zope Connection objects to share pooled connections, even when they have different transaction isolation levels.

This leads to unexpected behaviour, because transaction isolation levels change seemingly at random.

A test sequence which performs "select setting from pg_settings where name = 'transaction_isolation'" on different connectors exposes the problem.

I have written a patch which fixes this, and I would be glad to contribute, but this editor does not allow me to attach a patch file...

How can I pass the patch to you?

error while installing psycopg2

I am a beginner and I am facing issue in psycopg2 installation in my pycharm (venv) on my windows. How to solve it...

error

(venv) C:\Users\Vishal\PycharmProjects\website>pip install psycopg2
Collecting psycopg2
Using cached https://files.pythonhosted.org/packages/84/d7/6a93c99b5ba4d4d22daa3928b983cec66df4536ca50b22ce5dcac65e4e71/psycopg2-2.8.4.tar.gz
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info\psycopg2.egg-info
writing pip-egg-info\psycopg2.egg-info\PKG-INFO
writing dependency_links to pip-egg-info\psycopg2.egg-info\dependency_links.txt
writing top-level names to pip-egg-info\psycopg2.egg-info\top_level.txt
writing manifest file 'pip-egg-info\psycopg2.egg-info\SOURCES.txt'

Error: pg_config executable not found.

pg_config is required to build psycopg2 from source. Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
option:

python setup.py build_ext --pg-config /path/to/pg_config build ...

or with the pg_config option in 'setup.cfg'.

If you prefer to avoid building psycopg2 from source, please install the PyPI
'psycopg2-binary' package instead.

For further information please check the 'doc/src/install.rst' file (also at
http://initd.org/psycopg/docs/install.html).


Command "python setup.py egg_info" failed with error code 1 in C:\Users\Vishal\AppData\Local\Temp\pip-install-yhws7zqc\psycopg2\

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.