[tahoe-dev] No module named python....
Samps
listman at unplugd.com
Wed Aug 5 22:08:14 PDT 2009
On Thu, 6 Aug 2009 02:18:01 pm Zooko Wilcox-O'Hearn wrote:
> Samps:
>
> Thank you for writing to tell us what you tried. The error message
> saying "No module named python" is actually showing that a package
> named Twisted is incorrectly installed in your system. The error
> message from your earlier post is:
>
> from twisted.python import usage
> ImportError: No module named python
>
> The Tahoe-LAFS install process does attempt to install Twisted if
> Twisted is not already installed, but I can't think of any way in
> which that install process would cause Twisted to be incorrectly
> installed. I wonder if you already had a broken installation of
> Twisted before you started. You can find out where Twisted lives on
> your system with this command-line:
>
> python -c 'import twisted;print twisted;print twisted.__version__'
>
Returns:
<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__'
> You can see whether it is in this half-installed, broken state with
> this command-line:
>
> python -c 'import twisted.python;print twisted.python'
>
returns:
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named python
> Perhaps you should uninstall and reinstall Twisted from the Ubuntu
> packages, with the following command-line:
>
> sudo apt-get install --reinstall python-twisted python-twisted-core
> python-twisted-bin python-twisted-web
Tried that. Didn't make huge difference, so I tried 'apt-get purge' instead,
followed by 'apt-get install'.
Running bin/tahoe --version now reports:
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
thanks again for looking into my probs
Samps
More information about the tahoe-dev
mailing list