[ZODB-Dev] zope.testing has to be installed separately
Aroldo Souza-Leite
asouzaleite at gmx.de
Tue Feb 28 08:43:11 UTC 2012
Hi list,
to have the ZODB3 tests run in a Python virtualenv successfullly I had
to pip-install zope.testing separately. Is it the declared intention of
the ZODB3 developers?
Because it is not a "real" bug, I'm reporting it here instead of on
Launchpad.
Below is my complete bash session in Sphinx format. For zodb
developers, the interesting reStructuredText section might be the third
one, "Running the ZODB3 tests".
I'm Using Ubuntu Lucid Lynx.
Thanks.
Aroldo.
Installing ZODB3 in a virtualenv
================================
Aroldo Souza-Leite
2012-02-28
The ZODB3 tests raise an ImportError.
They succeed after the intallation of zope.testing.
Preparing the virtualenv
------------------------
.. code-block:: bash
aroldo at aroldo-laptop:~$ virtualenv --no-site-packages tmp-env
Using real prefix '/usr'
New python executable in tmp-env/bin/python
Installing setuptools............................done.
Installing pip.....................done.
After minor editing of tmp-env/bin/activate:
.. code-block:: bash
aroldo at aroldo-laptop:~$ source tmp-env/bin/activate
(tmp-env)aroldo at aroldo-laptop:~$ env | grep ENV
VIRTUAL_ENV=/home/aroldo/tmp-env
PIP_ENVIRONMENT=/home/aroldo/tmp-env
Installing ZODB3 using pip
--------------------------
.. code-block:: bash
(tmp-env)aroldo at aroldo-laptop:~$ pip install zodb3
Downloading/unpacking zodb3
Downloading ZODB3-3.10.5.tar.gz (706Kb): 706Kb downloaded
Running setup.py egg_info for package zodb3
Downloading/unpacking transaction>=1.1.0 (from zodb3)
Downloading transaction-1.2.0.tar.gz (42Kb): 42Kb downloaded
Running setup.py egg_info for package transaction
Downloading/unpacking zc.lockfile (from zodb3)
Downloading zc.lockfile-1.0.0.tar.gz
Running setup.py egg_info for package zc.lockfile
Downloading/unpacking ZConfig (from zodb3)
Downloading ZConfig-2.9.2.tar.gz (261Kb): 261Kb downloaded
Running setup.py egg_info for package ZConfig
Downloading/unpacking zdaemon (from zodb3)
Downloading zdaemon-2.0.4.tar.gz (42Kb): 42Kb downloaded
Running setup.py egg_info for package zdaemon
Downloading/unpacking zope.event (from zodb3)
Downloading zope.event-3.5.1.tar.gz
Running setup.py egg_info for package zope.event
Downloading/unpacking zope.interface (from zodb3)
Downloading zope.interface-3.8.0.tar.gz (111Kb): 111Kb downloaded
Running setup.py egg_info for package zope.interface
Requirement already satisfied (use --upgrade to upgrade): setuptools
in ./tmp-e
nv/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg (from
zc.lockfile->z
odb3)
Installing collected packages: zodb3, transaction, zc.lockfile,
ZConfig, zdaemo
n, zope.event, zope.interface
Running setup.py install for zodb3
building 'BTrees._OOBTree' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-pr
ototypes -fPIC -Isrc -I/usr/include/python2.7 -c
src/BTrees/_OOBTree.c -o build
/temp.linux-i686-2.7/src/BTrees/_OOBTree.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
-Wl,-Bsymbolic-functi
ons build/temp.linux-i686-2.7/src/BTrees/_OOBTree.o -o
build/lib.linux-i686-2.7
/BTrees/_OOBTree.so
building 'BTrees._IOBTree' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-pr
ototypes -fPIC -DEXCLUDE_INTSET_SUPPORT -Isrc
-I/usr/include/python2.7 -c src/B
Trees/_IOBTree.c -o build/temp.linux-i686-2.7/src/BTrees/_IOBTree.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
-Wl,-Bsymbolic-functi
ons build/temp.linux-i686-2.7/src/BTrees/_IOBTree.o -o
build/lib.linux-i686-2.7
/BTrees/_IOBTree.so
building 'BTrees._OIBTree' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-pr
ototypes -fPIC -Isrc -I/usr/include/python2.7 -c
src/BTrees/_OIBTree.c -o build
/temp.linux-i686-2.7/src/BTrees/_OIBTree.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
-Wl,-Bsymbolic-functi
ons build/temp.linux-i686-2.7/src/BTrees/_OIBTree.o -o
build/lib.linux-i686-2.7
/BTrees/_OIBTree.so
building 'BTrees._IIBTree' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-pr
ototypes -fPIC -DEXCLUDE_INTSET_SUPPORT -Isrc
-I/usr/include/python2.7 -c src/B
Trees/_IIBTree.c -o build/temp.linux-i686-2.7/src/BTrees/_IIBTree.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
-Wl,-Bsymbolic-functi
ons build/temp.linux-i686-2.7/src/BTrees/_IIBTree.o -o
build/lib.linux-i686-2.7
/BTrees/_IIBTree.so
building 'BTrees._IFBTree' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-pr
ototypes -fPIC -DEXCLUDE_INTSET_SUPPORT -Isrc
-I/usr/include/python2.7 -c src/B
Trees/_IFBTree.c -o build/temp.linux-i686-2.7/src/BTrees/_IFBTree.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
-Wl,-Bsymbolic-functi
ons build/temp.linux-i686-2.7/src/BTrees/_IFBTree.o -o
build/lib.linux-i686-2.7
/BTrees/_IFBTree.so
building 'BTrees._fsBTree' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-pr
ototypes -fPIC -DEXCLUDE_INTSET_SUPPORT -Isrc
-I/usr/include/python2.7 -c src/B
Trees/_fsBTree.c -o build/temp.linux-i686-2.7/src/BTrees/_fsBTree.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
-Wl,-Bsymbolic-functi
ons build/temp.linux-i686-2.7/src/BTrees/_fsBTree.o -o
build/lib.linux-i686-2.7
/BTrees/_fsBTree.so
building 'BTrees._LOBTree' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-pr
ototypes -fPIC -DEXCLUDE_INTSET_SUPPORT -Isrc
-I/usr/include/python2.7 -c src/B
Trees/_LOBTree.c -o build/temp.linux-i686-2.7/src/BTrees/_LOBTree.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
-Wl,-Bsymbolic-functi
ons build/temp.linux-i686-2.7/src/BTrees/_LOBTree.o -o
build/lib.linux-i686-2.7
/BTrees/_LOBTree.so
building 'BTrees._OLBTree' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-pr
ototypes -fPIC -Isrc -I/usr/include/python2.7 -c
src/BTrees/_OLBTree.c -o build
/temp.linux-i686-2.7/src/BTrees/_OLBTree.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
-Wl,-Bsymbolic-functi
ons build/temp.linux-i686-2.7/src/BTrees/_OLBTree.o -o
build/lib.linux-i686-2.7
/BTrees/_OLBTree.so
building 'BTrees._LLBTree' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-pr
ototypes -fPIC -DEXCLUDE_INTSET_SUPPORT -Isrc
-I/usr/include/python2.7 -c src/B
Trees/_LLBTree.c -o build/temp.linux-i686-2.7/src/BTrees/_LLBTree.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
-Wl,-Bsymbolic-functi
ons build/temp.linux-i686-2.7/src/BTrees/_LLBTree.o -o
build/lib.linux-i686-2.7
/BTrees/_LLBTree.so
building 'BTrees._LFBTree' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-pr
ototypes -fPIC -DEXCLUDE_INTSET_SUPPORT -Isrc
-I/usr/include/python2.7 -c src/B
Trees/_LFBTree.c -o build/temp.linux-i686-2.7/src/BTrees/_LFBTree.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
-Wl,-Bsymbolic-functi
ons build/temp.linux-i686-2.7/src/BTrees/_LFBTree.o -o
build/lib.linux-i686-2.7
/BTrees/_LFBTree.so
building 'persistent.cPersistence' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-pr
ototypes -fPIC -Isrc -I/usr/include/python2.7 -c
src/persistent/cPersistence.c
-o build/temp.linux-i686-2.7/src/persistent/cPersistence.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-pr
ototypes -fPIC -Isrc -I/usr/include/python2.7 -c
src/persistent/ring.c -o build
/temp.linux-i686-2.7/src/persistent/ring.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
-Wl,-Bsymbolic-functi
ons build/temp.linux-i686-2.7/src/persistent/cPersistence.o
build/temp.linux-i6
86-2.7/src/persistent/ring.o -o
build/lib.linux-i686-2.7/persistent/cPersistenc
e.so
building 'persistent.cPickleCache' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-pr
ototypes -fPIC -Isrc -I/usr/include/python2.7 -c
src/persistent/cPickleCache.c
-o build/temp.linux-i686-2.7/src/persistent/cPickleCache.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-pr
ototypes -fPIC -Isrc -I/usr/include/python2.7 -c
src/persistent/ring.c -o build
/temp.linux-i686-2.7/src/persistent/ring.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
-Wl,-Bsymbolic-functi
ons build/temp.linux-i686-2.7/src/persistent/cPickleCache.o
build/temp.linux-i6
86-2.7/src/persistent/ring.o -o
build/lib.linux-i686-2.7/persistent/cPickleCach
e.so
building 'persistent.TimeStamp' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-pr
ototypes -fPIC -Isrc -I/usr/include/python2.7 -c
src/persistent/TimeStamp.c -o
build/temp.linux-i686-2.7/src/persistent/TimeStamp.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
-Wl,-Bsymbolic-functi
ons build/temp.linux-i686-2.7/src/persistent/TimeStamp.o -o
build/lib.linux-i68
6-2.7/persistent/TimeStamp.so
Installing fstail script to /home/aroldo/tmp-env/bin
Installing zeopack script to /home/aroldo/tmp-env/bin
Installing runzeo script to /home/aroldo/tmp-env/bin
Installing zeopasswd script to /home/aroldo/tmp-env/bin
Installing zeoctl script to /home/aroldo/tmp-env/bin
Installing fsdump script to /home/aroldo/tmp-env/bin
Installing fsrefs script to /home/aroldo/tmp-env/bin
Installing repozo script to /home/aroldo/tmp-env/bin
Installing fsoids script to /home/aroldo/tmp-env/bin
Running setup.py install for transaction
Running setup.py install for zc.lockfile
Skipping installation of
/home/aroldo/tmp-env/lib/python2.7/site-packages/z
c/__init__.py (namespace package)
Installing
/home/aroldo/tmp-env/lib/python2.7/site-packages/zc.lockfile-1.0
.0-py2.7-nspkg.pth
Running setup.py install for ZConfig
changing mode of build/scripts-2.7/zconfig from 644 to 755
changing mode of build/scripts-2.7/zconfig_schema2html from 644
to 755
changing mode of /home/aroldo/tmp-env/bin/zconfig_schema2html to 755
changing mode of /home/aroldo/tmp-env/bin/zconfig to 755
Running setup.py install for zdaemon
Installing zdaemon script to /home/aroldo/tmp-env/bin
Running setup.py install for zope.event
Skipping installation of
/home/aroldo/tmp-env/lib/python2.7/site-packages/z
ope/__init__.py (namespace package)
Installing
/home/aroldo/tmp-env/lib/python2.7/site-packages/zope.event-3.5.
1-py2.7-nspkg.pth
Running setup.py install for zope.interface
building 'zope.interface._zope_interface_coptimizations' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-pr
ototypes -fPIC -I/usr/include/python2.7 -c
src/zope/interface/_zope_interface_c
optimizations.c -o
build/temp.linux-i686-2.7/src/zope/interface/_zope_interface
_coptimizations.o
gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions
-Wl,-Bsymbolic-functi
ons
build/temp.linux-i686-2.7/src/zope/interface/_zope_interface_coptimizations
.o -o
build/lib.linux-i686-2.7/zope/interface/_zope_interface_coptimizations.so
Skipping installation of
/home/aroldo/tmp-env/lib/python2.7/site-packages/z
ope/__init__.py (namespace package)
Installing
/home/aroldo/tmp-env/lib/python2.7/site-packages/zope.interface-
3.8.0-py2.7-nspkg.pth
Successfully installed zodb3 transaction zc.lockfile ZConfig zdaemon
zope.event
zope.interface
Cleaning up...
Running the ZODB3 tests
-----------------------
.. code-block:: bash
(tmp-env)aroldo at aroldo-laptop:~$ which python
/home/aroldo/tmp-env/bin/python
(tmp-env)aroldo at aroldo-laptop:~$ python
tmp-env/lib/python2.7/site-packages/ZOD
B/tests/testZODB.py
Traceback (most recent call last):
File "tmp-env/lib/python2.7/site-packages/ZODB/tests/testZODB.py",
line 25, i
n <module>
import ZODB.tests.util
File
"/home/aroldo/tmp-env/lib/python2.7/site-packages/ZODB/tests/util.py", l
ine 31, in <module>
import zope.testing.setupstack
ImportError: No module named testing.setupstack
Installing zope.testing
-----------------------
.. code-block:: bash
(tmp-env)aroldo at aroldo-laptop:~$ pip install zope.testing
Downloading/unpacking zope.testing
Downloading zope.testing-4.1.1.tar.gz (50Kb): 50Kb downloaded
Running setup.py egg_info for package zope.testing
warning: no files found matching '*.test' under directory 'src'
warning: no files found matching 'sampletests' under directory 'src'
Requirement already satisfied (use --upgrade to upgrade): setuptools
in ./tmp-e
nv/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg (from
zope.testing)
Downloading/unpacking zope.exceptions (from zope.testing)
Downloading zope.exceptions-3.6.1.zip
Running setup.py egg_info for package zope.exceptions
Requirement already satisfied (use --upgrade to upgrade):
zope.interface in ./t
mp-env/lib/python2.7/site-packages (from zope.testing)
Installing collected packages: zope.testing, zope.exceptions
Running setup.py install for zope.testing
warning: no files found matching '*.test' under directory 'src'
warning: no files found matching 'sampletests' under directory 'src'
Skipping installation of
/home/aroldo/tmp-env/lib/python2.7/site-packages/z
ope/__init__.py (namespace package)
Installing
/home/aroldo/tmp-env/lib/python2.7/site-packages/zope.testing-4.
1.1-py2.7-nspkg.pth
Running setup.py install for zope.exceptions
Skipping installation of
/home/aroldo/tmp-env/lib/python2.7/site-packages/z
ope/__init__.py (namespace package)
Installing
/home/aroldo/tmp-env/lib/python2.7/site-packages/zope.exceptions
-3.6.1-py2.7-nspkg.pth
Successfully installed zope.testing zope.exceptions
Cleaning up...
Running the ZODB3 tests again
-----------------------------
.. code-block:: bash
(tmp-env)aroldo at aroldo-laptop:~$ python
tmp-env/lib/python2.7/site-packages/ZOD
B/tests/testZODB.py
No handlers could be found for logger "txn.-1215990080"
Ran 10 tests in 0.998s
OK
(tmp-env)aroldo at aroldo-laptop:~$
More information about the ZODB-Dev
mailing list