473,395 Members | 1,554 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

mod_python and pysvn

Hello all,

I have a script that uses pySVN. It gets the latest build information.
I want to create a call to that function in a PSP file but everytime I
try I get an error message:

ClientError: Unable to open an ra_local session to URL
Unable to open repository 'file:///P:/tools/builds/repository'

does anyone know how I can fix this?

thanks in advance!
Sjoerd

Sep 11 '07 #1
5 2269
Sjoerd wrote:
Hello all,

I have a script that uses pySVN. It gets the latest build information.
I want to create a call to that function in a PSP file but everytime I
try I get an error message:

ClientError: Unable to open an ra_local session to URL
Unable to open repository 'file:///P:/tools/builds/repository'

does anyone know how I can fix this?
Usually means that the process which Apache is running under
(may well be LocalSystem) doesn't know about or doesn't have
access to p:/tools etc. Assuming that P: is a network drive,
try using its UNC (\\server\share\tools etc.) but even there
I suspect you may have security issues. One way or the other,
you would need to give the Apache service enough security
access to that share/directory for it to do its job.

TJG
Sep 11 '07 #2
Tim Golden wrote:
Sjoerd wrote:
>ClientError: Unable to open an ra_local session to URL
Unable to open repository 'file:///P:/tools/builds/repository'

does anyone know how I can fix this?

Usually means that the process which Apache is running under
(may well be LocalSystem) doesn't know about or doesn't have
access to p:/tools etc.
Isn't this an SVN client error? Seems to me that the repository URL
is invalid.

Tim, try accessing the repository using svn list from the command
line.

Regards,
Björn

--
BOFH excuse #350:

paradigm shift...without a clutch

Sep 11 '07 #3
On Sep 11, 7:41 pm, Bjoern Schliessmann <usenet-
mail-0306.20.chr0n...@spamgourmet.comwrote:
Tim Golden wrote:
Sjoerd wrote:
ClientError: Unable to open an ra_local session to URL
Unable to open repository 'file:///P:/tools/builds/repository'
does anyone know how I can fix this?
Usually means that the process which Apache is running under
(may well be LocalSystem) doesn't know about or doesn't have
access to p:/tools etc.

Isn't this an SVN client error? Seems to me that the repository URL
is invalid.

Tim, try accessing the repository using svn list from the command
line.

Regards,

Björn

--
BOFH excuse #350:

paradigm shift...without a clutch
Thank you both for your replies!
I suspect that if I import the script that the script becomes local
for apache
Who tries to form the path.
The actual command:

client = Client()
repLog = client.log("\\P:\\tools\builds\publish\\")
I used an UNC path. The forming of the repository path must be inside
the pysvn
library.

When I run the script via the command console it returns the right
values.
So I think what Tim replies is quite acurate!
I'm going to try that tomorrow!

Cheers!
Sjoerd

Sep 11 '07 #4
En Tue, 11 Sep 2007 15:35:00 -0300, Sjoerd <s.*******@gmail.comescribi�:
The actual command:

client = Client()
repLog = client.log("\\P:\\tools\builds\publish\\")
I used an UNC path. The forming of the repository path must be inside
the pysvn
library.
If that's really actual code, looks wrong. You should double all your
backslashes or use a raw string. And \\P:... doesn't look well formed
either.

--
Gabriel Genellina

Sep 13 '07 #5
In message <ma*************************************@python.or g>, Gabriel
Genellina wrote:
If that's really actual code, looks wrong. You should double all your
backslashes or use a raw string. And \\P:... doesn't look well formed
either.
DOSlexia strikes again. :)
Sep 13 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: wolf | last post by:
i would like to briefly share my experiences with installing mod_python on a w2000 box. i must say that i believe the installation process to be unnecessarily complicated by the simple fact that...
2
by: Robert J. Hansen | last post by:
I'm not entirely certain comp.lang.python is the proper newsgroup for mod_python questions, but "comp.lang.python.web" doesn't seem to exist, so... my apologies in advance if this is considered...
0
by: Python_it | last post by:
I'm going to work with mod_python. I install mod_python 3.2.2b for python 2.4. If i test my install with mptest.py see this link:...
6
by: Anthony L. | last post by:
I am writing a web application that is comparable to a content management system used in blogging. I really want to use Python after having done some evaluation coding using Python 2.3.5 with...
1
by: treelife | last post by:
I'm getting and internal server error when | run the following mod_python script. I am actually trying to run Django. Script: from mod_python import apache def handler(req):...
2
by: exhuma.twn | last post by:
Hi again, as soon as I try to make use of the "session" object inside a psp-template file, I get the following error: Mod_python error: "PythonHandler mod_python.publisher" Traceback (most...
3
by: Michael | last post by:
Hey everyone, Is it possible to automatically insert headers/footers using mod_python? I will be not be using PSP's, so I cannot use the PSP/include solution. Furthermore, the header will be...
3
jlm699
by: jlm699 | last post by:
Hi all, I'm using pysvn in an application to sync-up with a repository, however some of the files in the repository are a little large, and it takes a while to checkout from the repository. Solely...
3
by: Andy Dingley | last post by:
I'm building Python tools to wrap up access to our Subversion / SVN source control system. It's to run on my desktop (Cygwin under Windows XP) and then later under Redhat. Trying to install the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.