[tahoe-dev] No module named python....
Samps
listman at unplugd.com
Tue Aug 11 03:34:08 PDT 2009
On Fri, 7 Aug 2009 12:56:52 am Zooko Wilcox-O'Hearn wrote:
> Oh, I have an idea. Let's factor out Tahoe-LAFS and just figure out
> if Twisted and/or Nevow are installed correctly on your system, quite
> apart from Tahoe-LAFS. Just run the following test when you are in
> the "reinstalled Twisted" state, as described below:
>
> On Thursday,2009-08-06, at 1:09 , Samps wrote:
> > sudo apt-get install python-twisted-*
> >
> > 20 packages to install.
> >
> >> python -c 'import twisted;print twisted;print twisted.__version__'
> >
> > <module 'twisted'
> > from '/usr/lib/python2.5/site-packages/twisted/__init__.pyc'> 2.5.0
> >
> >> python -c 'import twisted.python;print twisted.python'
> >
> > <module 'twisted.python'
> > from '/usr/lib/python2.5/site-packages/twisted/python/__init__.pyc'>
> >
> > bin/tahoe --version
> > returns:
> > Traceback (most recent call last):
> > File "/home/samps/Desktop/allmydata-tahoe-1.5.0/support/bin/
> > tahoe", line 5,
> > in <module>
> > from pkg_resources import load_entry_point
> >
> > File "/usr/lib/python2.5/site-packages/setuptools-0.6c12dev.egg/
> > pkg_resources.py",
> > line 2480, in <module>
> > working_set.require(__requires__)
> >
> > File "/usr/lib/python2.5/site-packages/setuptools-0.6c12dev.egg/
> > pkg_resources.py",
> > line 626, in require
> > needed = self.resolve(parse_requirements(requirements))
> >
> > File "/usr/lib/python2.5/site-packages/setuptools-0.6c12dev.egg/
> > pkg_resources.py",
> > line 524, in resolve
> > raise DistributionNotFound(req) # XXX put more info here
> > pkg_resources.DistributionNotFound: Nevow>=0.6.0
> >
> >
> > oops... sudo apt-get install python-nevow
> >
> >
> > bin/tahoe --version now reports:
> >
> > ImportError: No module named python
>
> Okay, now try again the two commands that you tried just before you
> did sudo apt-get install python-nevow:
>
Okay, here goes:
> python -c 'import twisted;print twisted;print twisted.__version__'
samps at pico:~/Desktop/allmydata-tahoe-1.5.0$ python -c 'import twisted;print
twisted;print twisted.__version__'
<module 'twisted'
from '/var/lib/python-support/python2.5/twisted/__init__.pyc'>
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: 'module' object has no attribute '__version__'
> python -c 'import twisted.python;print twisted.python'
samps at pico:~/Desktop/allmydata-tahoe-1.5.0$ python -c 'import
twisted.python;print twisted.python'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named python
>
> Please send me the output of that as well as the full output from
> "bin/tahoe --version".
samps at pico:~/Desktop/allmydata-tahoe-1.5.0$ bin/tahoe --version
Traceback (most recent call last):
File "/home/samps/Desktop/allmydata-tahoe-1.5.0/support/bin/tahoe", line 8,
in <module>
load_entry_point('allmydata-tahoe==1.5.0', 'console_scripts', 'tahoe')()
File "/usr/lib/python2.5/site-packages/setuptools-0.6c12dev.egg/pkg_resources.py",
line 277, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.5/site-packages/setuptools-0.6c12dev.egg/pkg_resources.py",
line 2098, in load_entry_point
return ep.load()
File "/usr/lib/python2.5/site-packages/setuptools-0.6c12dev.egg/pkg_resources.py",
line 1831, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/home/samps/Desktop/allmydata-tahoe-1.5.0/src/allmydata/scripts/runner.py",
line 7, in <module>
from twisted.python import usage
ImportError: No module named python
More information about the tahoe-dev
mailing list