Hi Mike,

Looks like it is a version difference. The update-available command isn't
going to do anything other than choose what /usr/bin/python points to.
Apache is still going to run Python 2.7 (probably).

What you'll need to do is install PySVN using Python 2.7. PySVN is,
unfortunately, a bit of a pain to install manually. I'd have thought yum
would have PySVN for Python 2.7, but perhaps not.

You should be able to do:

    $ sudo yum install python-dev
    $ wget http://tigris.org/files/documents/1233/49465/pysvn-1.8.0.tar.gz
    $ tar -xvf pysvn-1.8.0.tar.gz
    $ cd pysvn-1.8.0/Source
    $ python2.7 setup.py configure
    $ make
    $ mkdir /usr/local/lib/python2.7/site-packages/pysvn
    $ cp pysvn/__init__.py
pysvn/_pysvn*.so /usr/local/lib/python2.7/site-packages/pysvn


Yeah, that's pretty bad. We've submitted patches to make this process a
*lot* easier, which should be in the next release, but that doesn't help
you right now.

Let me know if you hit a problem with that, and I'll figure out what went
wrong.

Christian

-- 
Christian Hammond - christ...@beanbaginc.com
Review Board - https://www.reviewboard.org
Beanbag, Inc. - https://www.beanbaginc.com

On Sun, Jan 31, 2016 at 7:10 PM, Mike Baker <mba...@karmaninteractive.com>
wrote:

> Alright, so I deleted and re-installed my Review Board site hoping that
> would fix the preference to use subvertpy. Unfortunately, that didn't work.
>
> I managed to find some old release notes that listed an override to
> control the SVN tools Review Board uses. I used the example in the notes
> but just removed the subvertpy entry so that only PySVN would be used.
> https://www.reviewboard.org/docs/releasenotes/reviewboard/2.0.2/
>
> Now when adding a repo I get an error that Review Board can't find PySVN!
> The Python module "pysvn" is not installed. You may need to restart the
> server after installing it.
>
> I double checked that PySVN is still installed (which I originally
> installed with yum) and it is. Searching around I did notice that there are
> two versions of Python installed 2.6 and 2.7. PySVN seems to be installed
> under Python 2.6. I tried changing the default Python version used by using
> the update-available command but that didn't seem to work. Review Board is
> still saying it can't find PySVN.
>
> Next, I'm going to try to manually install the newest version of PySVN
> from the project home page. Quickly looking through the install
> instructions it seems a little out of my depth but I'll give it a shot next
> weekend.
>
> If any of these issues are familiar to someone let me know. I feel like
> I'm missing something really basic here but maybe these are just quirks of
> the Amazon OS image. If anyone is interested, my setup should be pretty
> easy to replicate. It's just a Free Tier AWS EC2 t2.micro instance based
> of the Amazon Linux AMI 2015.09.1 (HVM) (ami-60b6c60a).
>
>
> On Saturday, January 23, 2016 at 9:00:37 PM UTC-5, Mike Baker wrote:
>
>> Thanks for the quick response and suggestions Christian.
>>
>> One thing I want to point out is that Review Board expects the root of a
>> SVN repository for the path, rather than a subdirectory within. I'm not
>> sure whether the "/reponame" part is its own standalone SVN repository, or
>> a subdirectory within. If the latter, try changing to
>> https://svn.mycompany.com/
>>
>> Understood. /reponame is the name of the repo and reflects the root
>> directory.
>>
>> Now, that said, the HTTP 500 you hit shouldn't have happened, and that
>> "Unable to connect" error seems suspicious, given your other tests.
>>
>> In case you're interested here's the error that traced out in the Review
>> Board logs when that 500 error was thrown. Again, this isn't happening
>> since I manually fetched the cert.
>> Traceback (most recent call last):
>>
>>   File "/usr/local/lib/python2.7/site-packages/Django-1.6.11-
>> py2.7.egg/django/core/handlers/base.py", line 112, in get_response
>>     response = wrapped_callback(request, *callback_args, **
>> callback_kwargs)
>>
>>   File "/usr/local/lib/python2.7/site-packages/Django-1.6.11-
>> py2.7.egg/django/contrib/admin/options.py", line 465, in wrapper
>>     return self.admin_site.admin_view(view)(*args, **kwargs)
>>
>>   File "/usr/local/lib/python2.7/site-packages/Django-1.6.11-
>> py2.7.egg/django/utils/decorators.py", line 99, in _wrapped_view
>>     response = view_func(request, *args, **kwargs)
>>
>>   File "/usr/local/lib/python2.7/site-packages/Django-1.6.11-
>> py2.7.egg/django/views/decorators/cache.py", line 52, in
>> _wrapped_view_func
>>     response = view_func(request, *args, **kwargs)
>>
>>   File "/usr/local/lib/python2.7/site-packages/Django-1.6.11-
>> py2.7.egg/django/contrib/admin/sites.py", line 198, in inner
>>     return view(request, *args, **kwargs)
>>
>>   File "/usr/local/lib/python2.7/site-packages/Django-1.6.11-
>> py2.7.egg/django/utils/decorators.py", line 29, in _wrapper
>>     return bound_func(*args, **kwargs)
>>
>>   File "/usr/local/lib/python2.7/site-packages/Django-1.6.11-
>> py2.7.egg/django/utils/decorators.py", line 99, in _wrapped_view
>>     response = view_func(request, *args, **kwargs)
>>
>>   File "/usr/local/lib/python2.7/site-packages/Django-1.6.11-
>> py2.7.egg/django/utils/decorators.py", line 25, in bound_func
>>     return func(self, *args2, **kwargs2)
>>
>>   File "/usr/local/lib/python2.7/site-packages/Django-1.6.11-
>> py2.7.egg/django/db/transaction.py", line 371, in inner
>>     return func(*args, **kwargs)
>>
>>   File "/usr/local/lib/python2.7/site-packages/Django-1.6.11-
>> py2.7.egg/django/contrib/admin/options.py", line 1244, in change_view
>>     if form.is_valid():
>>
>>   File "/usr/local/lib/python2.7/site-packages/ReviewBoard-2.5.
>> 2-py2.7.egg/reviewboard/scmtools/forms.py", line 1132, in is_valid
>>     if not super(RepositoryForm, self).is_valid():
>>
>>   File "/usr/local/lib/python2.7/site-packages/Django-1.6.11-
>> py2.7.egg/django/forms/forms.py", line 129, in is_valid
>>     return self.is_bound and not bool(self.errors)
>>
>>   File "/usr/local/lib/python2.7/site-packages/Django-1.6.11-
>> py2.7.egg/django/forms/forms.py
>> ...
>
> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://www.reviewboard.org/users/
> ---
> You received this message because you are subscribed to the Google Groups
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to