RE: [Trac] Python Binding problems with Trac 0.12

2010-09-05 Thread Mikael Relbe
Thanks for your comment, Itamar.

From: trac-users@googlegroups.com [mailto:trac-us...@googlegroups.com] On
Behalf Of Itamar O
Sent: Sunday, September 05, 2010 2:07 PM
To: trac-users@googlegroups.com
Subject: Re: [Trac] Python Binding problems with Trac 0.12




Perhaps you missed a step - in order to allow Apache to locate the DLLs in
Subversion\bin directory,
you must include the full path the the Subversion\bin directory in the
system PATH environment variable (not PythonPath),
and then you need to restart the computer, to allow the Apache service to
see the new PATH.

This works for me without copying the DLLs on the same environment as you
describe.
  

The connection between Apache and Subversion was never a problem, the
problem was that neither Trac nor Python could use the Subversion API, until
I copied DLLs in the Subversion\bin folder into the Python
sites-packages\libsvn folder.
 
I got this idea by examining another installation I have access to, that has
installed bindings from Collabnet (the last one for SVN 1.6.6, now not to be
found anymore).
 
/Mikael
 

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Python Binding problems with Trac 0.12

2010-09-05 Thread Itamar O
On Sun, Sep 5, 2010 at 9:54 AM, Mikael Relbe  wrote:

> Problem solved:
>
> [snip]
>
> What I did -- which is not exactly neat:
>
> I installed the Alagazam distribution of SVN (many big thanks!) together
> with bindings, following the instructions in [1]. After that, I did this:
> the DLLs located in the Subversion\bin folder were copied to the Pythons
> site-packages\libsvn folder.
>
> Okay, so this works but this does not "feel good".
>
> Itamar wrote in an earlier post on this topic that:
>
> > If you use the Alagazam installer to install Subversion itself,
> > the libapr* DLLs are located under the Subversion\bin directory,
> > so there's no need to put duplicates in the Python site-packages.
>
> Which to me indicates that I am missing something here, since I did the
> exact opposite. I would guess my PythonPath environment variable is not set
> up?
>
> Any comments?
>

Perhaps you missed a step - in order to allow Apache to locate the DLLs in
Subversion\bin directory,
you must include the full path the the Subversion\bin directory in the
system PATH environment variable (not PythonPath),
and then you need to restart the computer, to allow the Apache service to
see the new PATH.

This works for me without copying the DLLs on the same environment as you
describe.


>
> /Mikael
>
>  [1] The t.e.o wiki on TracSubversion
>
>

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



RE: [Trac] Python Binding problems with Trac 0.12

2010-09-04 Thread Mikael Relbe
Problem solved:

> -Original Message-
> From: Mikael Relbe [mailto:mik...@relbe.se] 
> Sent: Saturday, September 04, 2010 1:31 PM
> To: 'trac-users@googlegroups.com'
> Subject: RE: [Trac] Python Binding problems with Trac 0.12
> 
> Hi
> 
> I have followed these instructions -- but failed:
> 
> > -Original Message-
> > From: Cooke, Mark
> > /.../
> > ~ mark c
> 
> But on my Win7 32-bit environment, this fails for reasons I 
> don't understand.
> 
> I get the error "DLL load failed:
> /.../
> Mikael Relbe
> 

What I did -- which is not exactly neat:

I installed the Alagazam distribution of SVN (many big thanks!) together
with bindings, following the instructions in [1]. After that, I did this:
the DLLs located in the Subversion\bin folder were copied to the Pythons
site-packages\libsvn folder.

Okay, so this works but this does not "feel good". 

Itamar wrote in an earlier post on this topic that:

> If you use the Alagazam installer to install Subversion itself,
> the libapr* DLLs are located under the Subversion\bin directory,
> so there's no need to put duplicates in the Python site-packages.

Which to me indicates that I am missing something here, since I did the
exact opposite. I would guess my PythonPath environment variable is not set
up?

Any comments?

/Mikael

 [1] The t.e.o wiki on TracSubversion

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



RE: [Trac] Python Binding problems with Trac 0.12

2010-09-04 Thread Mikael Relbe
Hi

I have followed these instructions -- but failed:

