#3734 "No module named pysvn" when installing Allura

v1.0.0
closed
General
Cory Johns
2015-08-20
2012-02-12
Anonymous
No

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

Discussion

  • Mark Ramm

    Mark Ramm - 2012-02-12

    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:


    • tickets:3734 "No module named pysvn" when installing Allura*

    Status: open Labels: installation pysvn Created: Sun Feb 12, 2012
    08:53 AM UTC by Luis Cañas Díaz Last Updated: Sun Feb 12, 2012 08:53 AM
    UTC Owner: nobody

    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
    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, args1:)
    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(), ' klzzwxh:0015 ')
    File "/home/luis/src/forge/ForgeSVN/forgesvn/svn_main.py", line 22, in
    from . import model as SM
    File "/home/luis/src/forge/ForgeSVN/forgesvn/model/init.py", line 1, in
    from svn import Repository
    File "/home/luis/src/forge/ForgeSVN/forgesvn/model/svn.py", line 11, in
    import pysvn
    ImportError: No module named pysvn

    /home/luis/src/forge/ForgeSVN/forgesvn/model/svn.py(11)()
    -> 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


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/allura/tickets/3734/

    To unsubscribe from further messages, please visit
    https://sourceforge.net/auth/prefs/

    --
    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.

     
  • Anonymous - 2012-02-12

    Originally by: lcanas

    No, the package was correctly installed. The problems was that it was not visible to the virtualenv.

     
  • Dave Brondsema

    Dave Brondsema - 2012-02-13
    • milestone: limbo --> forge-mar-02
     
  • Dave Brondsema

    Dave Brondsema - 2012-02-13

    I think we just need to update the README to use virtualenv --system-site-packages

     
  • Dave Brondsema

    Dave Brondsema - 2012-02-17
    • size: --> 1
     
  • Jenny Steele

    Jenny Steele - 2012-02-21
    • status: open --> in-progress
    • assigned_to: Jenny Steele
     
  • Jenny Steele

    Jenny Steele - 2012-02-21
    • status: in-progress --> code-review
    • qa: Cory Johns
     
  • Jenny Steele

    Jenny Steele - 2012-02-21

    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.

     
  • Cory Johns

    Cory Johns - 2012-02-23
    • status: code-review --> closed
     
  • Cory Johns

    Cory Johns - 2012-02-23

    Looks good, following steps works. Merged to dev.

     

Log in to post a comment.