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

Samps listman at unplugd.com
Thu Aug 6 07:09:16 UTC 2009


On Thu, 6 Aug 2009 02:49:12 pm Zooko Wilcox-O'Hearn wrote:
> How about this.  Do the apt-get purge on everything that shows up with:
>
> dpkg --list '*twisted*' | grep ^\.i

That one listed 11 packages with twisted in their name. Purged.

>
> And then while the ubuntu packages for Twisted are not installed, use
> "python -c 'import twisted;print twisted'" to find files and
> directories that are present, and then rm -rf them.

python -c 'import twisted;print twisted' reports:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named twisted

>
> Then reinstall the ubuntu packages, and then see if this says that a
> __version__ and a "module named python" are importable:
>


Re-installing:

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

I don't get it...??

Sorry 'bout that. 

Samps




More information about the tahoe-dev mailing list