[tahoe-dev] No module named python....

Zooko Wilcox-O'Hearn zooko at zooko.com
Thu Aug 6 15:26:52 UTC 2009


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:

python -c 'import twisted;print twisted;print twisted.__version__'
python -c 'import twisted.python;print twisted.python'

Please send me the output of that as well as the full output from  
"bin/tahoe --version".

Thanks!

--Zooko




More information about the tahoe-dev mailing list