I _highly_ recommend using the Perforce Python library instead of the
one you get from easy_install.

http://www.perforce.com/perforce/loadsupp.html

It's a bit more manual and less automated, but it works better (and
supports all the latest Perforce features :)

You have to download the Perforce C/C++ API and then build the python
interfaces to it, but it's very quick and easy.  I've never had it fail
(and I usually use Ubuntu)

Dana Lacoste

-----Original Message-----
From: reviewboard@googlegroups.com [mailto:reviewbo...@googlegroups.com]
On Behalf Of Thor Simon
Sent: Wednesday, October 20, 2010 4:14 AM
To: reviewboard
Subject: Error (with rather opaque Python diagnostic output) installing
P4 integration

I'm trying to install ReviewBoard on an Ubuntu 10.10 (x86) system.
I've followed the instructions in the administration guide and have
just about everything installed except the Perforce integration.  I've
installed p4 from the 2010.2 release in /usr/local/bin, which is in
$PATH.

I can't figure out from the error python throws exactly what's going
wrong, but I would guess there's a problem retrieving the p4python.tgz
file.  However, since the error messages don't say exactly what it was
trying to download nor from where at the time of failure I can't be
sure.  Error log follows.

Help?


r...@reviewboard:/home/tls# easy_install P4PythonInstaller
install_dir /usr/local/lib/python2.6/dist-packages/
Searching for P4PythonInstaller
Reading http://pypi.python.org/simple/P4PythonInstaller/
Reading http://www.review-board.org/
Best match: P4PythonInstaller 0.2
Downloading
http://reviewboard.googlecode.com/svn/trunk/P4PythonInstaller#egg=P4Pyth
onInstaller-0.2
Doing subversion checkout from
http://reviewboard.googlecode.com/svn/trunk/P4PythonInstaller
to /tmp/easy_install-WLySwR/P4PythonInstaller
Processing P4PythonInstaller
Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-WLySwR/
P4PythonInstaller/egg-dist-tmp-8u50ev
Downloading p4api.tgz...
Downloading p4python.tgz...
Traceback (most recent call last):
  File "/usr/bin/easy_install", line 9, in <module>
    load_entry_point('distribute==0.6.14', 'console_scripts',
'easy_install')()
  File "/usr/lib/python2.6/dist-packages/setuptools/command/
easy_install.py", line 1903, in main
    with_ei_usage(lambda:
  File "/usr/lib/python2.6/dist-packages/setuptools/command/
easy_install.py", line 1884, in with_ei_usage
    return f()
  File "/usr/lib/python2.6/dist-packages/setuptools/command/
easy_install.py", line 1907, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "/usr/lib/python2.6/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.6/distutils/dist.py", line 975, in
run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.6/distutils/dist.py", line 995, in
run_command
    cmd_obj.run()
  File "/usr/lib/python2.6/dist-packages/setuptools/command/
easy_install.py", line 361, in run
    self.easy_install(spec, not self.no_deps)
  File "/usr/lib/python2.6/dist-packages/setuptools/command/
easy_install.py", line 601, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/lib/python2.6/dist-packages/setuptools/command/
easy_install.py", line 631, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/usr/lib/python2.6/dist-packages/setuptools/command/
easy_install.py", line 821, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/usr/lib/python2.6/dist-packages/setuptools/command/
easy_install.py", line 1098, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/usr/lib/python2.6/dist-packages/setuptools/command/
easy_install.py", line 1087, in run_setup
    run_setup(setup_script, args)
  File "/usr/lib/python2.6/dist-packages/setuptools/sandbox.py", line
29, in run_setup
    lambda: execfile(
  File "/usr/lib/python2.6/dist-packages/setuptools/sandbox.py", line
70, in run
    return func()
  File "/usr/lib/python2.6/dist-packages/setuptools/sandbox.py", line
31, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'}
  File "setup.py", line 176, in <module>

  File "setup.py", line 145, in main

  File "setup.py", line 34, in download

  File "/usr/lib/python2.6/ftplib.py", line 570, in quit
    resp = self.voidcmd('QUIT')
  File "/usr/lib/python2.6/ftplib.py", line 248, in voidcmd
    return self.voidresp()
  File "/usr/lib/python2.6/ftplib.py", line 223, in voidresp
    resp = self.getresp()
  File "/usr/lib/python2.6/ftplib.py", line 209, in getresp
    resp = self.getmultiline()
  File "/usr/lib/python2.6/ftplib.py", line 195, in getmultiline
    line = self.getline()
  File "/usr/lib/python2.6/ftplib.py", line 185, in getline
    if not line: raise EOFError
EOFError

-- 
Want to help the Review Board project? Donate today at
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/reviewboard?hl=en

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Reply via email to