[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2550: "ImportError: cannot import name flat" when checking import of Nevow 0.11.1

Tahoe-LAFS trac at tahoe-lafs.org
Sat Oct 24 23:14:30 UTC 2015


#2550: "ImportError: cannot import name flat" when checking import of Nevow 0.11.1
-----------------------------------+---------------------------
 Reporter:  daira                  |          Owner:  daira
     Type:  defect                 |         Status:  new
 Priority:  normal                 |      Milestone:  undecided
Component:  packaging              |        Version:  1.10.1
 Keywords:  build nevow packaging  |  Launchpad Bug:
-----------------------------------+---------------------------
 renat wrote on tahoe-dev:
 > Hello. Compiled [successfully]. But can't run:

 {{{
 tahoe at linux:~/allmydata-tahoe-1.10.2/bin> python --version
 Python 2.7.8

 tahoe at linux:~/allmydata-tahoe-1.10.2/bin> ./tahoe
 Traceback (most recent call last):
   File "/home/tahoe/allmydata-tahoe-1.10.2/support/bin/tahoe", line 9, in
 <module>
     load_entry_point('allmydata-tahoe==1.10.2', 'console_scripts',
 'tahoe')()
   File "/home/tahoe/allmydata-tahoe-1.10.2/support/lib/python2.7/site-
 packages/setuptools-0.6c16dev6.egg/pkg_resources.py", line 320, in
 load_entry_point
     return get_distribution(dist).load_entry_point(group, name)
   File "/home/tahoe/allmydata-tahoe-1.10.2/support/lib/python2.7/site-
 packages/setuptools-0.6c16dev6.egg/pkg_resources.py", line 2265, in
 load_entry_point
     return ep.load()
   File "/home/tahoe/allmydata-tahoe-1.10.2/support/lib/python2.7/site-
 packages/setuptools-0.6c16dev6.egg/pkg_resources.py", line 1998, in load
     entry = __import__(self.module_name, globals(),globals(),
 ['__name__'])
   File "/home/tahoe/allmydata-tahoe-1.10.2/src/allmydata/__init__.py",
 line 431, in <module>
     check_all_requirements()
   File "/home/tahoe/allmydata-tahoe-1.10.2/src/allmydata/__init__.py",
 line 429, in check_all_requirements
     raise PackagingError(get_error_string(fatal_errors +
 _cross_check_errors, debug=True))
 allmydata.PackagingError:
 ImportError: for requirement 'Nevow >= 0.11.1': (<type
 'exceptions.ImportError'>, 'cannot import name flat', ('/home/tahoe
 /allmydata-tahoe-1.10.2/support/lib/python2.7/site-
 packages/Nevow-0.11.1-py2.7.egg/nevow/__init__.py', 17, '<module>', 'from
 nevow import flat'))
 Warning: dependency 'nevow' could not be imported. pkg_resources thought
 it should be possible to import version '0.11.1' from '/home/tahoe
 /allmydata-tahoe-1.10.2/support/lib/python2.7/site-
 packages/Nevow-0.11.1-py2.7.egg'.
 The exception trace was (<type 'exceptions.ImportError'>, 'cannot import
 name flat', ('/home/tahoe/allmydata-tahoe-1.10.2/support/lib/python2.7
 /site-packages/Nevow-0.11.1-py2.7.egg/nevow/__init__.py', 17, '<module>',
 'from nevow import flat')).

 For debugging purposes, the PYTHONPATH was
 '/home/tahoe/allmydata-tahoe-1.10.2/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.3, != 3.6.4', 'foolscap >= 0.8.0',
 'pycrypto >= 2.1.0, != 2.2, != 2.4', 'pycryptopp >= 0.6.0', 'service-
 identity', 'characteristic >= 14.0.0', 'pyasn1 >= 0.1.8', 'pyasn1-modules
 >= 0.0.5', 'Twisted >= 13.0.0', 'Nevow >= 0.11.1', 'pyOpenSSL >= 0.13, <=
 0.13.1']
 sys.path after importing pkg_resources was
   /home/tahoe/allmydata-tahoe-1.10.2/support/bin:
 /home/tahoe/allmydata-tahoe-1.10.2/support/lib/python2.7/site-
 packages/setuptools-0.6c16dev6.egg:
   /home/tahoe/allmydata-tahoe-1.10.2/src:
 /home/tahoe/allmydata-tahoe-1.10.2/support/lib/python2.7/site-
 packages/pyOpenSSL-0.13.1-py2.7-linux-x86_64.egg:
 /home/tahoe/allmydata-tahoe-1.10.2/support/lib/python2.7/site-
 packages/Nevow-0.11.1-py2.7.egg:
 /home/tahoe/allmydata-tahoe-1.10.2/support/lib/python2.7/site-
 packages/Twisted-15.4.0-py2.7-linux-x86_64.egg:
 /home/tahoe/allmydata-tahoe-1.10.2/support/lib/python2.7/site-
 packages/pyasn1_modules-0.0.8-py2.7.egg:
 /home/tahoe/allmydata-tahoe-1.10.2/support/lib/python2.7/site-
 packages/pyasn1-0.1.9-py2.7.egg:
 /home/tahoe/allmydata-tahoe-1.10.2/support/lib/python2.7/site-
 packages/characteristic-14.3.0-py2.7.egg:
 /home/tahoe/allmydata-tahoe-1.10.2/support/lib/python2.7/site-
 packages/service_identity-14.0.0-py2.7.egg:
 /home/tahoe/allmydata-tahoe-1.10.2/support/lib/python2.7/site-
 packages/pycryptopp-0.6.0.1206569328141510525648634803928199668821045408958-py2.7
 -linux-x86_64.egg:
 /home/tahoe/allmydata-tahoe-1.10.2/support/lib/python2.7/site-
 packages/pycrypto-2.6.1-py2.7-linux-x86_64.egg:
 /home/tahoe/allmydata-tahoe-1.10.2/support/lib/python2.7/site-
 packages/foolscap-0.9.1-py2.7.egg:
 /home/tahoe/allmydata-tahoe-1.10.2/support/lib/python2.7/site-
 packages/zope.interface-4.1.3-py2.7-linux-x86_64.egg:
 /home/tahoe/allmydata-tahoe-1.10.2/support/lib/python2.7/site-
 packages/simplejson-3.8.0-py2.7-linux-x86_64.egg:
 /home/tahoe/allmydata-tahoe-1.10.2/support/lib/python2.7/site-
 packages/zfec-1.4.24-py2.7-linux-x86_64.egg:
 /home/tahoe/allmydata-tahoe-1.10.2/support/lib/python2.7/site-
 packages/pyutil-2.0.0-py2.7.egg:
 /home/tahoe/allmydata-tahoe-1.10.2/support/lib/python2.7/site-
 packages/zbase32-1.1.5-py2.7.egg:
 /home/tahoe/allmydata-tahoe-1.10.2/support/lib/python2.7/site-packages:
   /usr/lib/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/local/lib64/python2.7/site-packages:
   /usr/local/lib/python2.7/site-packages:
   /usr/lib/python2.7/site-packages
 }}}

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


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