Originally created by: lcanas
Following the steps detailed in https://sourceforge.net/p/allura/git/#readme an error about pysvn comes up when turbogears is initialized:
(anvil)luis@allura:~/src/forge/Allura$ paster setup-app development.ini
Running setup_app() from allura.websetup
Entering post-mortem PDB shell
Traceback (most recent call last):
File "/home/luis/anvil/bin/paster", line 8, in <module>
load_entry_point('PasteScript==1.7.4.2', 'console_scripts', 'paster')()
File "/home/luis/anvil/local/lib/python2.7/site-packages/paste/script/command.py", line 104, in run
invoke(command, command_name, options, args[1:])
File "/home/luis/anvil/local/lib/python2.7/site-packages/paste/script/command.py", line 143, in invoke
exit_code = runner.run(args)
File "/home/luis/anvil/local/lib/python2.7/site-packages/paste/script/appinstall.py", line 68, in run
return super(AbstractInstallCommand, self).run(new_args)
File "/home/luis/anvil/local/lib/python2.7/site-packages/paste/script/command.py", line 238, in run
result = self.command()
File "/home/luis/anvil/local/lib/python2.7/site-packages/paste/script/appinstall.py", line 456, in command
self, config_file, section, self.sysconfig_install_vars(installer))
File "/home/luis/anvil/local/lib/python2.7/site-packages/paste/script/appinstall.py", line 598, in setup_config
mod.setup_app, command, filename, section, vars)
File "/home/luis/anvil/local/lib/python2.7/site-packages/paste/script/appinstall.py", line 614, in _call_setup_app
func(command, conf, vars)
File "/home/luis/src/forge/Allura/allura/websetup/init.py", line 17, in setup_app
load_environment(conf.global_conf, conf.local_conf)
File "/home/luis/anvil/local/lib/python2.7/site-packages/tg/configuration.py", line 589, in load_environment
self.setup_helpers_and_globals()
File "/home/luis/anvil/local/lib/python2.7/site-packages/tg/configuration.py", line 273, in setup_helpers_and_globals
config['pylons.app_globals'] = self.package.lib.app_globals.Globals()
File "/home/luis/src/forge/Allura/allura/lib/app_globals.py", line 131, in init
tool=self._cache_eps('allura', dict_cls=utils.CaseInsensitiveDict),
File "/home/luis/src/forge/Allura/allura/lib/app_globals.py", line 159, in _cache_eps
value = ep.load()
File "/home/luis/anvil/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 1954, in load
entry = import(self.module_name, globals(),globals(), ['name'])
File "/home/luis/src/forge/ForgeSVN/forgesvn/svn_main.py", line 22, in <module>
from . import model as SM
File "/home/luis/src/forge/ForgeSVN/forgesvn/model/init.py", line 1, in <module>
from svn import Repository
File "/home/luis/src/forge/ForgeSVN/forgesvn/model/svn.py", line 11, in <module>
import pysvn
ImportError: No module named pysvn
/home/luis/src/forge/ForgeSVN/forgesvn/model/svn.py(11)<module>()
-> import pysvn
(Pdb)
The workaround is:
(anvil)luis@allura:~/anvil$ sudo ln -s /usr/lib/python2.7/dist-packages/pysvn ./lib/python2.7/site-packages/pysvn
Originally by: lcanas
BTW the version of the README file with the error is a51b99 (dev master)
Thanks for the info. The pysvn package should have been installed in this
line:
~$ sudo aptitude install git-core subversion python-svn libtidy-0.99-0
Did you get an error there?
On Sun, Feb 12, 2012 at 3:53 AM, Luis CañasDíaz" lcanas@users.sf.netwrote:
--
Mark Ramm
Director of Engineering,
SourceForge Developer Experience
phone: 734-707-7266
email: mark@geek.net
skype: geekmark
====
This e- mail message is intended only for the named recipient(s) above. It may contain confidential and privileged information. If you are not the intended recipient you are hereby notified that any dissemination, distribution or copying of this e-mail and any attachment(s) is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by replying to this e-mail and delete the message and any attachment(s) from your system. Thank you.
Originally by: lcanas
No, the package was correctly installed. The problems was that it was not visible to the virtualenv.
I think we just need to update the README to use
virtualenv --system-site-packages
On allura js/3734. To test, follow install directions up to the step where you activate your new virtualenv. Start up a python prompt and import pysvn. Make sure there is not an error.
Looks good, following steps works. Merged to dev.