> -Original Message-
> From: Cooke, Mark
> Sent: Thursday, August 05, 2010 5:33 PM
> To: trac-users@googlegroups.com
> Subject: RE: [Trac] Python Binding problems with Trac 0.12
> 
> Just to complete this thread with the hope of being useful to 
> someone else, this is what I did to install the latest svn 
> from Algazam onto windoze:
> 
> ~ stopped the apache service
> ~ uninstalled all previous subversion instances (tidying up 
> really) ~ ran the Algazam windows .msi installer ~ copied the 
> latest mod_*.so files from the install location to the
>   apache modules directory (overwriting the old ones) ~ 
> deleted the old svn and libsvn directories from site-packages 
> ~ opened the python bindings .zip and copied the two directories
>   to site-packages
> ~ copied all libsvn\_*.dll files to _*.pyd [1] ~ restarted 
> the server and crossed fingers...
> 
> [1] I found this recommended in the t.e.o wiki at TracSubversion...
> 
> In other words, it was fine to just delete the old files from 
> site_packages and copy the new ones in there, with just a bit 
> of fiddling about!
> 
> ~ mark c

But on my Win7 32-bit environment, this fails for reasons I don't
understand.

I get the error "DLL load failed: The operating system cannot run %1" from
Trac when browsing a repo.

The PythonWin tool gives the same error message when the following line is
stated:

  from svn import fs, repos, core, delta

(This fails for any of the modules).

I'm desperately seeking for help with fixing Python 2.6 bindings for
Subversion 1.6.12 on a Win7 32-bit OS.

Thanks in advance!
Mikael Relbe

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



RE: [Trac] Python Binding problems with Trac 0.12

2010-08-05 Thread Cooke, Mark
> > > > On Sat, Jul 10, 2010 at 2:12 AM, Hugh Jennings
> > > >  wrote:
> > > >
> > > > Hi,
> > > >
> > > > I hope someone can help me.
> > > >
> > > > (snip)
> > > >
> > > > When I go to do anything that is associated with a repository I
> > > > get an error saying no module named svn.
> > > > 
> > > >   (snip)
> > > >
> > > > C:\Users\generic>python
> > > > Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC
> > > > v.1500 32 bit (Intel)] on win32
> > > > Type "help", "copyright", "credits" or "license" for
> > > > more information.
> > > > >>> import svn
> > > > Traceback (most recent call last):
> > > > File "", line 1, in 
> > > > ImportError: No module named svn
> > > > >>>
> > > >
> > > > I would appreciate any ideas as to what I can try next.
> > > >
> > > > Regards,
> > > >
> > > > Hugh
> > > >
> > > -Original Message-
> > > From: trac-users@googlegroups.com
> > > [mailto:trac-us...@googlegroups.com] On Behalf Of Itamar O
> > > Sent: 15 July 2010 09:29
> > > To: trac-users@googlegroups.com
> > > Subject: Re: [Trac] Python Binding problems with Trac 0.12
> > >
> > > Hi,
> > >
> > > You need to install python-svn bindings.
> > > I don't think CollabNet distribute those,
> > > but they are available from another source of Subversion
> > > binaries for windows:
> > > http://alagazam.net/
> > >
> > > Itamar.
> > >
> > 
> >On Thu, Jul 15, 2010 at 12:06 PM, Cooke, Mark 
> > wrote:
> >
> > Hi Itamar,
> > 
> > Those "bindings" are just a load of files in a zip file 
> > and I am not certain what I need to do to "install" them,
> > can you help?
> > 
> > Is it just a case of copying them to  in my 
> > python install tree (e.g. C:\Python26\Lib\site-packages\...)?
> > Or is there more work involved?
> > 
> > Looking at the contents of the zip file, there are fewer files
> > than I already have from a previous install (from tigris when
> > they were packaged in an installer) although the differences seem 
> > to be mostly the compiled python files but also a few DLLs look to
> > be missing (such as libaprutil-1.dll and libapriconv-1.dll) and the
> > ones that are provided have different names...
> > 
> > Thanks,
> > 
> > ~ mark c
> > 
> -Original Message-
> From: trac-users@googlegroups.com On Behalf Of Itamar O
> Sent: 15 July 2010 16:51
> To: trac-users@googlegroups.com
> Subject: Re: [Trac] Python Binding problems with Trac 0.12
> 
> It has been a while since I've done that.
> If I remember correctly, you should simply copy the svn and 
> libsvn directories to the site-packages directory under Python2X\Lib.
> The *.pyc files you might see there are the compiled files. 
> You should remove them if you are updating.
> The README in the Alagazam package also states that for 
> Py2.5+ you should rename the *.dll under libsvn to *.pyd manually.
> If you use the Alagazam installer to install Subversion 
> itself, the libapr* DLLs are located under the Subversion\bin 
> directory,
> so there's no need to put duplicates in the Python site-packages.
> 
> Hope this help,
> Itamar.

