Problem installing ReviewBoard via easy_install on Ubuntu:

2013-10-17 Thread Alexander Mayr
Hello,

I have the following problem installing reviewboard via easy_install3 
(installed via apt-get install python3-setuptools). is there a problem with 
my setup tools or is there really an invalid syntax inside the settings.py?


the piece of code in the underneath mentioned file is:

# Load local settings.  This can override anything in here, but at the very
# least it needs to define database connectivity.
try:
import settings_local
from settings_local import *
except ImportError, exc:
dependency_error('Unable to import settings_local.py: %s' % exc)


don't speak python, but can't it catch the exception ImportError?

thanks for any help

the output.

root@localhost:~# easy_install3 ReviewBoard
Searching for ReviewBoard
Reading http://pypi.python.org/simple/ReviewBoard/
Reading http://downloads.review-board.org/releases/
Reading http://downloads.review-board.org/releases/ReviewBoard/1.0/
Reading http://downloads.reviewboard.org/nightlies/
Reading http://downloads.reviewboard.org/releases/ReviewBoard/1.5/
Reading http://downloads.reviewboard.org/releases/ReviewBoard/1.6/
Reading http://downloads.reviewboard.org/releases/ReviewBoard/1.7/
Reading http://www.review-board.org/
Best match: ReviewBoard 1.7.16
Downloading 
http://downloads.reviewboard.org/releases/ReviewBoard/1.7/ReviewBoard-1.7.16.tar.gz
Processing ReviewBoard-1.7.16.tar.gz
Running ReviewBoard-1.7.16/setup.py -q bdist_egg --dist-dir 
/tmp/easy_install-z1bun6/ReviewBoard-1.7.16/egg-dist-tmp-fxso95
Traceback (most recent call last):
*  File ./contrib/internal/build-media.py, line 16, in module
import reviewboard.settings
  File 
/tmp/easy_install-z1bun6/ReviewBoard-1.7.16/reviewboard/settings.py, line 
232
except ImportError, exc:
  ^
SyntaxError: invalid syntax*
Traceback (most recent call last):
  File /usr/bin/easy_install3, line 9, in module
load_entry_point('distribute==0.6.24dev-r0', 'console_scripts', 
'easy_install')()
  File /usr/lib/python3/dist-packages/setuptools/command/easy_install.py, 
