[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2436: "tahoe --version" shouldn't show scary diagnostic warnings

Tahoe-LAFS trac at tahoe-lafs.org
Wed May 27 21:14:18 UTC 2015


#2436: "tahoe --version" shouldn't show scary diagnostic warnings
--------------------+------------------------
 Reporter:  warner  |          Owner:
     Type:  defect  |         Status:  new
 Priority:  normal  |      Milestone:  1.10.1
Component:  code    |        Version:  1.10.0
 Keywords:          |  Launchpad Bug:
--------------------+------------------------
 It is very common for `tahoe --version` to report diagnostics warnings
 about the difference between what `pkg_resources` claims to provide, and
 what the actual imported modules (and their `__version__`) reports. These
 warnings have convinced several users that their tahoe installation has
 failed, when in fact everything will would work normally apart from those
 warnings.

 Zooko and I agreed on IRC to change `tahoe --version` to report the
 versions of Tahoe itself and its dependencies (foolscap, pycryptopp, etc),
 but to remove the import-vs-pkg_resources warnings. We'll add a separate
 `tahoe debug versions` command that emits complete diagnostics.

 For reference, this is what the problematic output looks like:

 {{{
 % bin/tahoe -V
 allmydata-tahoe: 1.10.0
 foolscap: 0.8.0
 pycryptopp: 0.6.0.1206569328141510525648634803928199668821045408958
 zfec: 1.4.24
 Twisted: 13.0.0
 Nevow: 0.11.1
 zope.interface: unknown
 python: 2.7.9
 platform: Linux-fedora_22-x86_64-64bit_ELF
 pyOpenSSL: 0.14
 simplejson: 3.7.2
 pycrypto: 2.6.1
 pyasn1: 0.1.7
 mock: 1.0.1
 setuptools: 0.6c16dev4

 Warning: dependency 'pycparser' (version '2.10') found by pkg_resources
 not found by import.
 Warning: dependency 'six' (version '1.9.0') found by pkg_resources not
 found by import.
 Warning: dependency 'cryptography' (version '0.8.2') found by
 pkg_resources not found by import.
 Warning: dependency 'cffi' (version '0.8.6') found by pkg_resources not
 found by import.
 Warning: dependency 'pyasn1-modules' (version '0.0.5') found by
 pkg_resources not found by import.
 Warning: dependency 'enum34' (version '1.0') found by pkg_resources not
 found by import.
 Warning: dependency 'characteristic' (version '14.3.0') found by
 pkg_resources not found by import.
 Warning: dependency 'service-identity' (version '14.0.0') found by
 pkg_resources not found by import.

 For debugging purposes, the PYTHONPATH was
   '/home/olabini/workspace/SPEAR/tahoe/allmydata-
 tahoe-1.10.0/support/lib/python2.7/site-packages'
 install_requires was
   ['setuptools >= 0.6c6', 'zfec >= 1.1.0', 'simplejson >= 1.4',
 'zope.interface == 3.6.0, == 3.6.1, == 3.6.2, >= 3.6.5', 'Twisted >=
 11.0.0', 'foolscap >= 0.6.3', 'pyOpenSSL', 'Nevow >= 0.6.0', 'pycrypto ==
 2.1.0, == 2.3, >= 2.4.1', 'pyasn1 >= 0.0.8a', 'mock >= 0.8.0', 'pycryptopp
 >= 0.6.0']
 sys.path after importing pkg_resources was
   /home/olabini/workspace/SPEAR/tahoe/allmydata-tahoe-1.10.0/support/bin:
   /home/olabini/workspace/SPEAR/tahoe/allmydata-
 tahoe-1.10.0/support/lib/python2.7/site-
 packages/setuptools-0.6c16dev4.egg:
   /home/olabini/workspace/SPEAR/tahoe/allmydata-tahoe-1.10.0/src:
   /home/olabini/workspace/SPEAR/tahoe/allmydata-
 tahoe-1.10.0/support/lib/python2.7/site-
 packages/pycryptopp-0.6.0.1206569328141510525648634803928199668821045408958-py2.7
 -linux-x86_64.egg:
   /home/olabini/workspace/SPEAR/tahoe/allmydata-
 tahoe-1.10.0/support/lib/python2.7/site-packages/mock-1.0.1-py2.7.egg:
   /home/olabini/workspace/SPEAR/tahoe/allmydata-
 tahoe-1.10.0/support/lib/python2.7/site-packages/Nevow-0.11.1-py2.7.egg:
   /home/olabini/workspace/SPEAR/tahoe/allmydata-
 tahoe-1.10.0/support/lib/python2.7/site-packages/foolscap-0.8.0-py2.7.egg:
   /home/olabini/workspace/SPEAR/tahoe/allmydata-
 tahoe-1.10.0/support/lib/python2.7/site-packages/zfec-1.4.24-py2.7-linux-
 x86_64.egg:
   /home/olabini/workspace/SPEAR/tahoe/allmydata-
 tahoe-1.10.0/support/lib/python2.7/site-
 packages/service_identity-14.0.0-py2.7.egg:
   /home/olabini/workspace/SPEAR/tahoe/allmydata-
 tahoe-1.10.0/support/lib/python2.7/site-packages/pyutil-2.0.0-py2.7.egg:
   /home/olabini/workspace/SPEAR/tahoe/allmydata-
 tahoe-1.10.0/support/lib/python2.7/site-
 packages/pyasn1_modules-0.0.5-py2.7.egg:
   /home/olabini/workspace/SPEAR/tahoe/allmydata-
 tahoe-1.10.0/support/lib/python2.7/site-
 packages/characteristic-14.3.0-py2.7.egg:
   /home/olabini/workspace/SPEAR/tahoe/allmydata-
 tahoe-1.10.0/support/lib/python2.7/site-packages/zbase32-1.1.5-py2.7.egg:
   /home/olabini/workspace/SPEAR/tahoe/allmydata-
 tahoe-1.10.0/support/lib/python2.7/site-packages/Twisted-13.0.0-py2.7
 -linux-x86_64.egg:
   /home/olabini/workspace/SPEAR/tahoe/allmydata-
 tahoe-1.10.0/support/lib/python2.7/site-
 packages/zope.interface-4.1.2-py2.7-linux-x86_64.egg:
   /home/olabini/workspace/SPEAR/tahoe/allmydata-
 tahoe-1.10.0/support/lib/python2.7/site-packages:
   /usr/lib64/python27.zip:
   /usr/lib64/python2.7:
   /usr/lib64/python2.7/plat-linux2:
   /usr/lib64/python2.7/lib-tk:
   /usr/lib64/python2.7/lib-old:
   /usr/lib64/python2.7/lib-dynload:
   /usr/lib64/python2.7/site-packages:
   /usr/lib64/python2.7/site-packages/gst-0.10:
   /usr/lib64/python2.7/site-packages/gtk-2.0:
   /usr/lib/python2.7/site-packages
 }}}

 The output is large enough that, depending upon the size of your screen,
 you may wind up with the scary "Warning:... not found by import" lines at
 the top of the screen, which sounds an awful lot like an !ImportError.

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2436>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list