Thanks Itamar.

Just to complete this thread with the hope of being useful to someone
else,
this is what I did to install the latest svn from Algazam onto windoze:

~ stopped the apache service
~ uninstalled all previous subversion instances (tidying up really)
~ ran the Algazam windows .msi installer
~ copied the latest mod_*.so files from the install location to the 
  apache modules directory (overwriting the old ones)
~ deleted the old svn and libsvn directories from site-packages
~ opened the python bindings .zip and copied the two directories
  to site-packages
~ copied all libsvn\_*.dll files to _*.pyd [1]
~ restarted the server and crossed fingers...

[1] I found this recommended in the t.e.o wiki at TracSubversion...

In other words, it was fine to just delete the old files from
site_packages
and copy the new ones in there, with just a bit of fiddling about!

~ mark c

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



RE: [Trac] Python Binding problems with Trac 0.12

2010-07-15 Thread Cooke, Mark
> -Original Message-
> From: trac-users@googlegroups.com On Behalf Of Itamar O
> Sent: 15 July 2010 16:51
> To: trac-users@googlegroups.com
> Subject: Re: [Trac] Python Binding problems with Trac 0.12
> 
> > On Thu, Jul 15, 2010 at 12:06 PM, Cooke, Mark 
> >  wrote:
> > 
> > Hi Itamar,
> > 
> > Those "bindings" are just a load of files in a zip file 
> > and I am not certain what I need to do to "install" them,
> > can you help?
> >

> >
>
> It has been a while since I've done that.
> If I remember correctly, you should simply copy the svn and 
> libsvn directories to the site-packages directory under Python2X\Lib.
> The *.pyc files you might see there are the compiled files. 
> You should remove them if you are updating.
> The README in the Alagazam package also states that for 
> Py2.5+ you should rename the *.dll under libsvn to *.pyd manually.
> If you use the Alagazam installer to install Subversion 
> itself, the libapr* DLLs are located under the Subversion\bin 
> directory, so there's no need to put duplicates in the Python
> site-packages.
> 
> Hope this help,
> Itamar.
>
Great!  I will try this over the weekend on another box and report if I
get it all running.  Many thanks!

~ mark c

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Python Binding problems with Trac 0.12

2010-07-15 Thread Itamar O
On Thu, Jul 15, 2010 at 12:06 PM, Cooke, Mark wrote:

>
>
> > On Sat, Jul 10, 2010 at 2:12 AM, Hugh Jennings
> >  wrote:
> >
> >   Hi,
> >
> >   I hope someone can help me.
> >
> >   (snip)
> >
> >   When I go to do anything that is associated with a
> > repository I get an
> >   error saying no module named svn.
> >   (snip)
> >
> >   C:\Users\generic>python
> >   Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC
> > v.1500 32 bit
> >   (Intel)] on
> >   win32
> >   Type "help", "copyright", "credits" or "license" for
> > more information.
> >   >>> import svn
> >   Traceback (most recent call last):
> >File "", line 1, in 
> >   ImportError: No module named svn
> >   >>>
> >
> >   I would appreciate any ideas as to what I can try next.
> >
> >   Regards,
> >
> >   Hugh
> >
> > -Original Message-
> > From: trac-users@googlegroups.com
> > [mailto:trac-us...@googlegroups.com] On Behalf Of Itamar O
> > Sent: 15 July 2010 09:29
> > To: trac-users@googlegroups.com
> > Subject: Re: [Trac] Python Binding problems with Trac 0.12
> >
> > Hi,
> >
> > You need to install python-svn bindings.
> > I don't think CollabNet distribute those,
> > but they are available from another source of Subversion
> > binaries for windows:
> > http://alagazam.net/
> >
> > Itamar.
> >
> Hi Itamar,
>
> Those "bindings" are just a load of files in a zip file and I am not
> certain what I need to do to "install" them, can you help?
>
> Is it just a case of copying them to  in my python install
> tree (e.g. C:\Python26\Lib\site-packages\...)?  Or is there more work
> involved?
>
> Looking at the contents of the zip file, there are fewer files than I
> already have from a previous install (from tigris when they were
> packaged in an installer) although the differences seem to be mostly the
> compiled python files but also a few DLLs look to be missing (such as
> libaprutil-1.dll and libapriconv-1.dll) and the ones that are provided
> have different names...
>
> Thanks,
>
> ~ mark c
>
>
It has been a while since I've done that.
If I remember correctly, you should simply copy the svn and libsvn
directories to the site-packages directory under Python2X\Lib.
The *.pyc files you might see there are the compiled files. You should
remove them if you are updating.
The README in the Alagazam package also states that for Py2.5+ you should
rename the *.dll under libsvn to *.pyd manually.
If you use the Alagazam installer to install Subversion itself, the libapr*
DLLs are located under the Subversion\bin directory,
so there's no need to put duplicates in the Python site-packages.

