<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Le 14/06/2012 10:06, Ralf Hauenschild a &eacute;crit&nbsp;:
    <blockquote cite="mid:4FD99B7B.70804@gmx.de" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      Am 14.06.2012 09:18, schrieb Marius Gedminas:
      <blockquote cite="mid:20120614071826.GA27643@platonas" type="cite">
        <pre wrap="">On Wed, Jun 13, 2012 at 10:58:01PM +0200, Ralf Hauenschild wrote:
</pre>
        <blockquote type="cite">
          <pre wrap="">Am 13.06.2012 19:36, schrieb Alexandre Garel:
</pre>
          <blockquote type="cite">
            <pre wrap="">Le 13/06/2012 18:57, Ralf Hauenschild a &eacute;crit :
</pre>
            <blockquote type="cite">
              <pre wrap="">Hello guys,

i've been desperately trying to install ZODB3 via the following ways:
- easy_install ZODB3
- installation of Zope2
- manual installation of ZODB3, preceeded by installation of the
requested packages from pypi

I'm using Ubuntu and Python 2.6.

Whe trying to import ZODB, I'm still getting the following error:


python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
</pre>
              <blockquote type="cite">
                <blockquote type="cite">
                  <blockquote type="cite">
                    <pre wrap="">import ZODB
</pre>
                  </blockquote>
                </blockquote>
              </blockquote>
              <pre wrap="">Traceback (most recent call last):
 File "&lt;stdin&gt;", line 1, in &lt;module&gt;
 File "/usr/local/lib/python2.6/dist-packages/ZODB3-3.10.5-py2.6-linux-x86_64.egg/ZODB/__init__.py",
line 28, in &lt;module&gt;
   from DB import DB, connection
 File "/usr/local/lib/python2.6/dist-packages/ZODB3-3.10.5-py2.6-linux-x86_64.egg/ZODB/DB.py",
line 28, in &lt;module&gt;
   from ZODB.Connection import Connection
 File "/usr/local/lib/python2.6/dist-packages/ZODB3-3.10.5-py2.6-linux-x86_64.egg/ZODB/Connection.py",
line 33, in &lt;module&gt;
   from ZODB.blob import Blob, rename_or_copy_blob,
remove_committed_dir
 File "/usr/local/lib/python2.6/dist-packages/ZODB3-3.10.5-py2.6-linux-x86_64.egg/ZODB/blob.py",
line 35, in &lt;module&gt;
   from ZODB.POSException import POSKeyError
 File "/usr/local/lib/python2.6/dist-packages/ZODB3-3.10.5-py2.6-linux-x86_64.egg/ZODB/POSException.py",
line 71, in &lt;module&gt;
   class ConflictError(POSError,
transaction.interfaces.TransientError):
AttributeError: 'module' object has no attribute 'TransientError'
</pre>
            </blockquote>
          </blockquote>
        </blockquote>
        <pre wrap="">You need a newer version of the 'transaction' package.  Unfortunately
the changelog at <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://pypi.python.org/pypi/transaction">http://pypi.python.org/pypi/transaction</a> doesn't say
which version added TransientError, but why not get the latest one?

</pre>
        <blockquote type="cite">
          <blockquote type="cite">
            <blockquote type="cite">
              <pre wrap="">Can anybody help me, please?
</pre>
            </blockquote>
            <pre wrap="">The problem may be  with a system wide installed version of transaction.

I would say, try in a virtualenv with no site packages :

$ virtualenv -p /usr/bin/python2.6 --no-site-packages myproject
$ cd myproject
$ . bin/activate
$ pip install ZODB3

Hope this helps,
</pre>
          </blockquote>
          <pre wrap="">Unfortunately, the error remains :(</pre>
        </blockquote>
      </blockquote>
    </blockquote>
    <br>
    You mean in the global python ? For sure ! My goal was to make it
    work in the virtualenv.<br>
    <br>
    <br>
    [-- snip --]<br>
    <blockquote cite="mid:4FD99B7B.70804@gmx.de" type="cite"> Any
      further ideas?<br>
      Python path is set in the global environment. In the virtualenv,
      it was not set, but everything worked there anyway.<br>
    </blockquote>
    <br>
    You have a non compatible version of transaction installed globally,
    so you won't run ZODB3 with your global environment. So Install /
    develop your software&nbsp; in the isolated virtualenv. Is there a
    problem with that ? <br>
    <br>
    If you need it for system script, the shebang just have to use the
    virtualenv python interpreter : #! /path/to/virtualenv/bin/python.<br>
    <br>
    Regards,<br>
    Alex<br>
    <br>
    <br>
  </body>
</html>