line 1931, in main
with_ei_usage(lambda:
  File /usr/lib/python3/dist-packages/setuptools/command/easy_install.py, 
line 1912, in with_ei_usage
return f()
  File /usr/lib/python3/dist-packages/setuptools/command/easy_install.py, 
line 1935, in lambda
distclass=DistributionWithoutHelpCommands, **kw
  File /usr/lib/python3.2/distutils/core.py, line 148, in setup
dist.run_commands()
  File /usr/lib/python3.2/distutils/dist.py, line 917, in run_commands
self.run_command(cmd)
  File /usr/lib/python3.2/distutils/dist.py, line 936, in run_command
cmd_obj.run()
  File /usr/lib/python3/dist-packages/setuptools/command/easy_install.py, 
line 368, in run
self.easy_install(spec, not self.no_deps)
  File /usr/lib/python3/dist-packages/setuptools/command/easy_install.py, 
line 608, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
  File /usr/lib/python3/dist-packages/setuptools/command/easy_install.py, 
line 638, in install_item
dists = self.install_eggs(spec, download, tmpdir)
  File /usr/lib/python3/dist-packages/setuptools/command/easy_install.py, 
line 828, in install_eggs
return self.build_and_install(setup_script, setup_base)
  File /usr/lib/python3/dist-packages/setuptools/command/easy_install.py, 
line 1105, in build_and_install
self.run_setup(setup_script, setup_base, args)
  File /usr/lib/python3/dist-packages/setuptools/command/easy_install.py, 
line 1094, in run_setup
run_setup(setup_script, args)
  File /usr/lib/python3/dist-packages/setuptools/sandbox.py, line 31, in 
run_setup
lambda: exec(compile(open(
  File /usr/lib/python3/dist-packages/setuptools/sandbox.py, line 73, in 
run
return func()
  File /usr/lib/python3/dist-packages/setuptools/sandbox.py, line 34, in 
lambda
{'__file__':setup_script, '__name__':'__main__'})
  File setup.py, line 202, in module
  File /usr/lib/python3.2/distutils/core.py, line 148, in setup
dist.run_commands()
  File /usr/lib/python3.2/distutils/dist.py, line 917, in run_commands
self.run_command(cmd)
  File /usr/lib/python3.2/distutils/dist.py, line 936, in run_command
cmd_obj.run()
  File /usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py, 
line 172, in run
self.run_command(egg_info)
  File /usr/lib/python3.2/distutils/cmd.py, line 313, in run_command
self.distribution.run_command(command)
  File /usr/lib/python3.2/distutils/dist.py, line 936, in run_command
cmd_obj.run()
  File setup.py, line 79, in run
  File /usr/lib/python3.2/distutils/cmd.py, line 313, in run_command
self.distribution.run_command(command)
  File /usr/lib/python3.2/distutils/dist.py, line 936, in run_command
cmd_obj.run()
  File setup.py, line 98, in run
RuntimeError: Failed to build media files

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us 

Re: Problem installing ReviewBoard via easy_install on Ubuntu:

2013-10-17 Thread David Trowbridge
Review Board does not support Python 3. You'll need to use Python 2.x

-David

On Thu, Oct 17, 2013 at 12:21 PM, Alexander Mayr
alexander.may...@gmail.com wrote:

 Hello,
 I have the following problem installing reviewboard via easy_install3 
 (installed via apt-get install python3-setuptools). is there a problem with 
 my setup tools or is there really an invalid syntax inside the settings.py?
 the piece of code in the underneath mentioned file is:
 # Load local settings.  This can override anything in here, but at the very
 # least it needs to define database connectivity.
 try:
 import settings_local
 from settings_local import *
 except ImportError, exc:
 dependency_error('Unable to import settings_local.py: %s' % exc)
 don't speak python, but can't it catch the exception ImportError?
 thanks for any help
 the output.
 root@localhost:~# easy_install3 ReviewBoard
 Searching for ReviewBoard
 Reading http://pypi.python.org/simple/ReviewBoard/
 Reading http://downloads.review-board.org/releases/
 Reading http://downloads.review-board.org/releases/ReviewBoard/1.0/
 Reading http://downloads.reviewboard.org/nightlies/
 Reading http://downloads.reviewboard.org/releases/ReviewBoard/1.5/
 Reading http://downloads.reviewboard.org/releases/ReviewBoard/1.6/
 Reading http://downloads.reviewboard.org/releases/ReviewBoard/1.7/
 Reading http://www.review-board.org/
 Best match: ReviewBoard 1.7.16
 Downloading 
 http://downloads.reviewboard.org/releases/ReviewBoard/1.7/ReviewBoard-1.7.16.tar.gz
 Processing ReviewBoard-1.7.16.tar.gz
 Running ReviewBoard-1.7.16/setup.py -q bdist_egg --dist-dir 
 /tmp/easy_install-z1bun6/ReviewBoard-1.7.16/egg-dist-tmp-fxso95
 Traceback (most recent call last):
 *  File ./contrib/internal/build-media.py, line 16, in module
 import reviewboard.settings
   File 
 /tmp/easy_install-z1bun6/ReviewBoard-1.7.16/reviewboard/settings.py, line 
 232
 except ImportError, exc:
   ^
 SyntaxError: invalid syntax*
 Traceback (most recent call last):
   File /usr/bin/easy_install3, line 9, in module
 load_entry_point('distribute==0.6.24dev-r0', 'console_scripts', 
 'easy_install')()
   File /usr/lib/python3/dist-packages/setuptools/command/easy_install.py, 
 line 1931, in main
 with_ei_usage(lambda:
   File /usr/lib/python3/dist-packages/setuptools/command/easy_install.py, 
 line 1912, in with_ei_usage
 return f()
   File /usr/lib/python3/dist-packages/setuptools/command/easy_install.py, 
 line 1935, in lambda
 distclass=DistributionWithoutHelpCommands, **kw
   File /usr/lib/python3.2/distutils/core.py, line 148, in setup
 dist.run_commands()
   File /usr/lib/python3.2/distutils/dist.py, line 917, in run_commands
 self.run_command(cmd)
   File /usr/lib/python3.2/distutils/dist.py, line 936, in run_command
 cmd_obj.run()
   File /usr/lib/python3/dist-packages/setuptools/command/easy_install.py, 
 line 368, in run
 self.easy_install(spec, not self.no_deps)
   File /usr/lib/python3/dist-packages/setuptools/command/easy_install.py, 
 line 608, in easy_install
 return self.install_item(spec, dist.location, tmpdir, deps)
   File /usr/lib/python3/dist-packages/setuptools/command/easy_install.py, 
 line 638, in install_item
 dists = self.install_eggs(spec, download, tmpdir)
   File /usr/lib/python3/dist-packages/setuptools/command/easy_install.py, 
 line 828, in install_eggs
 return self.build_and_install(setup_script, setup_base)
   File /usr/lib/python3/dist-packages/setuptools/command/easy_install.py, 
 line 1105, in build_and_install
 self.run_setup(setup_script, setup_base, args)
   File /usr/lib/python3/dist-packages/setuptools/command/easy_install.py, 
 line 1094, in run_setup
 run_setup(setup_script, args)
   File /usr/lib/python3/dist-packages/setuptools/sandbox.py, line 31, in 
 run_setup
 lambda: exec(compile(open(
   File /usr/lib/python3/dist-packages/setuptools/sandbox.py, line 73, in 
 run
 return func()
   File /usr/lib/python3/dist-packages/setuptools/sandbox.py, line 34, in 
 lambda
 {'__file__':setup_script, '__name__':'__main__'})
   File setup.py, line 202, in module
   File /usr/lib/python3.2/distutils/core.py, line 148, in setup
 dist.run_commands()
   File /usr/lib/python3.2/distutils/dist.py, line 917, in run_commands
 self.run_command(cmd)
   File /usr/lib/python3.2/distutils/dist.py, line 936, in run_command
 cmd_obj.run()
   File /usr/lib/python3/dist-packages/setuptools/command/bdist_egg.py, 
 line 172, in run
 self.run_command(egg_info)
   File /usr/lib/python3.2/distutils/cmd.py, line 313, in run_command
 self.distribution.run_command(command)
   File /usr/lib/python3.2/distutils/dist.py, line 936, in run_command
 cmd_obj.run()
   File setup.py, line 79, in run
   File /usr/lib/python3.2/distutils/cmd.py, line 313, in run_command
 self.distribution.run_command(command)
   File /usr/lib/python3.2/distutils/dist.py, line 936, in run_command