Hope this help,
Itamar.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



RE: [Trac] Python Binding problems with Trac 0.12

2010-07-15 Thread Cooke, Mark
 

> On Sat, Jul 10, 2010 at 2:12 AM, Hugh Jennings 
>  wrote:
> 
>   Hi,
>   
>   I hope someone can help me.
>   
>   (snip)
>   
>   When I go to do anything that is associated with a 
> repository I get an
>   error saying no module named svn.
>   (snip)
>   
>   C:\Users\generic>python
>   Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC 
> v.1500 32 bit
>   (Intel)] on
>   win32
>   Type "help", "copyright", "credits" or "license" for 
> more information.
>   >>> import svn
>   Traceback (most recent call last):
>File "", line 1, in 
>   ImportError: No module named svn
>   >>>
>   
>   I would appreciate any ideas as to what I can try next.
>   
>   Regards,
>   
>   Hugh
>   
> -Original Message-----
> From: trac-users@googlegroups.com 
> [mailto:trac-us...@googlegroups.com] On Behalf Of Itamar O
> Sent: 15 July 2010 09:29
> To: trac-users@googlegroups.com
> Subject: Re: [Trac] Python Binding problems with Trac 0.12
> 
> Hi,
> 
> You need to install python-svn bindings.
> I don't think CollabNet distribute those,
> but they are available from another source of Subversion 
> binaries for windows:
> http://alagazam.net/
> 
> Itamar.
> 
Hi Itamar,

Those "bindings" are just a load of files in a zip file and I am not
certain what I need to do to "install" them, can you help?

Is it just a case of copying them to  in my python install
tree (e.g. C:\Python26\Lib\site-packages\...)?  Or is there more work
involved?

Looking at the contents of the zip file, there are fewer files than I
already have from a previous install (from tigris when they were
packaged in an installer) although the differences seem to be mostly the
compiled python files but also a few DLLs look to be missing (such as
libaprutil-1.dll and libapriconv-1.dll) and the ones that are provided
have different names...

Thanks,

~ mark c

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.



Re: [Trac] Python Binding problems with Trac 0.12

2010-07-15 Thread Itamar O
On Sat, Jul 10, 2010 at 2:12 AM, Hugh Jennings  wrote:

> Hi,
>
> I hope someone can help me.
>
> (snip)
>
> When I go to do anything that is associated with a repository I get an
> error saying no module named svn.
> (snip)
>
> C:\Users\generic>python
> Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit
> (Intel)] on
> win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import svn
> Traceback (most recent call last):
>  File "", line 1, in 
> ImportError: No module named svn
> >>>
>
> I would appreciate any ideas as to what I can try next.
>
>
> Regards,
>
>
> Hugh
>
>
>
Hi,

You need to install python-svn bindings.
I don't think CollabNet distribute those,
but they are available from another source of Subversion binaries for
windows:
http://alagazam.net/

Itamar.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to trac-us...@googlegroups.com.
To unsubscribe from this group, send email to 
trac-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en.