[tahoe-dev] [tahoe-lafs] #745: Debian package: Missing dependency on Debian/etch

tahoe-lafs trac at allmydata.org
Thu Jul 2 13:45:28 PDT 2009


#745: Debian package: Missing dependency on Debian/etch
------------------------------+---------------------------------------------
 Reporter:  [4-tea-2]         |           Owner:  [4-tea-2]
     Type:  defect            |          Status:  new      
 Priority:  major             |       Milestone:  1.5.0    
Component:  packaging         |         Version:  1.4.1    
 Keywords:  debian,packaging  |   Launchpad_bug:           
------------------------------+---------------------------------------------

Comment(by zooko):

 Oh, when I wrote comment:7, I was thinking that Python >= 2.6 comes with
 sqlite, but it is actually Python >= 2.5.  [4-tea-2], would you please run
 the following and post the results?

 {{{
 PYTHONPATH=./support/lib/python2.5/site-packages/:$PYTHONPATH python -c
 'import pkg_resources;print pkg_resources.require("allmydata-tahoe")'
 }}}

 ?  For example, here are the results on my machine:

 {{{
 $ PYTHONPATH=./support/lib/python2.4/site-packages/:$PYTHONPATH python -c
 'import pkg_resources;print pkg_resources.require("allmydata-tahoe")'
 [allmydata-tahoe 1.4.1-r3914
 (/home/zooko/playground/allmydata/tahoe/trunk/src), pysqlite 2.5.5
 (/home/zooko/playground/allmydata/tahoe/trunk/support/lib/python2.4/site-
 packages/pysqlite-2.5.5-py2.4-solaris-2.11-i86pc.egg), Nevow 0.9.32
 (/home/zooko/playground/allmydata/tahoe/trunk/support/lib/python2.4/site-
 packages/Nevow-0.9.32-py2.4.egg), foolscap 0.4.1 (/usr/lib/python2.4/site-
 packages/foolscap-0.4.1-py2.4.egg), Twisted 8.2.0 (/usr/lib/python2.4
 /site-packages/Twisted-8.2.0-py2.4-solaris-2.11-i86pc.egg), zope.interface
 3.5.1 (/usr/lib/python2.4/site-
 packages/zope.interface-3.5.1-py2.4-solaris-2.11-i86pc.egg), simplejson
 2.0.7 (/home/zooko/playground/allmydata/tahoe/trunk/support/lib/python2.4
 /site-packages/simplejson-2.0.7-py2.4-solaris-2.11-i86pc.egg), zfec 1.4.4
 (/home/zooko/playground/allmydata/tahoe/trunk/support/lib/python2.4/site-
 packages/zfec-1.4.4-py2.4-solaris-2.11-i86pc.egg), pycryptopp 0.5.4
 (/usr/lib/python2.4/site-
 packages/pycryptopp-0.5.4-py2.4-solaris-2.11-i86pc.egg), setuptools
 0.6c12dev
 (/home/zooko/playground/allmydata/tahoe/trunk/support/lib/python2.4/site-
 packages/setuptools-0.6c12dev.egg), pyOpenSSL 0.8
 (/home/zooko/playground/allmydata/tahoe/trunk/support/lib/python2.4/site-
 packages/pyOpenSSL-0.8-py2.4-solaris-2.11-i86pc.egg), setuptools 0.6c12dev
 (/home/zooko/playground/allmydata/tahoe/trunk/support/lib/python2.4/site-
 packages/setuptools-0.6c12dev.egg), pyutil 1.3.26 (/usr/lib/python2.4
 /site-packages/pyutil-1.3.26-py2.4.egg), argparse 0.8.0
 (/usr/lib/python2.4/site-packages/argparse-0.8.0-py2.4.egg), setuptools
 0.6c12dev
 (/home/zooko/playground/allmydata/tahoe/trunk/support/lib/python2.4/site-
 packages/setuptools-0.6c12dev.egg), zbase32 1.1.0 (/usr/lib/python2.4
 /site-packages/zbase32-1.1.0-py2.4.egg)]
 }}}

 Then, please look at the {{{_auto_deps.py}}} file which is in the
 {{{allmydata-tahoe}}} package.  For example, on my machine it is:

 {{{
 $ grep -A1 -B1 -i sqlite
 /home/zooko/playground/allmydata/tahoe/trunk/src/allmydata/_auto_deps.py

 # Sqlite comes built into Python >= 2.5, and is provided by the "pysqlite"
 # distribution for Python 2.4.
 --
 if sys.version_info < (2, 5):
     # pysqlite v2.0.5 was shipped in Ubuntu 6.06 LTS "dapper" and Nexenta
 NCP 1.
     install_requires.append("pysqlite >= 2.0.5")
 }}}

 The {{{_auto_deps.py}}} ought to be the same as the current trunk version:
 [source:_auto_deps.py].

 Finally, please look at the {{{requires.txt}}} file in the {{{.egg-
 info}}}, like this:

 {{{
 $ grep -i sqlite
 /home/zooko/playground/allmydata/tahoe/trunk/src/allmydata_tahoe.egg-
 info/requires.txt
 pysqlite >= 2.0.5
 }}}

 This shows that on my machine {{{pysqlite}}} appears in the
 {{{requires.txt}}}, because the .egg-info was built using Python 2.4.  If
 you built with Python 2.5 then {{{pysqlite}}} should not appear in your
 {{{.egg-info}}}.  You could try rm'rf the whole {{{allmydata_tahoe.egg-
 info}}} directory and rebuilding.

 Thanks!

-- 
Ticket URL: <http://allmydata.org/trac/tahoe/ticket/745#comment:9>
tahoe-lafs <http://allmydata.org>
secure decentralized file storage grid


More information about the tahoe-dev mailing list