If mailman.client is loaded as a separate module (as instructed), then mailman cannot exist in the same environment because there are two "mailman" modules to search.
I found this when I tried to generate sphinx documentation for mailman after I had installed protorious.
To reproduce:
mkvirtualenv BUG
bzr branch lp:mailman.client
cd mailman.client/
python setup.py develop
easy_install sphinx
cd ..
bzr branch lp:mailman
cd mailman
python bootstrap.py
bin/buildout
python setup.py build_sphinx
Results in:
Running Sphinx v1.1.3
Traceback (most recent call last):
File "setup.py", line 112, in <module>
'zope.testing<4',
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 152, in setup
dist.run_commands()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/Volumes/UserSpace/rkw/.virtualenvs/BUG/lib/python2.7/site-packages/Sphinx-1.1.3-py2.7.egg/sphinx/setup_command.py", line 140, in run
freshenv=self.fresh_env)
File "/Volumes/UserSpace/rkw/.virtualenvs/BUG/lib/python2.7/site-packages/Sphinx-1.1.3-py2.7.egg/sphinx/application.py", line 102, in __init__
confoverrides or {}, self.tags)
File "/Volumes/UserSpace/rkw/.virtualenvs/BUG/lib/python2.7/site-packages/Sphinx-1.1.3-py2.7.egg/sphinx/config.py", line 216, in __init__
exec code in config
File "/Volumes/UserSpace/rkw/.virtualenvs/BUG/mailman/conf.py", line 54, in <module>
from mailman.version import VERSION
ImportError: No module named version
If mailman.client is loaded as a separate module (as instructed), then mailman cannot exist in the same environment because there are two "mailman" modules to search.
I found this when I tried to generate sphinx documentation for mailman after I had installed protorious.
To reproduce:
mkvirtualenv BUG
bzr branch lp:mailman.client
cd mailman.client/
python setup.py develop
easy_install sphinx
cd ..
bzr branch lp:mailman
cd mailman
python bootstrap.py
bin/buildout
python setup.py build_sphinx
Results in:
Running Sphinx v1.1.3 testing< 4', Library/ Frameworks/ Python. framework/ Versions/ 2.7/lib/ python2. 7/distutils/ core.py" , line 152, in setup run_commands( ) Library/ Frameworks/ Python. framework/ Versions/ 2.7/lib/ python2. 7/distutils/ dist.py" , line 953, in run_commands run_command( cmd) Library/ Frameworks/ Python. framework/ Versions/ 2.7/lib/ python2. 7/distutils/ dist.py" , line 972, in run_command UserSpace/ rkw/.virtualenv s/BUG/lib/ python2. 7/site- packages/ Sphinx- 1.1.3-py2. 7.egg/sphinx/ setup_command. py", line 140, in run self.fresh_ env) UserSpace/ rkw/.virtualenv s/BUG/lib/ python2. 7/site- packages/ Sphinx- 1.1.3-py2. 7.egg/sphinx/ application. py", line 102, in __init__ UserSpace/ rkw/.virtualenv s/BUG/lib/ python2. 7/site- packages/ Sphinx- 1.1.3-py2. 7.egg/sphinx/ config. py", line 216, in __init__ UserSpace/ rkw/.virtualenv s/BUG/mailman/ conf.py" , line 54, in <module>
Traceback (most recent call last):
File "setup.py", line 112, in <module>
'zope.
File "/System/
dist.
File "/System/
self.
File "/System/
cmd_obj.run()
File "/Volumes/
freshenv=
File "/Volumes/
confoverrides or {}, self.tags)
File "/Volumes/
exec code in config
File "/Volumes/
from mailman.version import VERSION
ImportError: No module named version