Installing WebDAV server

Fokke Nauta fnautaNO at SPAMsolfon.nl
Tue Sep 6 16:46:17 CEST 2011


"becky_lewis" <bex.lewis at gmail.com> wrote in message 
news:f5b9ec16-de9a-4365-81a8-860dc27a985e at d25g2000yqh.googlegroups.com...
On Sep 5, 3:51 pm, "Fokke Nauta" <fnaut... at SPAMsolfon.nl> wrote:
>
> Hi Becky,
>
> I tried it straight away:
> directory=D:\Webdav\
> directory=D:/Webdav/
>
> Didn't work, in both cases the same error "fshandler:get_data: \Webdav not
> found".
>
> I have the opinion that my WebDAV installation is at fault. The database 
> is
> not created either.
> To have set up Python, I used python-2.7.2.msi.
> To install WebDAV, I used PyWebDAV-0.9.4.1 and PyXML-0.8.4 packages, both
> Unix/Linux.
> To install the, I used
> "
>
> >> You dont install from "Python GUI", use normal cmd, navigate to the
> >> folder
> >> you downloaded PyXML and PyWebDAV and run "python setup.py install"
> >> (python.exe has to be in your PATH). Then you have to find the
> >> startup-script "davserver". Find your python installation directory and
> >> look into<Install dir>/Tools/Scripts, in my computer this is
> >> E:\python27\Tools\Scripts. PyXML and PyWebDAV get installed in the
> >> site-packages folder i.e. E:\python27\Lib/site-packages. You might have
> >> to
> >> look for "davserver" there..."
>
> Shall I reïnstall the whole lot? Would it make a difference if in that 
> case
> I would use ActivePython-2.7.2.5-win32-x86.msi instead of 
> python-2.7.2.msi?
>
> Fokke

You could try that but I'd imagine you'll end up with the same issue.
My best guess is that something is preventing os.path.isdir from
detecting the path as a directory under windows. I can't reproduce it
on my Linux system but may have a working windows installation later.
If I were you I'd fire up a python shell (execute python and get the
>>> prompt), import os.path and manually try os.path.isdir(path_name)
to try and find out what the actualy problem is.

I'm not familiar with Python, but I entered "import os.path " (nothing 
happened) and "os.path.isdir(path_name)
" in the shell. I guess what I did was not correct.
Underneath I copied what showed up in the shell.

-------------------------------------------
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on 
win32
Type "copyright", "credits" or "license()" for more information.
>>> import os.path
>>> os.path.isdir(path_name)

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    os.path.isdir(path_name)
NameError: name 'path_name' is not defined
>>>
-------------------------------------------

Fokke 





More information about the Python-list mailing list